]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move non-generic entity flags to their own headers
authorFreddy <schro.sb@gmail.com>
Sat, 17 Mar 2018 15:54:02 +0000 (16:54 +0100)
committerFreddy <schro.sb@gmail.com>
Sat, 17 Mar 2018 15:55:58 +0000 (16:55 +0100)
35 files changed:
qcsrc/common/triggers/defs.qh [new file with mode: 0644]
qcsrc/common/triggers/func/bobbing.qh
qcsrc/common/triggers/func/breakable.qh
qcsrc/common/triggers/func/button.qh
qcsrc/common/triggers/func/conveyor.qh
qcsrc/common/triggers/func/door.qh
qcsrc/common/triggers/func/door_rotating.qh
qcsrc/common/triggers/func/door_secret.qh
qcsrc/common/triggers/func/plat.qc
qcsrc/common/triggers/func/pointparticles.qh
qcsrc/common/triggers/func/rotating.qh
qcsrc/common/triggers/func/train.qh
qcsrc/common/triggers/func/vectormamamam.qh
qcsrc/common/triggers/misc/follow.qh
qcsrc/common/triggers/misc/laser.qh
qcsrc/common/triggers/platforms.qc
qcsrc/common/triggers/platforms.qh
qcsrc/common/triggers/spawnflags.qh [deleted file]
qcsrc/common/triggers/states.qh [deleted file]
qcsrc/common/triggers/subs.qh
qcsrc/common/triggers/target/changelevel.qh
qcsrc/common/triggers/target/music.qh
qcsrc/common/triggers/target/speaker.qh
qcsrc/common/triggers/teleporters.qh
qcsrc/common/triggers/trigger/counter.qh
qcsrc/common/triggers/trigger/gravity.qh
qcsrc/common/triggers/trigger/heal.qh
qcsrc/common/triggers/trigger/impulse.qh
qcsrc/common/triggers/trigger/jumppads.qh
qcsrc/common/triggers/trigger/magicear.qh
qcsrc/common/triggers/trigger/monoflop.qh
qcsrc/common/triggers/trigger/relay_if.qh
qcsrc/common/triggers/trigger/relay_teamcheck.qh
qcsrc/common/triggers/trigger/viewloc.qh
qcsrc/common/triggers/triggers.qh

diff --git a/qcsrc/common/triggers/defs.qh b/qcsrc/common/triggers/defs.qh
new file mode 100644 (file)
index 0000000..45afb51
--- /dev/null
@@ -0,0 +1,41 @@
+#pragma once
+
+//-----------
+// SPAWNFLAGS
+//-----------
+const int START_ENABLED = BIT(0);
+const int START_DISABLED = BIT(0);
+const int ALL_ENTITIES = BIT(1);
+const int ON_MAPLOAD = BIT(1);
+const int INVERT_TEAMS = BIT(2);
+const int CRUSH = BIT(2);
+const int NOSPLASH = BIT(8); // generic anti-splashdamage spawnflag
+const int ONLY_PLAYERS = BIT(14);
+
+// triggers
+const int SPAWNFLAG_NOMESSAGE = BIT(0);
+const int SPAWNFLAG_NOTOUCH = BIT(0);
+
+//----------
+// SENDFLAGS
+//----------
+const int SF_TRIGGER_INIT = BIT(0);
+const int SF_TRIGGER_UPDATE = BIT(1);
+const int SF_TRIGGER_RESET = BIT(2);
+
+//----------------
+// STATES & ACTIVE
+//----------------
+#ifdef CSQC
+// this stuff is defined in the server side engine VM, so we must define it separately here
+const int STATE_TOP = 0;
+const int STATE_BOTTOM = 1;
+const int STATE_UP = 2;
+const int STATE_DOWN = 3;
+
+const int ACTIVE_NOT = 0;
+const int ACTIVE_ACTIVE = 1;
+const int ACTIVE_IDLE = 2;
+const int ACTIVE_BUSY = 2;
+const int ACTIVE_TOGGLE = 3;
+#endif
index 7c39519e10e9f29d62f38ee0bc76f0dd4b0ed584..58f7bb71456e37eaa43a744d8aeb28a06a877269 100644 (file)
@@ -1,2 +1,5 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int BOBBING_XAXIS = BIT(0);
+const int BOBBING_YAXIS = BIT(1);
index 9b16355ddd4e1015f0dd86fac9b384a44ed9abe0..0efbcfaed5eb809c544d2f245d02467096b56ba7 100644 (file)
@@ -1,8 +1,12 @@
 #pragma once
-#include "../spawnflags.qh"
-#include "../states.qh"
 
 
+const int BREAKABLE_INDICATE_DAMAGE = BIT(1);
+const int BREAKABLE_NODAMAGE = BIT(2);
+
+const int STATE_ALIVE = 0;
+const int STATE_BROKEN = 1;
+
 #ifdef SVQC
 spawnfunc(func_breakable);
 #endif
index 7c39519e10e9f29d62f38ee0bc76f0dd4b0ed584..86a0fc918050846f848a47a981295a292223cf3b 100644 (file)
@@ -1,2 +1,4 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int BUTTON_DONTACCUMULATEDMG = BIT(7);
index 20b790f4a17fbf05f35b420a570a38584bd268d1..22b674ff36098192b0c8409a029122e6b88ec4b1 100644 (file)
@@ -1,6 +1,5 @@
 #pragma once
-#include "../spawnflags.qh"
-#include "../states.qh"
+#include "../defs.qh"
 
 IntrusiveList g_conveyed;
 STATIC_INIT(g_conveyed) { g_conveyed = IL_NEW(); }
index faf137d6b3960b159e253d994abe79b632316fd0..181de8b7b829592dc0ce3dcaf426524a824d78d2 100644 (file)
@@ -1,5 +1,14 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int DOOR_START_OPEN = BIT(0);
+const int DOOR_DONT_LINK = BIT(2);
+const int SPAWNFLAGS_GOLD_KEY = BIT(3); // Quake 1 compat, can only be used with func_door!
+const int SPAWNFLAGS_SILVER_KEY = BIT(4); // Quake 1 compat, can only be used with func_door!
+const int DOOR_TOGGLE = BIT(5);
+
+const int DOOR_NONSOLID = BIT(10);
+const int DOOR_CRUSH = BIT(11); // can't use CRUSH cause that is the same as DOOR_DONT_LINK
 
 
 #ifdef CSQC
index a5cf76932cb727a212eed91e559f8f1965cc5913..5ff572859b5c1847c32c504cb3b95fac53f7cf40 100644 (file)
@@ -1,6 +1,13 @@
 #pragma once
 
 
+const int DOOR_ROTATING_BIDIR = BIT(1);
+const int DOOR_ROTATING_BIDIR_IN_DOWN = BIT(3);
+
+const int DOOR_ROTATING_XAXIS = BIT(6);
+const int DOOR_ROTATING_YAXIS = BIT(7);
+
+
 #ifdef GAMEQC
 void door_rotating_go_down(entity this);
 void door_rotating_go_up(entity this, entity oth);
index 7c39519e10e9f29d62f38ee0bc76f0dd4b0ed584..ee575bc424c2aa8bdc98da839badc986f362dd6e 100644 (file)
@@ -1,2 +1,8 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int DOOR_SECRET_OPEN_ONCE = BIT(0); // stays open - LEGACY, set wait to -1 instead
+const int DOOR_SECRET_1ST_LEFT = BIT(1); // 1st move is left of arrow
+const int DOOR_SECRET_1ST_DOWN = BIT(2); // 1st move is down from arrow
+const int DOOR_SECRET_NO_SHOOT = BIT(3); // only opened by trigger
+const int DOOR_SECRET_YES_SHOOT = BIT(4); // shootable even if targeted
index 00d4f78d28b4d1dd55d8987a4fa9d36e91b54dae..b052336217990a32a646d852679bc3c0d1d83c20 100644 (file)
@@ -58,7 +58,7 @@ void plat_link(entity this)
 
 spawnfunc(func_plat)
 {
-       if (this.spawnflags & PLAT_CRUSH)
+       if (this.spawnflags & CRUSH)
        {
                this.dmg = 10000;
        }
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..b167527bc813d91c0da4341704b2802048baa28d 100644 (file)
@@ -1 +1,11 @@
 #pragma once
+
+// spawnflags
+const int PARTICLES_IMPULSE = BIT(1);
+const int PARTICLES_VISCULLING = BIT(2);
+
+// sendflags
+const int SF_POINTPARTICLES_IMPULSE = BIT(4);
+const int SF_POINTPARTICLES_MOVING = BIT(5); // Send velocity and movedir
+const int SF_POINTPARTICLES_JITTER_AND_COUNT = BIT(6); // Send waterlevel (=jitter) and count
+const int SF_POINTPARTICLES_BOUNDS = BIT(7); // Send min and max of the brush
index 7c39519e10e9f29d62f38ee0bc76f0dd4b0ed584..ad1b6ec920a2a319c99552ca051021984e9ffc64 100644 (file)
@@ -1,2 +1,6 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int FUNC_ROTATING_XAXIS = BIT(2);
+const int FUNC_ROTATING_YAXIS = BIT(3);
+const int FUNC_ROTATING_STARTOFF = BIT(4);
index 0a4605243af3810b642979903e119a3228a94b32..0b2a099c53576f46aff7a0968965b2dccccaad95 100644 (file)
@@ -1,5 +1,9 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int TRAIN_CURVE = BIT(0);
+const int TRAIN_TURN = BIT(1);
+const int TRAIN_NEEDACTIVATION = BIT(2);
 
 #ifdef CSQC
 .float dmgtime;
index 4f40f629227631020280322a00cba7ea95a6f6a4..7eb6b0a63b0f1be400212e81a94c1f41679cb2e5 100644 (file)
@@ -1,5 +1,9 @@
 #pragma once
-#include "../spawnflags.qh"
 
 
+const int PROJECT_ON_TARGETNORMAL = BIT(0);
+const int PROJECT_ON_TARGET2NORMAL = BIT(1);
+const int PROJECT_ON_TARGET3NORMAL = BIT(2);
+const int PROJECT_ON_TARGET4NORMAL = BIT(3);
+
 const float vectormamamam_timestep = 0.1;
index 7c39519e10e9f29d62f38ee0bc76f0dd4b0ed584..aef491ff323bd00ab55269772d22e27451e5341e 100644 (file)
@@ -1,2 +1,5 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int FOLLOW_ATTACH = BIT(0);
+const int FOLLOW_LOCAL = BIT(1);
index 36a25faa0a312ced48f2d100190328796dc2e460..0ff57646ad760e1c3b8b884bec49c4b53b800ea3 100644 (file)
@@ -1,7 +1,20 @@
 #pragma once
-#include "../spawnflags.qh"
 
 
+const int LASER_FINITE = BIT(1);
+const int LASER_NOTRACE = BIT(2);
+const int LASER_INVERT_TEAM = BIT(3);
+
+const int SF_LASER_UPDATE_ORIGIN = BIT(0);
+const int SF_LASER_UPDATE_TARGET = BIT(1);
+const int SF_LASER_UPDATE_ACTIVE = BIT(2);
+const int SF_LASER_UPDATE_EFFECT = BIT(3);
+
+const int SF_LASER_NOTRACE = BIT(4);
+const int SF_LASER_SCALE = BIT(5);
+const int SF_LASER_ALPHA = BIT(6);
+const int SF_LASER_FINITE = BIT(7);
+
 .vector beam_color;
 
 const float LASER_BEAM_MAXLENGTH = 32768; // maximum length of a beam trace
index 7acdc614e8ff489500e5b31a1e634f145749e8db..4747877314a3ac52f78c30c06233ec3f63dcf170 100644 (file)
@@ -137,7 +137,7 @@ void plat_trigger_use(entity this, entity actor, entity trigger)
 
 void plat_crush(entity this, entity blocker)
 {
-       if((this.spawnflags & PLAT_CRUSH) && (blocker.takedamage != DAMAGE_NO))
+       if((this.spawnflags & CRUSH) && (blocker.takedamage != DAMAGE_NO))
        { // KIll Kill Kill!!
 #ifdef SVQC
                Damage (blocker, this, this, 10000, DEATH_HURTTRIGGER.m_id, DMG_NOWEP, blocker.origin, '0 0 0');
index 83e77ef66ee5170c45fe45fb29d93d6f1eac4280..346cebc7163dfade8657cba5caa5e3cc455838c6 100644 (file)
@@ -1,5 +1,7 @@
 #pragma once
-#include "spawnflags.qh"
+
+
+const int PLAT_LOW_TRIGGER = BIT(0);
 
 .float dmgtime2;
 
diff --git a/qcsrc/common/triggers/spawnflags.qh b/qcsrc/common/triggers/spawnflags.qh
deleted file mode 100644 (file)
index 75464b0..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-#pragma once
-
-// generic usage
-const int START_ENABLED = BIT(0);
-const int START_DISABLED = BIT(0);
-const int ALL_ENTITIES = BIT(1);
-const int ON_MAPLOAD = BIT(1);
-const int INVERT_TEAMS = BIT(2);
-const int NOSPLASH = BIT(8); // generic anti-splashdamage spawnflag
-const int ONLY_PLAYERS = BIT(14);
-
-// triggers
-const int SPAWNFLAG_NOMESSAGE = BIT(0);
-const int SPAWNFLAG_NOTOUCH = BIT(0); // why are these the same?
-
-// bobbing
-const int BOBBING_XAXIS = BIT(0);
-const int BOBBING_YAXIS = BIT(1);
-
-// breakable
-const int BREAKABLE_INDICATE_DAMAGE = BIT(1);
-const int BREAKABLE_NODAMAGE = BIT(2);
-
-// button
-const int BUTTON_DONTACCUMULATEDMG = BIT(7);
-
-// door, door_rotating and door_secret
-const int DOOR_START_OPEN = BIT(0);
-const int DOOR_DONT_LINK = BIT(2);
-const int SPAWNFLAGS_GOLD_KEY = BIT(3); // Quake 1 compat, can only be used with func_door!
-const int SPAWNFLAGS_SILVER_KEY = BIT(4); // Quake 1 compat, can only be used with func_door!
-const int DOOR_TOGGLE = BIT(5);
-
-const int DOOR_NONSOLID = BIT(10);
-const int DOOR_CRUSH = BIT(11); // can't use PLAT_CRUSH cause that is the same as DOOR_DONT_LINK
-
-const int DOOR_ROTATING_BIDIR = BIT(1);
-const int DOOR_ROTATING_BIDIR_IN_DOWN = BIT(3);
-
-const int DOOR_ROTATING_XAXIS = BIT(6);
-const int DOOR_ROTATING_YAXIS = BIT(7);
-
-const int DOOR_SECRET_OPEN_ONCE = BIT(0); // stays open - LEGACY, set wait to -1 instead
-const int DOOR_SECRET_1ST_LEFT = BIT(1); // 1st move is left of arrow
-const int DOOR_SECRET_1ST_DOWN = BIT(2); // 1st move is down from arrow
-const int DOOR_SECRET_NO_SHOOT = BIT(3); // only opened by trigger
-const int DOOR_SECRET_YES_SHOOT = BIT(4); // shootable even if targeted
-
-// particles
-const int PARTICLES_IMPULSE = BIT(1);
-const int PARTICLES_VISCULLING = BIT(2);
-
-// rotating
-const int FUNC_ROTATING_XAXIS = BIT(2);
-const int FUNC_ROTATING_YAXIS = BIT(3);
-const int FUNC_ROTATING_STARTOFF = BIT(4);
-
-// train
-const int TRAIN_CURVE = BIT(0);
-const int TRAIN_TURN = BIT(1);
-const int TRAIN_NEEDACTIVATION = BIT(2);
-
-// jumppads
-const int PUSH_ONCE = BIT(0); // legacy, deactivate with relay instead
-const int PUSH_SILENT = BIT(1); // not used?
-
-// viewloc
-const int VIEWLOC_NOSIDESCROLL = BIT(0); // NOTE: currently unimplemented
-const int VIEWLOC_FREEAIM = BIT(1);
-const int VIEWLOC_FREEMOVE = BIT(2);
-
-// vectormamamam
-const int PROJECT_ON_TARGETNORMAL = BIT(0);
-const int PROJECT_ON_TARGET2NORMAL = BIT(1);
-const int PROJECT_ON_TARGET3NORMAL = BIT(2);
-const int PROJECT_ON_TARGET4NORMAL = BIT(3);
-
-// follow
-const int FOLLOW_ATTACH = BIT(0);
-const int FOLLOW_LOCAL = BIT(1);
-
-// laser
-const int LASER_FINITE = BIT(1);
-const int LASER_NOTRACE = BIT(2);
-const int LASER_INVERT_TEAM = BIT(3);
-
-// platforms
-const int PLAT_LOW_TRIGGER = BIT(0);
-const int PLAT_CRUSH = BIT(2);
-
-// changelevel
-const int CHANGELEVEL_MULTIPLAYER = BIT(1);
-
-// speaker
-const int SPEAKER_LOOPED_ON = BIT(0);
-const int SPEAKER_LOOPED_OFF = BIT(1);
-const int SPEAKER_GLOBAL = BIT(2); // legacy, set speaker atten to -1 instead
-const int SPEAKER_ACTIVATOR = BIT(3);
-
-// teleport
-const int TELEPORT_FLAG_SOUND = BIT(0);
-const int TELEPORT_FLAG_PARTICLES = BIT(1);
-const int TELEPORT_FLAG_TDEATH = BIT(2);
-const int TELEPORT_FLAG_FORCE_TDEATH = BIT(3);
-
-// counter
-const int COUNTER_FIRE_AT_COUNT = BIT(2);
-
-// gravity
-const int GRAVITY_STICKY = BIT(0); // keep gravity multiplier even after exiting the trigger_gravity
-const int GRAVITY_START_DISABLED = BIT(1);
-
-// heal
-const int HEAL_SOUND_ALWAYS = BIT(2);
-
-// impulse
-const int IMPULSE_DIRECTIONAL_SPEEDTARGET = BIT(6);
-
-// magicear
-const int MAGICEAR_IGNORE_SAY = BIT(0);
-const int MAGICEAR_IGNORE_TEAMSAY = BIT(1);
-const int MAGICEAR_IGNORE_TELL = BIT(2);
-const int MAGICEAR_IGNORE_INVALIDTELL = BIT(3);
-const int MAGICEAR_REPLACE_WHOLE_MESSAGE = BIT(4);
-const int MAGICEAR_REPLACE_OUTSIDE  = BIT(5);
-const int MAGICEAR_CONTINUE = BIT(6);
-const int MAGICEAR_NODECOLORIZE = BIT(7);
-const int MAGICEAR_TUBA  = BIT(8);
-const int MAGICEAR_TUBA_EXACTPITCH = BIT(9);
-
-// monoflop
-const int MONOFLOP_FIXED = BIT(0);
-
-// relay_if
-const int RELAYIF_NEGATE = BIT(0);
-
-// relay_teamcheck
-const int RELAYTEAMCHECK_NOTEAM = BIT(0);
-const int RELAYTEAMCHECK_INVERT = BIT(1);
-
-//----------
-// SENDFLAGS
-//----------
-const int SF_TRIGGER_INIT = BIT(0);
-const int SF_TRIGGER_UPDATE = BIT(1);
-const int SF_TRIGGER_RESET = BIT(2);
-
-// pointparticles
-const int SF_POINTPARTICLES_IMPULSE = BIT(4);
-const int SF_POINTPARTICLES_MOVING = BIT(5); // Send velocity and movedir
-const int SF_POINTPARTICLES_JITTER_AND_COUNT = BIT(6); // Send waterlevel (=jitter) and count
-const int SF_POINTPARTICLES_BOUNDS = BIT(7); // Send min and max of the brush
-
-// laser
-const int SF_LASER_UPDATE_ORIGIN = BIT(0);
-const int SF_LASER_UPDATE_TARGET = BIT(1);
-const int SF_LASER_UPDATE_ACTIVE = BIT(2);
-const int SF_LASER_UPDATE_EFFECT = BIT(3);
-
-const int SF_LASER_NOTRACE = BIT(4);
-const int SF_LASER_SCALE = BIT(5);
-const int SF_LASER_ALPHA = BIT(6);
-const int SF_LASER_FINITE = BIT(7);
-
-// music
-const int SF_MUSIC_ORIGIN = BIT(2);
diff --git a/qcsrc/common/triggers/states.qh b/qcsrc/common/triggers/states.qh
deleted file mode 100644 (file)
index 6ed47df..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#pragma once
-
-#ifdef CSQC
-// this stuff is defined in the server side engine VM, so we must define it separately here
-const int STATE_TOP = 0;
-const int STATE_BOTTOM = 1;
-const int STATE_UP = 2;
-const int STATE_DOWN = 3;
-#endif
-
-// breakable
-const int STATE_ALIVE = 0;
-const int STATE_BROKEN = 1;
index d8d926c80dd51b296990a77cf2a675817e526b72..8d4e406504cf62eadd2458b01912eb938c5c51bc 100644 (file)
@@ -1,5 +1,5 @@
 #pragma once
-#include "states.qh"
+#include "defs.qh"
 
 void SUB_SetFade (entity ent, float when, float fading_time);
 void SUB_VanishOrRemove (entity ent);
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..f6e206edc9a4f52ecc4b7a0d53ca07764563fd54 100644 (file)
@@ -1 +1,4 @@
 #pragma once
+
+
+const int CHANGELEVEL_MULTIPLAYER = BIT(1);
index 80b3684a4e9a768b8ef17e4ea596f463d9cc886d..fd8855eafb99563751bc8d2ef7ba3e899427d288 100644 (file)
@@ -2,6 +2,8 @@
 
 .float lifetime;
 
+const int SF_MUSIC_ORIGIN = BIT(2);
+
 #ifdef CSQC
 float music_disabled;
 entity music_default;
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..53e0194be46b2e38509ab33eed11541c310feed2 100644 (file)
@@ -1 +1,7 @@
 #pragma once
+
+
+const int SPEAKER_LOOPED_ON = BIT(0);
+const int SPEAKER_LOOPED_OFF = BIT(1);
+const int SPEAKER_GLOBAL = BIT(2); // legacy, set speaker atten to -1 instead
+const int SPEAKER_ACTIVATOR = BIT(3);
index 6056e0696638008dba3624d0d77713a522f7550b..68c5114f4d5bbf06d398f27b32584551737e42a8 100644 (file)
@@ -1,18 +1,23 @@
 #pragma once
-#include "spawnflags.qh"
+#include "defs.qh"
 
 IntrusiveList g_teleporters;
 STATIC_INIT(g_teleporters) { g_teleporters = IL_NEW(); }
 
 .entity pusher;
 
+const int TELEPORT_FLAG_SOUND = BIT(0);
+const int TELEPORT_FLAG_PARTICLES = BIT(1);
+const int TELEPORT_FLAG_TDEATH = BIT(2);
+const int TELEPORT_FLAG_FORCE_TDEATH = BIT(3);
+
 #define TELEPORT_FLAGS_WARPZONE   0
 #define TELEPORT_FLAGS_PORTAL     (TELEPORT_FLAG_SOUND | TELEPORT_FLAG_PARTICLES | TELEPORT_FLAG_TDEATH | TELEPORT_FLAG_FORCE_TDEATH)
 #define TELEPORT_FLAGS_TELEPORTER (TELEPORT_FLAG_SOUND | TELEPORT_FLAG_PARTICLES | TELEPORT_FLAG_TDEATH)
 
 // types for .teleportable entity setting
-const float TELEPORT_NORMAL = 1; // play sounds/effects etc
-const float TELEPORT_SIMPLE = 2; // only do teleport, nothing special
+const int TELEPORT_NORMAL = 1; // play sounds/effects etc
+const int TELEPORT_SIMPLE = 2; // only do teleport, nothing special
 
 entity Simple_TeleportPlayer(entity teleporter, entity player);
 
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..394d15472cdbc68f289b9476ec00311e6dd22e09 100644 (file)
@@ -1 +1,4 @@
 #pragma once
+
+
+const int COUNTER_FIRE_AT_COUNT = BIT(2);
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..872f04ad9fdc98e2a9add384d504019e913d109e 100644 (file)
@@ -1 +1,5 @@
 #pragma once
+
+
+const int GRAVITY_STICKY = BIT(0); // keep gravity multiplier even after exiting the trigger_gravity
+const int GRAVITY_START_DISABLED = BIT(1);
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..8dbeea54569366ecb08d425ea9fd2337488968fd 100644 (file)
@@ -1 +1,4 @@
 #pragma once
+
+
+const int HEAL_SOUND_ALWAYS = BIT(2);
index 5c3ff7bc90c0671e1562bb1202a04f5d95518e22..e86de4a4970c58bb75435e570bd73afaef1128eb 100644 (file)
@@ -10,6 +10,8 @@ const int FALLOFF_NO = 0;
 const int FALLOFF_LINEAR = 1;
 const int FALLOFF_LINEAR_INV = 2;
 
+const int IMPULSE_DIRECTIONAL_SPEEDTARGET = BIT(6);
+
 const float IMPULSE_DEFAULT_RADIAL_STRENGTH = 2000;
 const float IMPULSE_DEFAULT_DIRECTIONAL_STRENGTH = 950;
 const float IMPULSE_DEFAULT_ACCEL_STRENGTH = 0.9;
index 99aa5cb813715308e6917587eecd67cc92d31213..07ab441fe5efcf7d61d2fe1c227c97440174b237 100644 (file)
@@ -1,5 +1,8 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int PUSH_ONCE = BIT(0); // legacy, deactivate with relay instead
+const int PUSH_SILENT = BIT(1); // not used?
 
 IntrusiveList g_jumppads;
 STATIC_INIT(g_jumppads) { g_jumppads = IL_NEW(); }
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..4e705868c3f094881d7175196380b4579f46b092 100644 (file)
@@ -1 +1,13 @@
 #pragma once
+
+
+const int MAGICEAR_IGNORE_SAY = BIT(0);
+const int MAGICEAR_IGNORE_TEAMSAY = BIT(1);
+const int MAGICEAR_IGNORE_TELL = BIT(2);
+const int MAGICEAR_IGNORE_INVALIDTELL = BIT(3);
+const int MAGICEAR_REPLACE_WHOLE_MESSAGE = BIT(4);
+const int MAGICEAR_REPLACE_OUTSIDE = BIT(5);
+const int MAGICEAR_CONTINUE = BIT(6);
+const int MAGICEAR_NODECOLORIZE = BIT(7);
+const int MAGICEAR_TUBA = BIT(8);
+const int MAGICEAR_TUBA_EXACTPITCH = BIT(9);
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..c64dffdee86b28265f47129684adc01e0eb6e05b 100644 (file)
@@ -1 +1,4 @@
 #pragma once
+
+
+const int MONOFLOP_FIXED = BIT(0);
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..6f37aa71d9e81c59914ef76cc53d5f61a0434666 100644 (file)
@@ -1 +1,4 @@
 #pragma once
+
+
+const int RELAYIF_NEGATE = BIT(0);
index 6f70f09beec2219624baeca92e2cd7deaa104fb4..602d2535624437a45b2c0d2cb3b00d6096212c79 100644 (file)
@@ -1 +1,5 @@
 #pragma once
+
+
+const int RELAYTEAMCHECK_NOTEAM = BIT(0);
+const int RELAYTEAMCHECK_INVERT = BIT(1);
index d8e2bb3d86f63a4dc26ca4dfc405d194bae5c449..3c393afd37bd3fd03bed40ea4f75ca9b5e49b382 100644 (file)
@@ -1,5 +1,9 @@
 #pragma once
-#include "../spawnflags.qh"
+
+
+const int VIEWLOC_NOSIDESCROLL = BIT(0); // NOTE: currently unimplemented
+const int VIEWLOC_FREEAIM = BIT(1);
+const int VIEWLOC_FREEMOVE = BIT(2);
 
 .entity viewloc;
 
index 1ecef76383b47e3d6cb4e25c2d18cef6bfaf02ba..bfb32696a53e16c94d7c1c3d55d8f38af1b1cb0a 100644 (file)
@@ -1,5 +1,5 @@
 #pragma once
-#include "spawnflags.qh"
+#include "defs.qh"
 
 .bool pushable;
 
@@ -46,10 +46,4 @@ void trigger_remove_generic(entity this);
 .float active;
 .string target;
 .string targetname;
-
-const int ACTIVE_NOT           = 0;
-const int ACTIVE_ACTIVE        = 1;
-const int ACTIVE_IDLE          = 2;
-const int ACTIVE_BUSY          = 2;
-const int ACTIVE_TOGGLE                = 3;
 #endif