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//-----------
6const int START_ENABLED = BIT(0);
7const int START_DISABLED = BIT(0);
8const int ALL_ENTITIES = BIT(1);
9const int ON_MAPLOAD = BIT(1);
10const int INVERT_TEAMS = BIT(2);
11const int CRUSH = BIT(2);
12const int NOSPLASH = BIT(8); // generic anti-splashdamage spawnflag
13const int ONLY_PLAYERS = BIT(14);
14
15// triggers
16const int SPAWNFLAG_NOMESSAGE = BIT(0);
17const int SPAWNFLAG_NOTOUCH = BIT(0);
18
19//----------
20// SENDFLAGS
21//----------
22const int SF_TRIGGER_INIT = BIT(0);
23const int SF_TRIGGER_UPDATE = BIT(1);
24const int SF_TRIGGER_RESET = BIT(2);
25
26//----------------
27// STATES & ACTIVE
28//----------------
29const int STATE_TOP = 0;
30const int STATE_BOTTOM = 1;
31const int STATE_UP = 2;
32const int STATE_DOWN = 3;
33
34.int active;
35.void (entity this, int act_state) setactive;
36const int ACTIVE_NOT = 0;
37const int ACTIVE_ACTIVE = 1;
38const int ACTIVE_IDLE = 2;
39const int ACTIVE_BUSY = 2;
40const int ACTIVE_TOGGLE = 3;
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const int ACTIVE_TOGGLE
Definition defs.qh:40
const int SF_TRIGGER_RESET
Definition defs.qh:24
const int ACTIVE_NOT
Definition defs.qh:36
const int START_DISABLED
Definition defs.qh:7
const int INVERT_TEAMS
Definition defs.qh:10
const int SPAWNFLAG_NOMESSAGE
Definition defs.qh:16
const int ALL_ENTITIES
Definition defs.qh:8
const int ONLY_PLAYERS
Definition defs.qh:13
const int SF_TRIGGER_INIT
Definition defs.qh:22
const int NOSPLASH
Definition defs.qh:12
int active
Definition defs.qh:34
const int ACTIVE_ACTIVE
Definition defs.qh:37
const int START_ENABLED
Definition defs.qh:6
const int SPAWNFLAG_NOTOUCH
Definition defs.qh:17
const int ACTIVE_IDLE
Definition defs.qh:38
const int ACTIVE_BUSY
Definition defs.qh:39
const int SF_TRIGGER_UPDATE
Definition defs.qh:23
const int CRUSH
Definition defs.qh:11
const int ON_MAPLOAD
Definition defs.qh:9
#define STATE_UP
Definition sys-pre.qh:30
#define STATE_DOWN
Definition sys-pre.qh:31
#define STATE_TOP
Definition sys-pre.qh:28
#define STATE_BOTTOM
Definition sys-pre.qh:29