Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
gamestart.qc File Reference
#include "gamestart.qh"
Include dependency graph for gamestart.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void gamestart_use (entity this, entity actor, entity trigger)
 spawnfunc (trigger_gamestart)

Function Documentation

◆ gamestart_use()

void gamestart_use ( entity this,
entity actor,
entity trigger )

Definition at line 4 of file gamestart.qc.

5{
6 SUB_UseTargets(this, this, trigger);
7 delete(this); // TODO: deleting this means it can't be used upon map reset!
8}
void SUB_UseTargets(entity this, entity actor, entity trigger)
Definition triggers.qc:344

References entity(), and SUB_UseTargets().

Referenced by spawnfunc().

◆ spawnfunc()

spawnfunc ( trigger_gamestart )

Definition at line 10 of file gamestart.qc.

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}
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
#define setthink(e, f)
void InitializeEntity(entity e, void(entity this) func, int order)
Definition world.qc:2209

References game_starttime, gamestart_use(), InitializeEntity(), INITPRIO_FINDTARGET, nextthink, setthink, use, and wait.