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