]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/spawnflags.qh
target_speaker: deprecate GLOBAL (BIT(2)) spawnflag, remove magic numbers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / spawnflags.qh
1 #pragma once
2
3 // generic usage
4 const int START_ENABLED = BIT(0);
5 const int ON_MAPLOAD = BIT(1);
6 const int NOSPLASH = BIT(8); // generic anti-splashdamage spawnflag
7
8 // bobbing
9 const int BOBBING_XAXIS = BIT(0);
10 const int BOBBING_YAXIS = BIT(1);
11
12 // breakable
13 const int BREAKABLE_START_DISABLED = BIT(0);
14 const int BREAKABLE_INDICATE_DAMAGE = BIT(1);
15 const int BREAKABLE_NODAMAGE = BIT(2);
16
17 // button
18 const int BUTTON_DONTACCUMULATEDMG = BIT(7);
19
20 // door, door_rotating and door_secret
21 const int DOOR_START_OPEN = BIT(0);
22 const int DOOR_DONT_LINK = BIT(2);
23 const int SPAWNFLAGS_GOLD_KEY = BIT(3); // Quake 1 compat, can only be used with func_door!
24 const int SPAWNFLAGS_SILVER_KEY = BIT(4); // Quake 1 compat, can only be used with func_door!
25 const int DOOR_TOGGLE = BIT(5);
26
27 const int DOOR_NONSOLID = BIT(10);
28 const int DOOR_CRUSH = BIT(11); // can't use PLAT_CRUSH cause that is the same as DOOR_DONT_LINK
29
30 const int DOOR_ROTATING_BIDIR = BIT(1);
31 const int DOOR_ROTATING_BIDIR_IN_DOWN = BIT(3);
32
33 const int DOOR_ROTATING_XAXIS = BIT(6);
34 const int DOOR_ROTATING_YAXIS = BIT(7);
35
36 const int DOOR_SECRET_OPEN_ONCE = BIT(0); // stays open - LEGACY, set wait to -1 instead
37 const int DOOR_SECRET_1ST_LEFT = BIT(1); // 1st move is left of arrow
38 const int DOOR_SECRET_1ST_DOWN = BIT(2); // 1st move is down from arrow
39 const int DOOR_SECRET_NO_SHOOT = BIT(3); // only opened by trigger
40 const int DOOR_SECRET_YES_SHOOT = BIT(4); // shootable even if targeted
41
42 // particles
43 const int PARTICLES_IMPULSE = BIT(1);
44 const int PARTICLES_VISCULLING = BIT(2);
45
46 // rotating
47 const int FUNC_ROTATING_XAXIS = BIT(2);
48 const int FUNC_ROTATING_YAXIS = BIT(3);
49 const int FUNC_ROTATING_STARTOFF = BIT(4);
50
51 // train
52 const int TRAIN_CURVE = BIT(0);
53 const int TRAIN_TURN = BIT(1);
54 const int TRAIN_NEEDACTIVATION = BIT(2);
55
56 // jumppads
57 const int PUSH_ONCE = BIT(0);
58 const int PUSH_SILENT = BIT(1); // not used?
59
60 // viewloc
61 const int VIEWLOC_NOSIDESCROLL = BIT(0); // NOTE: currently unimplemented
62 const int VIEWLOC_FREEAIM = BIT(1);
63 const int VIEWLOC_FREEMOVE = BIT(2);
64
65 // vectormamamam
66 const int PROJECT_ON_TARGETNORMAL = BIT(0);
67 const int PROJECT_ON_TARGET2NORMAL = BIT(1);
68 const int PROJECT_ON_TARGET3NORMAL = BIT(2);
69 const int PROJECT_ON_TARGET4NORMAL = BIT(3);
70
71 // follow
72 const int FOLLOW_ATTACH = BIT(0);
73 const int FOLLOW_LOCAL = BIT(1);
74
75 // laser
76 const int LASER_FINITE = BIT(1);
77 const int LASER_NOTRACE = BIT(2);
78 const int LASER_INVERT_TEAM = BIT(3);
79
80 // platforms
81 const int PLAT_LOW_TRIGGER = BIT(0);
82 const int PLAT_CRUSH = BIT(2);
83
84 // changelevel
85 const int CHANGELEVEL_MULTIPLAYER = BIT(1);
86
87 // speaker
88 const int SPEAKER_LOOPED_ON = BIT(0);
89 const int SPEAKER_LOOPED_OFF = BIT(1);
90 const int SPEAKER_GLOBAL = BIT(2); // legacy, set speaker atten to -1 instead
91 const int SPEAKER_ACTIVATOR = BIT(3);
92
93 // teleport
94 const int TELEPORT_FLAG_SOUND = BIT(0);
95 const int TELEPORT_FLAG_PARTICLES = BIT(1);
96 const int TELEPORT_FLAG_TDEATH = BIT(2);
97 const int TELEPORT_FLAG_FORCE_TDEATH = BIT(3);
98
99 // triggers
100 const int SPAWNFLAG_NOMESSAGE = BIT(0);
101 const int SPAWNFLAG_NOTOUCH = BIT(0); // why are these the same?
102
103 //----------
104 // SENDFLAGS
105 //----------
106 const int SF_TRIGGER_INIT = BIT(0);
107 const int SF_TRIGGER_UPDATE = BIT(1);
108 const int SF_TRIGGER_RESET = BIT(2);
109
110 // pointparticles
111 const int SF_POINTPARTICLES_IMPULSE = BIT(4);
112 const int SF_POINTPARTICLES_MOVING = BIT(5); // Send velocity and movedir
113 const int SF_POINTPARTICLES_JITTER_AND_COUNT = BIT(6); // Send waterlevel (=jitter) and count
114 const int SF_POINTPARTICLES_BOUNDS = BIT(7); // Send min and max of the brush
115
116 // laser
117 const int SF_LASER_UPDATE_ORIGIN = BIT(0);
118 const int SF_LASER_UPDATE_TARGET = BIT(1);
119 const int SF_LASER_UPDATE_ACTIVE = BIT(2);
120 const int SF_LASER_UPDATE_EFFECT = BIT(3);
121
122 const int SF_LASER_NOTRACE = BIT(4);
123 const int SF_LASER_SCALE = BIT(5);
124 const int SF_LASER_ALPHA = BIT(6);
125 const int SF_LASER_FINITE = BIT(7);