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