]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/trigger/gamestart.qc
Propagate this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / gamestart.qc
1 #ifdef SVQC
2 void gamestart_use(entity this)
3 {
4         activator = self;
5         SUB_UseTargets();
6         remove(self);
7 }
8
9 void self_spawnfunc_trigger_gamestart();
10 spawnfunc(trigger_gamestart)
11 {
12         setuse(this, gamestart_use);
13         this.reset2 = self_spawnfunc_trigger_gamestart;
14
15         if(this.wait)
16         {
17                 this.think = this.use;
18                 this.nextthink = game_starttime + this.wait;
19         }
20         else
21                 InitializeEntity(this, gamestart_use, INITPRIO_FINDTARGET);
22 }
23 void self_spawnfunc_trigger_gamestart() { SELFPARAM(); spawnfunc_trigger_gamestart(this); }
24
25 #endif