Xonotic
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;
const int NOSPLASH
Definition: defs.qh:12
const int STATE_TOP
Definition: defs.qh:29
const int INVERT_TEAMS
Definition: defs.qh:10
const int SPAWNFLAG_NOTOUCH
Definition: defs.qh:17
const int SF_TRIGGER_INIT
Definition: defs.qh:22
const int ACTIVE_TOGGLE
Definition: defs.qh:40
entity() spawn
const int SPAWNFLAG_NOMESSAGE
Definition: defs.qh:16
const int START_ENABLED
Definition: defs.qh:6
const int STATE_DOWN
Definition: defs.qh:32
const int ALL_ENTITIES
Definition: defs.qh:8
const int ACTIVE_IDLE
Definition: defs.qh:38
const int ACTIVE_BUSY
Definition: defs.qh:39
const int ON_MAPLOAD
Definition: defs.qh:9
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
const int START_DISABLED
Definition: defs.qh:7
const int STATE_UP
Definition: defs.qh:31
const int CRUSH
Definition: defs.qh:11
const int SF_TRIGGER_RESET
Definition: defs.qh:24
const int ACTIVE_ACTIVE
Definition: defs.qh:37
const int STATE_BOTTOM
Definition: defs.qh:30
const int ONLY_PLAYERS
Definition: defs.qh:13
int active
Definition: defs.qh:34
const int ACTIVE_NOT
Definition: defs.qh:36
const int SF_TRIGGER_UPDATE
Definition: defs.qh:23