Xonotic
gamestart.qc
Go to the documentation of this file.
1 #include "gamestart.qh"
2 
3 #ifdef SVQC
4 void gamestart_use(entity this, entity actor, entity trigger)
5 {
6  SUB_UseTargets(this, this, trigger);
7  delete(this); // TODO: deleting this means it can't be used upon map reset!
8 }
9 
10 spawnfunc(trigger_gamestart)
11 {
12  this.use = gamestart_use;
13  this.reset2 = spawnfunc_trigger_gamestart;
14 
15  if(this.wait)
16  {
17  setthink(this, adaptor_think2use);
18  this.nextthink = game_starttime + this.wait;
19  }
20  else
21  InitializeEntity(this, adaptor_think2use, INITPRIO_FINDTARGET);
22 }
23 #endif
entity() spawn
void SUB_UseTargets(entity this, entity actor, entity trigger)
Definition: triggers.qc:366
spawnfunc(info_player_attacker)
Definition: sv_assault.qc:283
float wait
Definition: subs.qh:39
float nextthink
Definition: csprogsdefs.qc:121
void InitializeEntity(entity e, void(entity this) func, int order)
Definition: world.qc:2146
#define setthink(e, f)
#define use
Definition: csprogsdefs.qh:50