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

Go to the source code of this file.

Functions

void relay_use (entity this, entity actor, entity trigger)
 spawnfunc (target_delay)
 spawnfunc (target_relay)
 spawnfunc (trigger_relay)

Function Documentation

◆ relay_use()

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

Definition at line 4 of file relay.qc.

5{
6 if(this.active != ACTIVE_ACTIVE)
7 return;
8
9 SUB_UseTargets(this, actor, trigger);
10}
int active
Definition defs.qh:34
const int ACTIVE_ACTIVE
Definition defs.qh:37
void SUB_UseTargets(entity this, entity actor, entity trigger)
Definition triggers.qc:344

References active, ACTIVE_ACTIVE, entity(), and SUB_UseTargets().

Referenced by spawnfunc().

◆ spawnfunc() [1/3]

spawnfunc ( target_delay )

Definition at line 27 of file relay.qc.

28{
29 if(!this.wait)
30 this.wait = 1;
31 if(!this.delay)
32 this.delay = this.wait; // fall back to quake 3 field
33 spawnfunc_trigger_relay(this);
34}
float delay
Definition items.qc:17
float wait
Definition items.qc:17

References delay, and wait.

◆ spawnfunc() [2/3]

spawnfunc ( target_relay )

Definition at line 22 of file relay.qc.

23{
24 spawnfunc_trigger_relay(this);
25}

◆ spawnfunc() [3/3]

spawnfunc ( trigger_relay )

Definition at line 15 of file relay.qc.

16{
17 this.active = ACTIVE_ACTIVE;
18 this.use = relay_use;
19 this.reset = spawnfunc_trigger_relay; // this spawnfunc resets fully
20}
#define use
void relay_use(entity this, entity actor, entity trigger)
Definition relay.qc:4

References active, ACTIVE_ACTIVE, relay_use(), and use.