]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/trigger/gamestart.qc
Merge branch 'terencehill/v_deathtilt_fix' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / gamestart.qc
1 #ifdef SVQC
2 void gamestart_use(entity this, entity actor, entity trigger)
3 {
4         SUB_UseTargets(this, this, trigger);
5         remove(this);
6 }
7
8 void gamestart_use_this(entity this)
9 {
10         gamestart_use(this, NULL, NULL);
11 }
12
13 void self_spawnfunc_trigger_gamestart();
14 spawnfunc(trigger_gamestart)
15 {
16         this.use = gamestart_use;
17         this.reset2 = self_spawnfunc_trigger_gamestart;
18
19         if(this.wait)
20         {
21                 setthink(this, adaptor_think2use);
22                 this.nextthink = game_starttime + this.wait;
23         }
24         else
25                 InitializeEntity(this, gamestart_use_this, INITPRIO_FINDTARGET);
26 }
27 void self_spawnfunc_trigger_gamestart() { SELFPARAM(); spawnfunc_trigger_gamestart(this); }
28
29 #endif