Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
defs.qh
Go to the documentation of this file.
1
#pragma once
2
3
//-----------
4
// SPAWNFLAGS
5
//-----------
6
const
int
START_ENABLED
=
BIT
(0);
7
const
int
START_DISABLED
=
BIT
(0);
8
const
int
ALL_ENTITIES
=
BIT
(1);
9
const
int
ON_MAPLOAD
=
BIT
(1);
10
const
int
INVERT_TEAMS
=
BIT
(2);
11
const
int
CRUSH
=
BIT
(2);
12
const
int
NOSPLASH
=
BIT
(8);
// generic anti-splashdamage spawnflag
13
const
int
ONLY_PLAYERS
=
BIT
(14);
14
15
// triggers
16
const
int
SPAWNFLAG_NOMESSAGE
=
BIT
(0);
17
const
int
SPAWNFLAG_NOTOUCH
=
BIT
(0);
18
19
//----------
20
// SENDFLAGS
21
//----------
22
const
int
SF_TRIGGER_INIT
=
BIT
(0);
23
const
int
SF_TRIGGER_UPDATE
=
BIT
(1);
24
const
int
SF_TRIGGER_RESET
=
BIT
(2);
25
26
//----------------
27
// STATES & ACTIVE
28
//----------------
29
const
int
STATE_TOP
= 0;
30
const
int
STATE_BOTTOM
= 1;
31
const
int
STATE_UP
= 2;
32
const
int
STATE_DOWN
= 3;
33
34
.int
active
;
35
.void (
entity
this
,
int
act_state) setactive;
36
const
int
ACTIVE_NOT
= 0;
37
const
int
ACTIVE_ACTIVE
= 1;
38
const
int
ACTIVE_IDLE
= 2;
39
const
int
ACTIVE_BUSY
= 2;
40
const
int
ACTIVE_TOGGLE
= 3;
BIT
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition
bits.qh:8
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
ACTIVE_TOGGLE
const int ACTIVE_TOGGLE
Definition
defs.qh:40
SF_TRIGGER_RESET
const int SF_TRIGGER_RESET
Definition
defs.qh:24
ACTIVE_NOT
const int ACTIVE_NOT
Definition
defs.qh:36
START_DISABLED
const int START_DISABLED
Definition
defs.qh:7
INVERT_TEAMS
const int INVERT_TEAMS
Definition
defs.qh:10
SPAWNFLAG_NOMESSAGE
const int SPAWNFLAG_NOMESSAGE
Definition
defs.qh:16
ALL_ENTITIES
const int ALL_ENTITIES
Definition
defs.qh:8
ONLY_PLAYERS
const int ONLY_PLAYERS
Definition
defs.qh:13
SF_TRIGGER_INIT
const int SF_TRIGGER_INIT
Definition
defs.qh:22
NOSPLASH
const int NOSPLASH
Definition
defs.qh:12
active
int active
Definition
defs.qh:34
ACTIVE_ACTIVE
const int ACTIVE_ACTIVE
Definition
defs.qh:37
START_ENABLED
const int START_ENABLED
Definition
defs.qh:6
SPAWNFLAG_NOTOUCH
const int SPAWNFLAG_NOTOUCH
Definition
defs.qh:17
ACTIVE_IDLE
const int ACTIVE_IDLE
Definition
defs.qh:38
ACTIVE_BUSY
const int ACTIVE_BUSY
Definition
defs.qh:39
SF_TRIGGER_UPDATE
const int SF_TRIGGER_UPDATE
Definition
defs.qh:23
CRUSH
const int CRUSH
Definition
defs.qh:11
ON_MAPLOAD
const int ON_MAPLOAD
Definition
defs.qh:9
STATE_UP
#define STATE_UP
Definition
sys-pre.qh:30
STATE_DOWN
#define STATE_DOWN
Definition
sys-pre.qh:31
STATE_TOP
#define STATE_TOP
Definition
sys-pre.qh:28
STATE_BOTTOM
#define STATE_BOTTOM
Definition
sys-pre.qh:29
common
mapobjects
defs.qh
Generated on
for Xonotic QuakeC by
1.14.0