]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/trigger/gamestart.qc
Don't even try to translate keys if game isn't translated
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / gamestart.qc
1 #include "gamestart.qh"
2 #ifdef SVQC
3 void gamestart_use(entity this, entity actor, entity trigger)
4 {
5         SUB_UseTargets(this, this, trigger);
6         delete(this);
7 }
8
9 void gamestart_use_this(entity this)
10 {
11         gamestart_use(this, NULL, NULL);
12 }
13
14 spawnfunc(trigger_gamestart)
15 {
16         this.use = gamestart_use;
17         this.reset2 = 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
28 #endif