]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mapobjects/defs.qh
Some more cleanup of defs.qh, use a flag to indicate crouch state instead of a separa...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / defs.qh
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;