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

Go to the source code of this file.

Functions

 spawnfunc (target_spawnpoint)
void target_spawnpoint_reset (entity this)
void target_spawnpoint_use (entity this, entity actor, entity trigger)

Function Documentation

◆ spawnfunc()

spawnfunc ( target_spawnpoint )

Definition at line 18 of file spawnpoint.qc.

19{
20 this.active = ACTIVE_ACTIVE;
22 this.reset = target_spawnpoint_reset;
23}
#define use
int active
Definition defs.qh:34
const int ACTIVE_ACTIVE
Definition defs.qh:37
void target_spawnpoint_reset(entity this)
Definition spawnpoint.qc:12
void target_spawnpoint_use(entity this, entity actor, entity trigger)
Definition spawnpoint.qc:4

References active, ACTIVE_ACTIVE, target_spawnpoint_reset(), target_spawnpoint_use(), and use.

◆ target_spawnpoint_reset()

void target_spawnpoint_reset ( entity this)

Definition at line 12 of file spawnpoint.qc.

13{
14 this.active = ACTIVE_ACTIVE;
15}

References active, ACTIVE_ACTIVE, and entity().

Referenced by spawnfunc().

◆ target_spawnpoint_use()

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

Definition at line 4 of file spawnpoint.qc.

5{
6 if(this.active != ACTIVE_ACTIVE)
7 return;
8
9 actor.spawnpoint_targ = this;
10}

References active, ACTIVE_ACTIVE, and entity().

Referenced by spawnfunc().