Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
spawnpoint.qc
Go to the documentation of this file.
1#include "spawnpoint.qh"
2
3#ifdef SVQC
4void target_spawnpoint_use(entity this, entity actor, entity trigger)
5{
6 if(this.active != ACTIVE_ACTIVE)
7 return;
8
9 actor.spawnpoint_targ = this;
10}
11
13{
14 this.active = ACTIVE_ACTIVE;
15}
16
17// TODO: persistent spawnflag?
18spawnfunc(target_spawnpoint)
19{
20 this.active = ACTIVE_ACTIVE;
22 this.reset = target_spawnpoint_reset;
23}
24#endif
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define use
int active
Definition defs.qh:34
const int ACTIVE_ACTIVE
Definition defs.qh:37
#define spawnfunc(id)
Definition spawnfunc.qh:96
void target_spawnpoint_reset(entity this)
Definition spawnpoint.qc:12
void target_spawnpoint_use(entity this, entity actor, entity trigger)
Definition spawnpoint.qc:4