]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/trigger/gamestart.qc
Remove uses of WITHSELF
[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 spawnfunc(trigger_gamestart)
14 {
15         this.use = gamestart_use;
16         this.reset2 = spawnfunc_trigger_gamestart;
17
18         if(this.wait)
19         {
20                 setthink(this, adaptor_think2use);
21                 this.nextthink = game_starttime + this.wait;
22         }
23         else
24                 InitializeEntity(this, gamestart_use_this, INITPRIO_FINDTARGET);
25 }
26
27 #endif