Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
gamestart.qc
Go to the documentation of this file.
1#include "gamestart.qh"
2
3#ifdef SVQC
4void gamestart_use(entity this, entity actor, entity trigger)
5{
6 SUB_UseTargets(this, this, trigger);
7 delete(this); // TODO: deleting this means it can't be used upon map reset!
8}
9
10spawnfunc(trigger_gamestart)
11{
12 this.use = gamestart_use;
13 this.reset2 = spawnfunc_trigger_gamestart;
14
15 if(this.wait)
16 {
17 setthink(this, adaptor_think2use);
18 this.nextthink = game_starttime + this.wait;
19 }
20 else
21 InitializeEntity(this, adaptor_think2use, INITPRIO_FINDTARGET);
22}
23#endif
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float wait
Definition items.qc:17
float game_starttime
Definition stats.qh:82
const int INITPRIO_FINDTARGET
Definition constants.qh:96
float nextthink
#define use
void gamestart_use(entity this, entity actor, entity trigger)
Definition gamestart.qc:4
void SUB_UseTargets(entity this, entity actor, entity trigger)
Definition triggers.qc:344
#define setthink(e, f)
#define spawnfunc(id)
Definition spawnfunc.qh:96
void InitializeEntity(entity e, void(entity this) func, int order)
Definition world.qc:2209