Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
use
#define use
Definition
csprogsdefs.qh:50
active
int active
Definition
defs.qh:34
ACTIVE_ACTIVE
const int ACTIVE_ACTIVE
Definition
defs.qh:37
spawnfunc
#define spawnfunc(id)
Definition
spawnfunc.qh:96
target_spawnpoint_reset
void target_spawnpoint_reset(entity this)
Definition
spawnpoint.qc:12
target_spawnpoint_use
void target_spawnpoint_use(entity this, entity actor, entity trigger)
Definition
spawnpoint.qc:4
spawnpoint.qh
common
mapobjects
target
spawnpoint.qc
Generated on
for Xonotic QuakeC by
1.14.0