Xonotic
spawnpoint.qc
Go to the documentation of this file.
1
#include "
spawnpoint.qh
"
2
3
#ifdef SVQC
4
void
target_spawnpoint_use(
entity
this
,
entity
actor,
entity
trigger)
5
{
6
if
(this.
active
!=
ACTIVE_ACTIVE
)
7
return
;
8
9
actor.spawnpoint_targ =
this
;
10
}
11
12
void
target_spawnpoint_reset(
entity
this
)
13
{
14
this.
active
=
ACTIVE_ACTIVE
;
15
}
16
17
// TODO: persistent spawnflag?
18
spawnfunc
(target_spawnpoint)
19
{
20
this.
active
=
ACTIVE_ACTIVE
;
21
this.
use
= target_spawnpoint_use;
22
this.reset = target_spawnpoint_reset;
23
}
24
#endif
entity
entity() spawn
spawnpoint.qh
spawnfunc
spawnfunc(info_player_attacker)
Definition:
sv_assault.qc:283
ACTIVE_ACTIVE
const int ACTIVE_ACTIVE
Definition:
defs.qh:37
active
int active
Definition:
defs.qh:34
use
#define use
Definition:
csprogsdefs.qh:50
common
mapobjects
target
spawnpoint.qc
Generated on Thu Mar 17 2022 17:26:27 for Xonotic by
1.8.13