Create common client header
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 2 May 2015 05:15:44 +0000 (15:15 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 2 May 2015 05:15:44 +0000 (15:15 +1000)
31 files changed:
qcsrc/client/_.qh [new file with mode: 0644]
qcsrc/client/announcer.qc
qcsrc/client/bgmscript.qc
qcsrc/client/casings.qc
qcsrc/client/csqcmodel_hooks.qc
qcsrc/client/damage.qc
qcsrc/client/effects.qc
qcsrc/client/gibs.qc
qcsrc/client/hook.qc
qcsrc/client/hud.qc
qcsrc/client/hud_config.qc
qcsrc/client/laser.qc
qcsrc/client/main.qc
qcsrc/client/mapvoting.qc
qcsrc/client/miscfunctions.qc
qcsrc/client/modeleffects.qc
qcsrc/client/movetypes.qc
qcsrc/client/noise.qc
qcsrc/client/particles.qc
qcsrc/client/prandom.qc
qcsrc/client/scoreboard.qc
qcsrc/client/shownames.qc
qcsrc/client/t_items.qc
qcsrc/client/target_music.qc
qcsrc/client/teamradar.qc
qcsrc/client/tturrets.qc
qcsrc/client/tuba.qc
qcsrc/client/vehicles/vehicles.qc
qcsrc/client/view.qc
qcsrc/client/wall.qc
qcsrc/client/waypointsprites.qc

diff --git a/qcsrc/client/_.qh b/qcsrc/client/_.qh
new file mode 100644 (file)
index 0000000..8b811bc
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef __H
+#define __H
+
+#include "autocvars.qh"
+#include "defs.qh"
+#include "main.qh"
+#include "miscfunctions.qh"
+
+#include "../dpdefs/csprogsdefs.qh"
+
+#endif
index 30231d1..ad61ea1 100644 (file)
@@ -1,14 +1,10 @@
 #include "announcer.qh"
-
-#include "autocvars.qh"
-#include "main.qh"
+#include "_.qh"
 
 #include "../common/notifications.qh"
 #include "../common/stats.qh"
 #include "../common/util.qh"
 
-#include "../dpdefs/csprogsdefs.qh"
-
 bool announcer_1min;
 bool announcer_5min;
 void Announcer_Countdown()
index d886220..eeba139 100644 (file)
@@ -1,13 +1,8 @@
 #include "bgmscript.qh"
-
-#include "autocvars.qh"
-#include "defs.qh"
-#include "main.qh"
+#include "_.qh"
 
 #include "../common/util.qh"
 
-#include "../dpdefs/csprogsdefs.qh"
-
 #define CONSTANT_SPEED_DECAY
 
 float bgmscriptbuf;
index 7dd7975..28a8390 100644 (file)
@@ -1,8 +1,6 @@
 #include "casings.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
-#include "main.qh"
 #include "movetypes.qh"
 #include "prandom.qh"
 #include "rubble.qh"
index 5bef3cc..44a4fa5 100644 (file)
@@ -1,10 +1,7 @@
 #include "csqcmodel_hooks.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "gibs.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 #include "player_skeleton.qh"
 #include "sortlist.qh"
 
index 6826b03..e523f4f 100644 (file)
@@ -1,7 +1,6 @@
 #include "damage.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "gibs.qh"
 #include "movetypes.qh"
 #include "prandom.qh"
@@ -14,8 +13,6 @@
 
 #include "../common/weapons/weapons.qh"
 
-#include "../dpdefs/csprogsdefs.qh"
-
 .entity tag_entity;
 
 .float cnt;
index 077c36a..de51aa3 100644 (file)
@@ -1,8 +1,5 @@
 #include "effects.qh"
-
-#include "autocvars.qh"
-
-#include "../dpdefs/csprogsdefs.qh"
+#include "_.qh"
 
 /*
 .vector fx_start;
index efdcd2e..e0fec0e 100644 (file)
@@ -1,8 +1,6 @@
 #include "gibs.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
-#include "main.qh"
 #include "movetypes.qh"
 #include "prandom.qh"
 #include "rubble.qh"
index 5d8394c..27351d4 100644 (file)
@@ -1,10 +1,7 @@
 #include "hook.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 #include "noise.qh"
 
 #include "../common/teams.qh"
index 0053541..b76fbc3 100644 (file)
@@ -1,10 +1,7 @@
 #include "hud.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud_config.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 #include "scoreboard.qh"
 #include "sortlist.qh"
 #include "teamradar.qh"
index f6c3f53..5c2779e 100644 (file)
@@ -1,13 +1,10 @@
 #include "hud_config.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "miscfunctions.qh"
 
 #include "../common/constants.qh"
 
-#include "../dpdefs/csprogsdefs.qh"
 #include "../dpdefs/keycodes.qh"
 
 
index f0a9a45..1d53629 100644 (file)
@@ -1,16 +1,13 @@
 #include "laser.qh"
+#include "_.qh"
 
 #include "hook.qh"
-#include "main.qh"
 
 #include "../common/buffs.qh"
 
 #include "../csqcmodellib/cl_model.qh"
 #include "../csqcmodellib/interpolate.qh"
 
-#include "../dpdefs/csprogsdefs.qh"
-
-
 // a laser goes from origin in direction angles
 // it has color 'colormod'
 // and stops when something is in the way
index 5eafa68..a74a4bf 100644 (file)
@@ -1,9 +1,9 @@
 #include "main.qh"
+#include "_.qh"
 
 #include "casings.qh"
 #include "csqcmodel_hooks.qh"
 #include "damage.qh"
-#include "defs.qh"
 #include "effects.qh"
 #include "gibs.qh"
 #include "hook.qh"
@@ -11,7 +11,6 @@
 #include "hud_config.qh"
 #include "laser.qh"
 #include "mapvoting.qh"
-#include "miscfunctions.qh"
 #include "modeleffects.qh"
 #include "particles.qh"
 #include "prandom.qh"
index e0f8b0d..588ed53 100644 (file)
@@ -1,10 +1,7 @@
 #include "mapvoting.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 #include "scoreboard.qh"
 
 #include "../common/mapinfo.qh"
index ae88b42..be7ea0e 100644 (file)
@@ -1,9 +1,7 @@
 #include "miscfunctions.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "main.qh"
 #include "sortlist.qh"
 
 #include "../common/command/generic.qh"
index 1eea25d..692e684 100644 (file)
@@ -1,7 +1,5 @@
 #include "modeleffects.qh"
-
-#include "defs.qh"
-#include "main.qh"
+#include "_.qh"
 
 .float cnt;
 .float scale;
index 88b5494..c26eac6 100644 (file)
@@ -1,6 +1,6 @@
 #include "movetypes.qh"
+#include "_.qh"
 
-#include "defs.qh"
 #include "t_items.qh"
 
 #include "../common/stats.qh"
@@ -8,9 +8,6 @@
 
 #include "../csqcmodellib/common.qh"
 
-#include "../dpdefs/csprogsdefs.qh"
-
-
 
 const int MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE = 4;
 #define GRAVITY_UNAFFECTED_BY_TICRATE (getstati(STAT_MOVEFLAGS) & MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE)
index 1896801..450d88b 100644 (file)
@@ -1,10 +1,5 @@
 #include "noise.qh"
-
-#if defined(CSQC)
-       #include "../dpdefs/csprogsdefs.qh"
-#elif defined(MENUQC)
-#elif defined(SVQC)
-#endif
+#include "_.qh"
 
 entityclass(Noise)
 class(Noise) .float noise_baccum;
index 24c01ce..aad8550 100644 (file)
@@ -1,8 +1,7 @@
 #include "particles.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
 #include "bgmscript.qh"
-#include "main.qh"
 
 #include "../common/stats.qh"
 #include "../common/util.qh"
index 3262488..548e2bd 100644 (file)
@@ -1,6 +1,5 @@
 #include "prandom.qh"
-
-#include "../dpdefs/csprogsdefs.qh"
+#include "_.qh"
 
 #include "../warpzonelib/mathlib.qh"
 
index da947cc..40db117 100644 (file)
@@ -1,10 +1,7 @@
 #include "scoreboard.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 #include "sortlist.qh"
 
 #include "../common/constants.qh"
index 0ee3e51..f3fcdb2 100644 (file)
@@ -1,10 +1,7 @@
 #include "shownames.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 
 #include "../common/constants.qh"
 #include "../common/mapinfo.qh"
@@ -13,9 +10,6 @@
 
 #include "../csqcmodellib/cl_model.qh"
 
-#include "../dpdefs/csprogsdefs.qh"
-
-
 // self.isactive = player is in range and coordinates/status (health and armor) are up to date
 // self.origin = player origin TODO: should maybe move this so it's the origin of the shownames tag already in SSQC for culling?
 // self.healthvalue
index c319467..525c88e 100644 (file)
@@ -1,11 +1,10 @@
-#include "autocvars.qh"
-#include "main.qh"
+#include "_.qh"
+
 #include "movetypes.qh"
 #include "../common/buffs.qh"
 #include "../common/util.qh"
 #include "../common/weapons/weapons.qh"
 #include "../csqcmodellib/cl_model.qh"
 #include "../csqcmodellib/common.qh"
-#include "../dpdefs/csprogsdefs.qh"
 
 #include "../server/t_items.qc"
index d72567c..90faf1c 100644 (file)
@@ -1,8 +1,5 @@
 #include "target_music.qh"
-
-#include "autocvars.qh"
-#include "defs.qh"
-#include "main.qh"
+#include "_.qh"
 
 #include "../common/constants.qh"
 #include "../common/util.qh"
index 2d7c327..19c8599 100644 (file)
@@ -1,10 +1,7 @@
 #include "teamradar.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 
 #include "../common/util.qh"
 
index bcff5ed..b4e3ad5 100644 (file)
@@ -1,10 +1,7 @@
 #include "tturrets.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 #include "movelib.qh"
 #include "movetypes.qh"
 #include "prandom.qh"
index aa20b35..b134fba 100644 (file)
@@ -1,7 +1,5 @@
 #include "tuba.qh"
-
-#include "autocvars.qh"
-#include "main.qh"
+#include "_.qh"
 
 #include "../common/constants.qh"
 #include "../common/util.qh"
index db1df04..9d0845d 100644 (file)
@@ -1,9 +1,6 @@
 #include "vehicles.qh"
+#include "../_.qh"
 
-#include "../autocvars.qh"
-#include "../defs.qh"
-#include "../main.qh"
-#include "../miscfunctions.qh"
 #include "../movetypes.qh"
 #include "../movetypes.qh"
 #include "../prandom.qh"
@@ -17,8 +14,6 @@
 
 #include "../../csqcmodellib/cl_model.qh"
 
-#include "../../dpdefs/csprogsdefs.qh"
-
 .float cnt;
 
 const string hud_bg = "gfx/vehicles/frame.tga";
index 1a75fa0..cbb6629 100644 (file)
@@ -1,12 +1,10 @@
+#include "_.qh"
+
 #include "announcer.qh"
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hook.qh"
 #include "hud.qh"
 #include "hud_config.qh"
-#include "main.qh"
 #include "mapvoting.qh"
-#include "miscfunctions.qh"
 #include "noise.qh"
 #include "scoreboard.qh"
 #include "shownames.qh"
@@ -25,8 +23,6 @@
 
 #include "../csqcmodellib/cl_player.qh"
 
-#include "../dpdefs/csprogsdefs.qh"
-
 #include "../warpzonelib/client.qh"
 #include "../warpzonelib/common.qh"
 #include "../warpzonelib/mathlib.qh"
index 98a2318..090dda5 100644 (file)
@@ -1,8 +1,7 @@
 #include "wall.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
 #include "bgmscript.qh"
-#include "main.qh"
 
 #include "../common/util.qh"
 
index 34c1d08..188db09 100644 (file)
@@ -1,10 +1,7 @@
 #include "waypointsprites.qh"
+#include "_.qh"
 
-#include "autocvars.qh"
-#include "defs.qh"
 #include "hud.qh"
-#include "main.qh"
-#include "miscfunctions.qh"
 #include "teamradar.qh"
 
 #include "../common/buffs.qh"