]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/spawnflags.qh
Merge branch 'master' into DefaultUser/trigger_cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / spawnflags.qh
1 #pragma once
2
3 // generic usage
4 const int NOSPLASH = BIT(8); // generic anti-splashdamage spawnflag
5
6 // bobbing
7 const int BOBBING_XAXIS = BIT(0);
8 const int BOBBING_YAXIS = BIT(1);
9
10 // breakable
11 const int BREAKABLE_START_DISABLED = BIT(0);
12 const int BREAKABLE_INDICATE_DAMAGE = BIT(1);
13 const int BREAKABLE_NODAMAGE = BIT(2);
14
15 // button
16 const int BUTTON_DONTACCUMULATEDMG = BIT(7);
17
18 // conveyor
19 const int CONVEYOR_START_ENABLED = BIT(0);
20
21 // door, door_rotating and door_secret
22 const int DOOR_START_OPEN = BIT(0);
23 const int DOOR_DONT_LINK = BIT(2);
24 const int SPAWNFLAGS_GOLD_KEY = BIT(3); // Quake 1 compat, can only be used with func_door!
25 const int SPAWNFLAGS_SILVER_KEY = BIT(4); // Quake 1 compat, can only be used with func_door!
26 const int DOOR_TOGGLE = BIT(5);
27
28 const int DOOR_NONSOLID = BIT(10);
29 const int DOOR_CRUSH = BIT(11); // can't use PLAT_CRUSH cause that is the same as DOOR_DONT_LINK
30
31 const int DOOR_ROTATING_BIDIR = BIT(1);
32 const int DOOR_ROTATING_BIDIR_IN_DOWN = BIT(3);
33
34 const int DOOR_ROTATING_XAXIS = BIT(6);
35 const int DOOR_ROTATING_YAXIS = BIT(7);
36
37 const int DOOR_SECRET_OPEN_ONCE = BIT(0); // stays open - LEGACY, set wait to -1 instead
38 const int DOOR_SECRET_1ST_LEFT = BIT(1); // 1st move is left of arrow
39 const int DOOR_SECRET_1ST_DOWN = BIT(2); // 1st move is down from arrow
40 const int DOOR_SECRET_NO_SHOOT = BIT(3); // only opened by trigger
41 const int DOOR_SECRET_YES_SHOOT = BIT(4); // shootable even if targeted
42
43 // jumppads
44 const int PUSH_ONCE = BIT(0);
45 const int PUSH_SILENT = BIT(1); // not used?
46
47 // viewloc
48 const int VIEWLOC_NOSIDESCROLL = BIT(0); // NOTE: currently unimplemented
49 const int VIEWLOC_FREEAIM = BIT(1);
50 const int VIEWLOC_FREEMOVE = BIT(2);
51
52 // platforms
53 const int PLAT_LOW_TRIGGER = BIT(0);
54 const int PLAT_CRUSH = BIT(2);
55
56 // teleport
57 const int TELEPORT_FLAG_SOUND = BIT(0);
58 const int TELEPORT_FLAG_PARTICLES = BIT(1);
59 const int TELEPORT_FLAG_TDEATH = BIT(2);
60 const int TELEPORT_FLAG_FORCE_TDEATH = BIT(3);
61
62 // triggers
63 const int SF_TRIGGER_INIT = BIT(0);
64 const int SF_TRIGGER_UPDATE = BIT(1);
65 const int SF_TRIGGER_RESET = BIT(2);
66
67 const int SPAWNFLAG_NOMESSAGE = BIT(0);
68 const int SPAWNFLAG_NOTOUCH = BIT(0); // why are these the same?