#include this
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 29 Jan 2015 00:12:02 +0000 (11:12 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 29 Jan 2015 00:12:02 +0000 (11:12 +1100)
Initial move to #include
TODO: remove unused includes

256 files changed:
qcsrc/Makefile
qcsrc/client/Defs.qc
qcsrc/client/Main.qc
qcsrc/client/View.qc
qcsrc/client/announcer.qc
qcsrc/client/autocvars.qh
qcsrc/client/bgmscript.qc
qcsrc/client/bgmscript.qh
qcsrc/client/casings.qc
qcsrc/client/command/cl_cmd.qc
qcsrc/client/command/cl_cmd.qh
qcsrc/client/csqcmodel_hooks.qc
qcsrc/client/damage.qc
qcsrc/client/damage.qh
qcsrc/client/effects.qc
qcsrc/client/gibs.qc
qcsrc/client/hook.qc
qcsrc/client/hud.qc
qcsrc/client/hud.qh
qcsrc/client/hud_config.qc
qcsrc/client/laser.qc
qcsrc/client/main.qh
qcsrc/client/mapvoting.qc
qcsrc/client/miscfunctions.qc
qcsrc/client/modeleffects.qc
qcsrc/client/movetypes.qc
qcsrc/client/movetypes.qh
qcsrc/client/noise.qc
qcsrc/client/noise.qh
qcsrc/client/particles.qc
qcsrc/client/player_skeleton.qc
qcsrc/client/player_skeleton.qh
qcsrc/client/prandom.qc
qcsrc/client/prandom.qh
qcsrc/client/rubble.qc
qcsrc/client/scoreboard.qc
qcsrc/client/scoreboard.qh
qcsrc/client/shownames.qc
qcsrc/client/shownames.qh
qcsrc/client/sortlist.qc
qcsrc/client/sys-post.qh
qcsrc/client/sys-pre.qh
qcsrc/client/target_music.qc
qcsrc/client/teamradar.qc
qcsrc/client/teamradar.qh
qcsrc/client/tturrets.qc
qcsrc/client/tturrets.qh
qcsrc/client/tuba.qc
qcsrc/client/vehicles/vehicles.qc
qcsrc/client/vehicles/vehicles.qh
qcsrc/client/wall.qc
qcsrc/client/waypointsprites.qc
qcsrc/client/waypointsprites.qh
qcsrc/client/weapons/projectile.qc
qcsrc/client/weapons/projectile.qh
qcsrc/common/animdecide.qc
qcsrc/common/animdecide.qh
qcsrc/common/buffs.qc
qcsrc/common/buffs.qh
qcsrc/common/campaign_common.qh
qcsrc/common/campaign_file.qc
qcsrc/common/campaign_setup.qc
qcsrc/common/command/generic.qc
qcsrc/common/command/generic.qh
qcsrc/common/command/markup.qc
qcsrc/common/command/markup.qh
qcsrc/common/command/rpn.qc
qcsrc/common/command/rpn.qh
qcsrc/common/command/shared_defs.qh
qcsrc/common/constants.qh
qcsrc/common/counting.qh
qcsrc/common/csqcmodel_settings.qh
qcsrc/common/deathtypes.qh
qcsrc/common/mapinfo.qc
qcsrc/common/mapinfo.qh
qcsrc/common/monsters/monsters.qc
qcsrc/common/monsters/monsters.qh
qcsrc/common/monsters/spawn.qc
qcsrc/common/monsters/spawn.qh
qcsrc/common/monsters/sv_monsters.qc
qcsrc/common/monsters/sv_monsters.qh
qcsrc/common/nades.qc
qcsrc/common/nades.qh
qcsrc/common/net_notice.qc
qcsrc/common/net_notice.qh
qcsrc/common/notifications.qc
qcsrc/common/notifications.qh
qcsrc/common/playerstats.qc
qcsrc/common/playerstats.qh
qcsrc/common/stats.qh
qcsrc/common/teams.qh
qcsrc/common/test.qc
qcsrc/common/test.qh
qcsrc/common/urllib.qc
qcsrc/common/urllib.qh
qcsrc/common/util-pre.qh
qcsrc/common/util.qc
qcsrc/common/util.qh
qcsrc/common/weapons/config.qc
qcsrc/common/weapons/config.qh
qcsrc/common/weapons/weapons.qc
qcsrc/common/weapons/weapons.qh
qcsrc/csqcmodellib/cl_model.qc
qcsrc/csqcmodellib/cl_model.qh
qcsrc/csqcmodellib/cl_player.qc
qcsrc/csqcmodellib/cl_player.qh
qcsrc/csqcmodellib/common.qh
qcsrc/csqcmodellib/interpolate.qc
qcsrc/csqcmodellib/interpolate.qh
qcsrc/csqcmodellib/sv_model.qc
qcsrc/csqcmodellib/sv_model.qh
qcsrc/dpdefs/csprogsdefs.qc
qcsrc/dpdefs/dpextensions.qc
qcsrc/dpdefs/keycodes.qc
qcsrc/dpdefs/menudefs.qc
qcsrc/dpdefs/progsdefs.qc
qcsrc/menu/command/menu_cmd.qc
qcsrc/menu/command/menu_cmd.qh
qcsrc/menu/config.qh
qcsrc/menu/draw.qc
qcsrc/menu/draw.qh
qcsrc/menu/menu.qc
qcsrc/menu/menu.qh
qcsrc/menu/oo/base.qh
qcsrc/menu/oo/implementation.qh
qcsrc/menu/oo/interface.qh
qcsrc/menu/skin.qh
qcsrc/menu/sys-post.qh
qcsrc/menu/sys-pre.qh
qcsrc/menu/xonotic/util.qc
qcsrc/menu/xonotic/util.qh
qcsrc/server/anticheat.qc
qcsrc/server/anticheat.qh
qcsrc/server/antilag.qc
qcsrc/server/antilag.qh
qcsrc/server/autocvars.qh
qcsrc/server/bot/bot.qc
qcsrc/server/campaign.qc
qcsrc/server/campaign.qh
qcsrc/server/cheats.qc
qcsrc/server/cheats.qh
qcsrc/server/cl_client.qc
qcsrc/server/cl_impulse.qc
qcsrc/server/cl_physics.qc
qcsrc/server/cl_player.qc
qcsrc/server/command/banning.qc
qcsrc/server/command/banning.qh
qcsrc/server/command/cmd.qc
qcsrc/server/command/cmd.qh
qcsrc/server/command/common.qc
qcsrc/server/command/common.qh
qcsrc/server/command/getreplies.qc
qcsrc/server/command/getreplies.qh
qcsrc/server/command/radarmap.qc
qcsrc/server/command/radarmap.qh
qcsrc/server/command/sv_cmd.qc
qcsrc/server/command/sv_cmd.qh
qcsrc/server/command/vote.qc
qcsrc/server/command/vote.qh
qcsrc/server/constants.qh
qcsrc/server/csqceffects.qc
qcsrc/server/defs.qh
qcsrc/server/ent_cs.qc
qcsrc/server/func_breakable.qc
qcsrc/server/g_casings.qc
qcsrc/server/g_damage.qc
qcsrc/server/g_hook.qc
qcsrc/server/g_hook.qh
qcsrc/server/g_models.qc
qcsrc/server/g_subs.qc
qcsrc/server/g_tetris.qc
qcsrc/server/g_triggers.qc
qcsrc/server/g_violence.qc
qcsrc/server/g_world.qc
qcsrc/server/ipban.qc
qcsrc/server/ipban.qh
qcsrc/server/item_key.qc
qcsrc/server/item_key.qh
qcsrc/server/mapvoting.qc
qcsrc/server/mapvoting.qh
qcsrc/server/miscfunctions.qc
qcsrc/server/miscfunctions.qh [new file with mode: 0644]
qcsrc/server/movelib.qc
qcsrc/server/mutators/mutators.qc
qcsrc/server/mutators/mutators_include.qc
qcsrc/server/mutators/mutators_include.qh
qcsrc/server/pathlib/pathlib.qh
qcsrc/server/playerdemo.qc
qcsrc/server/playerdemo.qh
qcsrc/server/portals.qc
qcsrc/server/portals.qh
qcsrc/server/race.qc
qcsrc/server/race.qh
qcsrc/server/round_handler.qc
qcsrc/server/round_handler.qh
qcsrc/server/scores.qc
qcsrc/server/scores.qh
qcsrc/server/scores_rules.qc
qcsrc/server/secret.qc
qcsrc/server/secret.qh
qcsrc/server/spawnpoints.qc
qcsrc/server/spawnpoints.qh
qcsrc/server/steerlib.qc
qcsrc/server/sv_main.qc
qcsrc/server/sys-post.qh
qcsrc/server/sys-pre.qh
qcsrc/server/t_halflife.qc
qcsrc/server/t_items.qc
qcsrc/server/t_items.qh
qcsrc/server/t_jumppads.qc
qcsrc/server/t_plats.qc
qcsrc/server/t_quake.qc
qcsrc/server/t_quake3.qc
qcsrc/server/t_swamp.qc
qcsrc/server/t_teleporters.qc
qcsrc/server/target_music.qc
qcsrc/server/target_spawn.qc
qcsrc/server/teamplay.qc
qcsrc/server/tturrets/include/turrets.qh
qcsrc/server/tturrets/include/turrets_early.qh
qcsrc/server/vehicles/bumblebee.qc
qcsrc/server/vehicles/vehicles.qh
qcsrc/server/vehicles/vehicles_def.qh
qcsrc/server/waypointsprites.qc
qcsrc/server/weapons/accuracy.qc
qcsrc/server/weapons/accuracy.qh
qcsrc/server/weapons/common.qc
qcsrc/server/weapons/common.qh
qcsrc/server/weapons/csqcprojectile.qc
qcsrc/server/weapons/csqcprojectile.qh
qcsrc/server/weapons/hitplot.qc
qcsrc/server/weapons/hitplot.qh
qcsrc/server/weapons/selection.qc
qcsrc/server/weapons/selection.qh
qcsrc/server/weapons/spawning.qc
qcsrc/server/weapons/spawning.qh
qcsrc/server/weapons/throwing.qc
qcsrc/server/weapons/throwing.qh
qcsrc/server/weapons/tracing.qc
qcsrc/server/weapons/tracing.qh
qcsrc/server/weapons/weaponstats.qc
qcsrc/server/weapons/weaponstats.qh
qcsrc/server/weapons/weaponsystem.qc
qcsrc/server/weapons/weaponsystem.qh
qcsrc/warpzonelib/anglestransform.qc
qcsrc/warpzonelib/anglestransform.qh
qcsrc/warpzonelib/client.qc
qcsrc/warpzonelib/client.qh
qcsrc/warpzonelib/common.qc
qcsrc/warpzonelib/common.qh
qcsrc/warpzonelib/mathlib.qc
qcsrc/warpzonelib/mathlib.qh
qcsrc/warpzonelib/server.qc
qcsrc/warpzonelib/server.qh
qcsrc/warpzonelib/util_server.qc
qcsrc/warpzonelib/util_server.qh

index 01d0528..abbd25f 100644 (file)
@@ -37,7 +37,7 @@ $(QCCVERSIONFILE):
 FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm)
 ../csprogs.dat: $(FILES_CSPROGS) $(QCCVERSIONFILE)
        @echo make[1]: Entering directory \`$(PWD)/client\'
-       cd client && $(QCC) $(QCCFLAGS)
+       cd client && $(QCC) $(QCCFLAGS) -DCSQC
 
 server/precache-for-csqc.inc: $(FILES_CSPROGS)
        sh collect-precache.sh
@@ -45,12 +45,12 @@ server/precache-for-csqc.inc: $(FILES_CSPROGS)
 FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm)
 ../progs.dat: $(FILES_PROGS) $(QCCVERSIONFILE) server/precache-for-csqc.inc
        @echo make[1]: Entering directory \`$(PWD)/server\'
-       cd server && $(QCC) $(QCCFLAGS)
+       cd server && $(QCC) $(QCCFLAGS) -DSVQC
 
 FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm)
 ../menu.dat: $(FILES_MENU) $(QCCVERSIONFILE)
        @echo make[1]: Entering directory \`$(PWD)/menu\'
-       cd menu && $(QCC) $(QCCFLAGS)
+       cd menu && $(QCC) $(QCCFLAGS) -DMENUQC
 
 .PHONY: testcase
 testcase:
index baf25e1..2a66024 100644 (file)
@@ -1,3 +1,11 @@
+#ifndef DEFS_H
+#define DEFS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
 //YOU HAVE BEEN WARNED.
@@ -274,3 +282,4 @@ float uid2name_dialog;
 #define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)
 
 float g_balance_porto_secondary;
+#endif
\ No newline at end of file
index e9591e5..4cbb1f8 100644 (file)
@@ -1,3 +1,29 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+    #include "Defs.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "command/cl_cmd.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "hud.qh"
+    #include "waypointsprites.qh"
+    #include "prandom.qh"
+    #include "tturrets.qh"
+    #include "main.qh"
+    #include "../csqcmodellib/cl_model.qh"
+    #include "shownames.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 // --------------------------------------------------------------------------
 // BEGIN REQUIRED CSQC FUNCTIONS
 //include "main.qh"
index a2d728d..505b4f1 100644 (file)
@@ -1,3 +1,26 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/nades.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "../common/mapinfo.qh"
+       #include "autocvars.qh"
+       #include "hud.qh"
+       #include "scoreboard.qh"
+       #include "noise.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_player.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 entity porto;
 vector polyline[16];
 void Porto_Draw()
index 9f74dac..6c2462c 100644 (file)
@@ -1,3 +1,14 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+    #include "../common/stats.qh"
+    #include "../common/util.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 bool announcer_1min;
 bool announcer_5min;
 void Announcer_Countdown()
index c4a4fab..bd1fc64 100644 (file)
@@ -1,3 +1,40 @@
+#ifndef CLIENT_AUTOCVARS_H
+#define CLIENT_AUTOCVARS_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 bool autocvar__con_chat_maximized;
 bool autocvar__hud_configure;
 string autocvar__hud_panelorder;
@@ -466,3 +503,4 @@ vector autocvar_crosshair_rpc_color = '0.2 1.0 0.2';
 float autocvar_crosshair_rpc_alpha = 1;
 float autocvar_crosshair_rpc_size = 1;
 int autocvar_cl_nade_timer;
+#endif
\ No newline at end of file
index 716696f..348319a 100644 (file)
@@ -1,3 +1,14 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/util.qh"
+       #include "autocvars.qh"
+       #include "bgmscript.qh"
+       #include "main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 #define CONSTANT_SPEED_DECAY
 
 float bgmscriptbuf;
index 713cf57..51e11eb 100644 (file)
@@ -1,3 +1,51 @@
+#ifndef BGMSCRIPT_H
+#define BGMSCRIPT_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+    #include "waypointsprites.qh"
+    #include "movetypes.qh"
+    #include "prandom.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .string bgmscript;
 .float bgmscriptattack;
 .float bgmscriptdecay;
@@ -8,3 +56,4 @@
 
 void BGMScript_InitEntity(entity e);
 float BGMScript(entity e);
+#endif
\ No newline at end of file
index d97e995..0207814 100644 (file)
@@ -1,3 +1,18 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../common/util.qh"
+       #include "autocvars.qh"
+       #include "movetypes.qh"
+       #include "prandom.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 .bool silent;
 
 void Casing_Delete()
index edf2656..09a899e 100644 (file)
@@ -3,6 +3,20 @@
 //  Last updated: December 28th, 2011
 // ==============================================
 
+#if defined(CSQC)
+       #include "../../dpdefs/csprogsdefs.qc"
+       #include "../Defs.qc"
+       #include "../../common/util.qh"
+       #include "../../common/mapinfo.qh"
+       #include "../../common/command/shared_defs.qh"
+       #include "cl_cmd.qh"
+       #include "../autocvars.qh"
+       #include "../hud.qh"
+       #include "../main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 void DrawDebugModel()
 {
        if(time - floor(time) > 0.5)
index 85ab8a4..4f48fed 100644 (file)
@@ -1,10 +1,45 @@
+#ifndef CL_CMD_H
+#define CL_CMD_H
 // ==============================================
 //  CSQC client commands code, written by Samual
 //  Last updated: December 17th, 2011
 // ==============================================
 
+#if defined(CSQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/csprogsdefs.qc"
+    #include "../sys-post.qh"
+    #include "../Defs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/client.qh"
+    #include "../../common/playerstats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../../common/test.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../../common/mapinfo.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/animdecide.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 void Cmd_HUD_SetFields(int);
 void Cmd_HUD_Help();
 
 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
 void LocalCommand_macro_write_aliases(int fh);
+#endif
\ No newline at end of file
index 8ca0194..149b06f 100644 (file)
@@ -1,3 +1,25 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/animdecide.qh"
+       #include "autocvars.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "main.qh"
+       #include "../common/csqcmodel_settings.qh"
+       #include "../csqcmodellib/common.qh"
+       #include "../csqcmodellib/cl_model.qh"
+       #include "../csqcmodellib/cl_player.qh"
+       #include "weapons/projectile.qh"
+       #include "player_skeleton.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 void CSQCModel_Hook_PreDraw(bool isplayer);
 
 .bool isplayermodel;
index 544c365..54ec061 100644 (file)
@@ -1,3 +1,19 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../common/util.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "autocvars.qh"
+       #include "../common/deathtypes.qh"
+       #include "damage.qh"
+       #include "movetypes.qh"
+       #include "prandom.qh"
+       #include "vehicles/vehicles.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 void DamageEffect_Think()
 {
        // if particle distribution is enabled, slow ticrate by total number of damages
index 23982f1..17184f2 100644 (file)
@@ -1 +1,42 @@
-.float total_damages; // number of effects which currently are attached to a player
\ No newline at end of file
+#ifndef DAMAGE_H
+#define DAMAGE_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+.float total_damages; // number of effects which currently are attached to a player
+#endif
\ No newline at end of file
index 56c83e0..86038c1 100644 (file)
@@ -1,3 +1,10 @@
+#if defined(CSQC)
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "autocvars.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 /*
 .vector fx_start;
 .vector fx_end;
index 5d8543a..dcf4bfe 100644 (file)
@@ -1,3 +1,19 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../common/util.qh"
+       #include "../common/buffs.qh"
+       #include "autocvars.qh"
+       #include "movetypes.qh"
+       #include "prandom.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+       #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .bool silent;
 
 void Gib_Delete()
index b7c023b..2f2918b 100644 (file)
@@ -1,3 +1,20 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "autocvars.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "noise.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 .float HookType; // ENT_CLIENT_*
 .vector origin;
 .vector velocity;
index 9c733ef..080e004 100644 (file)
@@ -1,3 +1,28 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/nades.qh"
+       #include "../common/buffs.qh"
+       #include "../common/counting.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "../common/mapinfo.qh"
+       #include "autocvars.qh"
+       #include "../common/deathtypes.qh"
+       #include "teamradar.qh"
+       #include "hud.qh"
+       #include "scoreboard.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_player.qh"
+       #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 /*
 ==================
 Misc HUD functions
index 85a1966..563e33f 100644 (file)
@@ -1,3 +1,46 @@
+#ifndef HUD_H
+#define HUD_H
+
+#if defined(CSQC)
+       #include "../common/util-pre.qh"
+       #include "sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "sys-post.qh"
+       #include "Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "../common/playerstats.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/nades.qh"
+       #include "../common/buffs.qh"
+       #include "../common/test.qh"
+       #include "../common/counting.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "../common/mapinfo.qh"
+       #include "../common/command/markup.qh"
+       #include "../common/command/rpn.qh"
+       #include "../common/command/generic.qh"
+       #include "../common/command/shared_defs.qh"
+       #include "../common/urllib.qh"
+       #include "../common/animdecide.qh"
+       #include "command/cl_cmd.qh"
+       #include "../common/monsters/monsters.qh"
+       #include "autocvars.qh"
+       #include "../common/notifications.qh"
+       #include "../common/deathtypes.qh"
+       #include "damage.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "teamradar.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 const int HUD_PANEL_MAX = 24;
 entity hud_panel[HUD_PANEL_MAX];
 const int HUD_PANEL_FIRST = 0;
@@ -356,3 +399,4 @@ void HUD_Notify_Push(string icon, string attacker, string victim);
 
 var void HUD_ModIcons_GameType(vector pos, vector size);
 void HUD_ModIcons_SetFunc();
+#endif
\ No newline at end of file
index e7f79fb..e07ee48 100644 (file)
@@ -1,3 +1,15 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "../common/constants.qh"
+       #include "autocvars.qh"
+       #include "hud.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 #define HUD_Write(s) fputs(fh, s)
 // q: quoted, n: not quoted
 #define HUD_Write_Cvar_n(cvar) HUD_Write(strcat("seta ", cvar, " ", cvar_string(cvar), "\n"))
index d6a3d7d..304ada9 100644 (file)
@@ -1,3 +1,14 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../common/buffs.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 // a laser goes from origin in direction angles
 // it has color 'colormod'
 // and stops when something is in the way
index 18efb2b..405298f 100644 (file)
@@ -1,3 +1,55 @@
+#ifndef MAIN_H
+#define MAIN_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+    #include "waypointsprites.qh"
+    #include "movetypes.qh"
+    #include "prandom.qh"
+    #include "bgmscript.qh"
+    #include "noise.qh"
+    #include "tturrets.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 // --------------------------------------------------------------------------
 // MENU Functionality
 
@@ -146,3 +198,4 @@ entity entcs_receiver[255]; // 255 is the engine limit on maxclients
 float hud;
 float view_quality;
 int framecount;
+#endif
\ No newline at end of file
index 5bffcde..d2ce7cb 100644 (file)
@@ -1,3 +1,17 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "../common/constants.qh"
+       #include "../common/util.qh"
+       #include "../common/mapinfo.qh"
+       #include "autocvars.qh"
+       #include "main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 int mv_num_maps;
 
 float mv_active;
index 25741ce..ec539ee 100644 (file)
@@ -1,3 +1,21 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/command/generic.qh"
+       #include "../common/urllib.qh"
+       #include "autocvars.qh"
+       #include "hud.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 entity players;
 entity teams;
 float team_count; // real teams
index 0f873b7..8034ab8 100644 (file)
@@ -1,3 +1,12 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 .float frame1time;
 .float lifetime, fadetime;
 .float teleport_time;
index a1e9a65..abece4c 100644 (file)
@@ -1,3 +1,16 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/stats.qh"
+       #include "../common/util.qh"
+       #include "movetypes.qh"
+       #include "../csqcmodellib/common.qh"
+       #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 const int MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE = 4;
 #define GRAVITY_UNAFFECTED_BY_TICRATE (getstati(STAT_MOVEFLAGS) & MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE)
 
index db2266d..717c70a 100644 (file)
@@ -1,3 +1,49 @@
+#ifndef MOVETYPES_H
+#define MOVETYPES_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+    #include "waypointsprites.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .float move_movetype;
 .float move_time;
 .vector move_origin;
@@ -38,3 +84,4 @@ const int MOVETYPE_FLY_WORLDONLY    = 33;
 
 const int FL_ITEM                   = 256;
 const int FL_ONGROUND                          = 512;
+#endif
\ No newline at end of file
index ef9b855..da56f6c 100644 (file)
@@ -1,3 +1,10 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "noise.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .float noise_baccum;
 .float noise_paccum;
 .float noise_paccum2;
index 30ce4d0..d90e2c1 100644 (file)
@@ -1,5 +1,55 @@
+#ifndef NOISE_H
+#define NOISE_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+    #include "waypointsprites.qh"
+    #include "movetypes.qh"
+    #include "prandom.qh"
+    #include "bgmscript.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 // noises "usually" start in the range -1..1
 float Noise_Brown(entity e, float dt);
 float Noise_Pink(entity e, float dt);
 float Noise_White(entity e, float dt);
 float Noise_Burst(entity e, float dt, float p); // +1 or -1
+#endif
\ No newline at end of file
index a8dd10c..062c968 100644 (file)
@@ -1,3 +1,18 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../common/util.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "autocvars.qh"
+       #include "bgmscript.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .int dphitcontentsmask;
 
 .int cnt; // effect number
index 01cbfc6..82800ef 100644 (file)
@@ -1,3 +1,12 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../common/util.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "player_skeleton.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .float skeleton_info_modelindex;
 .float skeleton_info_skin;
 const int BONETYPE_LOWER = 0;
index fdf5b3d..63ef018 100644 (file)
@@ -1,3 +1,62 @@
+#ifndef PLAYER_SKELETON
+#define PLAYER_SKELETON
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+    #include "waypointsprites.qh"
+    #include "movetypes.qh"
+    #include "prandom.qh"
+    #include "bgmscript.qh"
+    #include "noise.qh"
+    #include "tturrets.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "main.qh"
+    #include "vehicles/vehicles.qh"
+    #include "../common/csqcmodel_settings.qh"
+    #include "../csqcmodellib/common.qh"
+    #include "../csqcmodellib/cl_model.qh"
+    #include "../csqcmodellib/cl_player.qh"
+    #include "weapons/projectile.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 void free_skeleton_from_frames(entity e);
 void skeleton_from_frames(entity e, float is_dead);
 void skeleton_loadinfo(entity e);
@@ -7,3 +66,4 @@ void skeleton_loadinfo(entity e);
 .float bone_aim[MAX_AIM_BONES];
 .float bone_aimweight[MAX_AIM_BONES];
 .float fixbone;
+#endif
\ No newline at end of file
index 9bca7b0..ad3cd7d 100644 (file)
@@ -1,3 +1,11 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../warpzonelib/mathlib.qh"
+       #include "prandom.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 // prandom - PREDICTABLE random number generator (not seeded yet)
 
 #ifdef USE_PRANDOM
index 7d5df6f..609f085 100644 (file)
@@ -1,3 +1,50 @@
+#ifndef PRANDOM_H
+#define PRANDOM_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+    #include "waypointsprites.qh"
+    #include "movetypes.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 // prandom - PREDICTABLE random number generator
 
 #define USE_PRANDOM
@@ -18,3 +65,4 @@ void prandom_debug();
 #define psrandom(x)
 #define prandom_debug()
 #endif
+#endif
\ No newline at end of file
index 7bf9e57..7f7c162 100644 (file)
@@ -1,3 +1,9 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .float creationtime;
 
 // LordHavoc: rewrote this file, it was really bad code
index 5f4cbc1..f1106f0 100644 (file)
@@ -1,3 +1,23 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/buffs.qh"
+       #include "../common/counting.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "../common/mapinfo.qh"
+       #include "command/cl_cmd.qh"
+       #include "autocvars.qh"
+       #include "hud.qh"
+       #include "scoreboard.qh"
+       #include "main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 float scoreboard_alpha_bg;
 float scoreboard_alpha_fg;
 float scoreboard_highlight;
index 3e5de00..4e3c766 100644 (file)
@@ -1,3 +1,48 @@
+#ifndef SCOREBOARD_H
+#define SCOREBOARD_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 float HUD_WouldDrawScoreboard(void);
 float scoreboard_active;
 float scoreboard_fade_alpha;
+#endif
\ No newline at end of file
index 5f40b26..05fe0bb 100644 (file)
@@ -1,3 +1,19 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/mapinfo.qh"
+       #include "autocvars.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+       #include "shownames.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 // 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 adbfa57..53632b7 100644 (file)
@@ -1,5 +1,67 @@
+#ifndef SHOWNAMES_H
+#define SHOWNAMES_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+    #include "waypointsprites.qh"
+    #include "movetypes.qh"
+    #include "prandom.qh"
+    #include "bgmscript.qh"
+    #include "noise.qh"
+    #include "tturrets.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "main.qh"
+    #include "vehicles/vehicles.qh"
+    #include "../common/csqcmodel_settings.qh"
+    #include "../csqcmodellib/common.qh"
+    #include "../csqcmodellib/cl_model.qh"
+    #include "../csqcmodellib/cl_player.qh"
+    #include "weapons/projectile.qh"
+    #include "player_skeleton.qh"
+    #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .float healthvalue;
 .float armorvalue;
 .float sameteam;
 .float fadedelay;
 .float pointtime;
+#endif
\ No newline at end of file
index 8537dd3..85601aa 100644 (file)
@@ -1,3 +1,9 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 //.float(entity,entity) sort_cmp;
 .entity sort_next, sort_prev;
 
index ec4e31a..cf8ffef 100644 (file)
@@ -1,3 +1,15 @@
+#ifndef SYS_POST_H
+#define SYS_POST_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 #pragma noref 0
 
 #undef ATTEN_NORM
+#endif
\ No newline at end of file
index 3b4fc14..f6202b5 100644 (file)
@@ -1,5 +1,14 @@
-#define CSQC
+#ifndef SYS_PRE_H
+#define SYS_PRE_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
 
 #define ATTEN_NORM builtin_ATTEN_NORM
 
 #pragma noref 1
+
+#endif
\ No newline at end of file
index 731c432..87a4813 100644 (file)
@@ -1,3 +1,16 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../common/util.qh"
+       #include "autocvars.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 float music_disabled;
 entity music_default;
 entity music_target;
index 3e361ff..de56efa 100644 (file)
@@ -1,3 +1,17 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/util.qh"
+       #include "autocvars.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "teamradar.qh"
+       #include "hud.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 float teamradar_angle; // player yaw angle
 vector teamradar_origin3d_in_texcoord; // player origin
 vector teamradar_origin2d; // 2D origin
index 2ab26a3..4b58fb9 100644 (file)
@@ -1,3 +1,45 @@
+#ifndef TEAMRADAR_H
+#define TEAMRADAR_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 const int MAX_TEAMRADAR_TIMES = 32;
 
 // to make entities have dots on the team radar
@@ -5,3 +47,4 @@ const int MAX_TEAMRADAR_TIMES = 32;
 .float teamradar_times[MAX_TEAMRADAR_TIMES];
 .int teamradar_time_index;
 .vector teamradar_color;
+#endif
\ No newline at end of file
index ec2ddeb..c46d80d 100644 (file)
@@ -1,3 +1,23 @@
+#if defined(CSQC)
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "Defs.qc"
+    #include "../common/constants.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../common/teams.qh"
+    #include "../common/buffs.qh"
+    #include "autocvars.qh"
+    #include "teamradar.qh"
+    #include "movetypes.qh"
+    #include "tturrets.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "main.qh"
+    #include "../csqcmodellib/common.qh"
+    #include "../csqcmodellib/cl_model.qh"
+    #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 string tid2info_base;
 string tid2info_head;
 string tid2info_name;
index cf74f48..da4df80 100644 (file)
@@ -1,3 +1,54 @@
+#ifndef TTURRETS_H
+#define TTURRETS_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+    #include "waypointsprites.qh"
+    #include "movetypes.qh"
+    #include "prandom.qh"
+    #include "bgmscript.qh"
+    #include "noise.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 void ent_turret();
 void turrets_precache();
 .entity tur_head;
+#endif
\ No newline at end of file
index 8d2ba7f..aeb4ebe 100644 (file)
@@ -1,3 +1,15 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../common/constants.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../common/util.qh"
+       #include "autocvars.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 const float TUBA_MIN = -18;
 const float TUBA_MAX =  27;
 const float TUBA_INSTRUMENTS = 3;
index a986fa7..e029e74 100644 (file)
@@ -1,3 +1,21 @@
+#if defined(CSQC)
+    #include "../../dpdefs/csprogsdefs.qc"
+    #include "../Defs.qc"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../common/util.qh"
+    #include "../../common/buffs.qh"
+    #include "../autocvars.qh"
+    #include "../movetypes.qh"
+    #include "../prandom.qh"
+    #include "../main.qh"
+    #include "vehicles.qh"
+    #include "../../csqcmodellib/cl_model.qh"
+    #include "../../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 const string hud_bg = "gfx/vehicles/frame.tga";
 const string hud_sh = "gfx/vehicles/vh-shield.tga";
 
index 66b2af1..72ff233 100644 (file)
@@ -1,4 +1,57 @@
+#ifndef VEHICLES_H
+#define VEHICLES_H
+
+#if defined(CSQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/csprogsdefs.qc"
+    #include "../sys-post.qh"
+    #include "../Defs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/client.qh"
+    #include "../../common/playerstats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../../common/test.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../../common/mapinfo.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/animdecide.qh"
+    #include "../command/cl_cmd.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../autocvars.qh"
+    #include "../../common/notifications.qh"
+    #include "../../common/deathtypes.qh"
+    #include "../damage.qh"
+    #include "../../csqcmodellib/interpolate.qh"
+    #include "../teamradar.qh"
+    #include "../hud.qh"
+    #include "../scoreboard.qh"
+    #include "../waypointsprites.qh"
+    #include "../movetypes.qh"
+    #include "../prandom.qh"
+    #include "../bgmscript.qh"
+    #include "../noise.qh"
+    #include "../tturrets.qh"
+    #include "../../server/tturrets/include/turrets_early.qh"
+    #include "../main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 void RaptorCBShellfragDraw();
 void RaptorCBShellfragToss(vector _org, vector _vel, vector _ang);
 void Vehicles_Precache();
-
+#endif
\ No newline at end of file
index 314e8cc..5bf5f04 100644 (file)
@@ -1,3 +1,15 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../common/util.qh"
+       #include "autocvars.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "bgmscript.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .float lip;
 .float bgmscriptangular;
 .int lodmodelindex0, lodmodelindex1, lodmodelindex2;
index de6970b..bce02b9 100644 (file)
@@ -1,3 +1,23 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "Defs.qc"
+       #include "../common/constants.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/buffs.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "autocvars.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "teamradar.qh"
+       #include "waypointsprites.qh"
+       #include "main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+       #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 float waypointsprite_initialized;
 float waypointsprite_fadedistance;
 float waypointsprite_normdistance;
index 9489508..32baea3 100644 (file)
@@ -1,3 +1,49 @@
+#ifndef WAYPOINTSPRITES_H
+#define WAYPOINTSPRITES_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "sys-post.qh"
+    #include "Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "damage.qh"
+    #include "../csqcmodellib/interpolate.qh"
+    #include "teamradar.qh"
+    #include "hud.qh"
+    #include "scoreboard.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 // they are drawn using a .draw function
 void Ent_WaypointSprite();
 void Ent_RemoveWaypointSprite();
+#endif
\ No newline at end of file
index a6302bb..ba88462 100644 (file)
@@ -1,3 +1,22 @@
+#if defined(CSQC)
+       #include "../../dpdefs/csprogsdefs.qc"
+    #include "../Defs.qc"
+    #include "../../common/constants.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../autocvars.qh"
+    #include "../../csqcmodellib/interpolate.qh"
+    #include "../movetypes.qh"
+    #include "../main.qh"
+    #include "../../csqcmodellib/cl_model.qh"
+    #include "projectile.qh"
+    #include "../../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .vector iorigin1, iorigin2;
 .float spawntime;
 .vector trail_oldorigin;
index bd3e8f6..0fc233d 100644 (file)
@@ -1,3 +1,62 @@
+#ifndef PROJECTILE_H
+#define PROJECTILE_H
+
+#if defined(CSQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/csprogsdefs.qc"
+    #include "../sys-post.qh"
+    #include "../Defs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/client.qh"
+    #include "../../common/playerstats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../../common/test.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../../common/mapinfo.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/animdecide.qh"
+    #include "../command/cl_cmd.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../autocvars.qh"
+    #include "../../common/notifications.qh"
+    #include "../../common/deathtypes.qh"
+    #include "../damage.qh"
+    #include "../../csqcmodellib/interpolate.qh"
+    #include "../teamradar.qh"
+    #include "../hud.qh"
+    #include "../scoreboard.qh"
+    #include "../waypointsprites.qh"
+    #include "../movetypes.qh"
+    #include "../prandom.qh"
+    #include "../bgmscript.qh"
+    #include "../noise.qh"
+    #include "../tturrets.qh"
+    #include "../../server/tturrets/include/turrets_early.qh"
+    #include "../main.qh"
+    #include "../vehicles/vehicles.qh"
+    #include "../../common/csqcmodel_settings.qh"
+    #include "../../csqcmodellib/common.qh"
+    #include "../../csqcmodellib/cl_model.qh"
+    #include "../../csqcmodellib/cl_player.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 .int traileffect;
 void Projectile_ResetTrail(vector to);
 void Projectile_DrawTrail(vector to);
+#endif
\ No newline at end of file
index 8bd689c..ba114f3 100644 (file)
@@ -1,3 +1,15 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "animdecide.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "util.qh"
+    #include "animdecide.qh"
+    #include "../server/defs.qh"
+#endif
+
 // player animation data for this model
 // each vector is as follows:
 // _x = startframe
index 58e0693..3f6815f 100644 (file)
@@ -1,3 +1,61 @@
+#ifndef ANIMDECIDE_H
+#define ANIMDECIDE_H
+
+#if defined(CSQC)
+    #include "util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "weapons/weapons.qh"
+    #include "mapinfo.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "urllib.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "urllib.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "net_notice.qh"
+#endif
+
 // must be called at least once to initialize, or when modelindex is changed
 void animdecide_load_if_needed(entity e);
 
@@ -45,3 +103,4 @@ const int ANIMACTION_PAIN2 = 3; // pain
 const int ANIMACTION_SHOOT = 4; // shoot
 const int ANIMACTION_TAUNT = 5; // taunt
 const int ANIMACTION_MELEE = 6; // melee
+#endif
\ No newline at end of file
index 2f8e0fc..ed592aa 100644 (file)
@@ -1,3 +1,14 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/Defs.qc"
+       #include "buffs.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "buffs.qh"
+#endif
+
 vector Buff_Color(float buff_id)
 {
        entity e;
index d2ba5f0..b22c2fa 100644 (file)
@@ -1,3 +1,42 @@
+#ifndef BUFFS_H
+#define BUFFS_H
+
+#if defined(CSQC)
+       #include "util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "constants.qh"
+       #include "stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "playerstats.qh"
+       #include "teams.qh"
+       #include "util.qh"
+       #include "nades.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+#endif
+
 entity Buff_Type_first;
 entity Buff_Type_last;
 .entity enemy; // internal next pointer
@@ -91,3 +130,4 @@ float Buff_Type_FromName(string buff_name);
 float Buff_Type_FromSprite(string buff_sprite);
 float Buff_Skin(float buff_id);
 string Buff_Sprite(float buff_id);
+#endif
\ No newline at end of file
index f6e240a..7f72d35 100644 (file)
@@ -1,3 +1,75 @@
+#ifndef CAMPAIGN_COMMON_H
+#define CAMPAIGN_COMMON_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+    #include "test.qh"
+    #include "../menu/oo/base.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+    #include "constants.qh"
+    #include "mapinfo.qh"
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "urllib.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "net_notice.qh"
+    #include "animdecide.qh"
+    #include "monsters/monsters.qh"
+    #include "monsters/sv_monsters.qh"
+    #include "monsters/spawn.qh"
+    #include "weapons/config.qh"
+    #include "weapons/weapons.qh"
+    #include "../server/weapons/accuracy.qh"
+    #include "../server/weapons/common.qh"
+    #include "../server/weapons/csqcprojectile.qh"
+    #include "../server/weapons/hitplot.qh"
+    #include "../server/weapons/selection.qh"
+    #include "../server/weapons/spawning.qh"
+    #include "../server/weapons/throwing.qh"
+    #include "../server/weapons/tracing.qh"
+    #include "../server/weapons/weaponstats.qh"
+    #include "../server/weapons/weaponsystem.qh"
+    #include "../server/t_items.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/constants.qh"
+    #include "../server/defs.qh"
+    #include "notifications.qh"
+    #include "deathtypes.qh"
+    #include "../server/mutators/mutators_include.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "../server/vehicles/vehicles_def.qh"
+    #include "../server/campaign.qh"
+#endif
+
 #ifndef CAMPAIGN_MAX_ENTRIES
 #define CAMPAIGN_MAX_ENTRIES 64
 #endif
@@ -28,3 +100,4 @@ void CampaignFile_Unload();
 // Sets up the campaign for the n-th array item (meaning: campaign_offset+nth
 // level) using localcmd()
 void CampaignSetup(float n);
+#endif
\ No newline at end of file
index d9864f4..7031b92 100644 (file)
@@ -1,3 +1,12 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "util.qh"
+    #include "campaign_common.qh"
+#endif
+
 // CampaignFileLoad(offset, n)
 // - Loads campaign level data (up to n entries starting at offset)
 //   into the globals
index 525b285..fed2763 100644 (file)
@@ -1,3 +1,11 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "campaign_common.qh"
+    #include "mapinfo.qh"
+#endif
+
 void CampaignSetup(float n)
 {
        localcmd("set g_campaign 1\n");
index 0eeb7f7..37f6ebd 100644 (file)
@@ -1,3 +1,31 @@
+#if defined(CSQC)
+       #include "../../dpdefs/csprogsdefs.qc"
+       #include "../constants.qh"
+       #include "../util.qh"
+       #include "../mapinfo.qh"
+       #include "generic.qh"
+       #include "shared_defs.qh"
+       #include "../../client/command/cl_cmd.qh"
+       #include "../notifications.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../constants.qh"
+    #include "../util.qh"
+    #include "../test.qh"
+    #include "generic.qh"
+    #include "shared_defs.qh"
+    #include "../weapons/config.qh"
+    #include "../notifications.qh"
+    #include "../mapinfo.qh"
+    #include "../../server/command/common.qh"
+    #include "../../server/command/banning.qh"
+    #include "../../server/command/cmd.qh"
+    #include "../../server/command/sv_cmd.qh"
+#endif
+
 // =========================================================
 //  Generic program common command code, written by Samual
 //  Last updated: February 19th, 2012
index b3a63e9..3eb3243 100644 (file)
@@ -1,3 +1,73 @@
+#ifndef GENERIC_H
+#define GENERIC_H
+
+#if defined(CSQC)
+    #include "../util-pre.qh"
+    #include "../../client/sys-pre.qh"
+    #include "../../dpdefs/csprogsdefs.qc"
+    #include "../../client/sys-post.qh"
+    #include "../../client/Defs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/client.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../weapons/weapons.qh"
+    #include "../mapinfo.qh"
+    #include "markup.qh"
+    #include "rpn.qh"
+#elif defined(MENUQC)
+    #include "../util-pre.qh"
+    #include "../../menu/sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../menu/sys-post.qh"
+    #include "../../menu/config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../util.qh"
+    #include "../test.qh"
+    #include "../../menu/oo/base.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../constants.qh"
+    #include "../mapinfo.qh"
+    #include "../campaign_common.qh"
+    #include "../weapons/weapons.qh"
+    #include "../counting.qh"
+    #include "markup.qh"
+    #include "rpn.qh"
+#elif defined(SVQC)
+    #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+    #include "markup.qh"
+    #include "rpn.qh"
+#endif
 // =========================================================
 //  Declarations for common command code, written by Samual
 //  Last updated: December 28th, 2011
@@ -20,3 +90,4 @@ void Curl_URI_Get_Callback(int id, float status, string data);
 int curl_uri_get_pos;
 float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1];
 string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1];
+#endif
\ No newline at end of file
index 1c80018..52b53b8 100644 (file)
@@ -1,3 +1,14 @@
+#if defined(CSQC)
+       #include "../../dpdefs/csprogsdefs.qc"
+       #include "../util.qh"
+       #include "markup.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/dpextensions.qc"
+    #include "../util.qh"
+    #include "markup.qh"
+#endif
+
 // =========================================================
 //  Markup chat characters command code, reworked by Samual
 //  Last updated: December 28th, 2011
index cf72f85..41fcf40 100644 (file)
@@ -1,3 +1,67 @@
+#ifndef MARKUP_H
+#define MARKUP_H
+
+#if defined(CSQC)
+    #include "../util-pre.qh"
+    #include "../../client/sys-pre.qh"
+    #include "../../dpdefs/csprogsdefs.qc"
+    #include "../../client/sys-post.qh"
+    #include "../../client/Defs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/client.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../weapons/weapons.qh"
+    #include "../mapinfo.qh"
+#elif defined(MENUQC)
+    #include "../util-pre.qh"
+    #include "../../menu/sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../menu/sys-post.qh"
+    #include "../../menu/config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../util.qh"
+    #include "../test.qh"
+    #include "../../menu/oo/base.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../constants.qh"
+    #include "../mapinfo.qh"
+    #include "../campaign_common.qh"
+    #include "../weapons/weapons.qh"
+    #include "../counting.qh"
+#elif defined(SVQC)
+    #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+#endif
 // ==========================================================
 //  Declarations for markup command code, reworked by Samual
 //  Last updated: December 28th, 2011
@@ -7,3 +71,4 @@ const int NUM_MARKUPS = 41;
 bool markup_init;
 string markup_from[NUM_MARKUPS];
 string markup_to[NUM_MARKUPS];
+#endif
\ No newline at end of file
index 480bac3..8936338 100644 (file)
@@ -1,3 +1,22 @@
+#if defined(CSQC)
+       #include "../../dpdefs/csprogsdefs.qc"
+       #include "../../warpzonelib/mathlib.qh"
+       #include "../util.qh"
+       #include "rpn.qh"
+       #include "generic.qh"
+       #include "shared_defs.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../util.qh"
+    #include "rpn.qh"
+    #include "generic.qh"
+    #include "shared_defs.qh"
+#endif
+
 // ========================================
 //  RPN command code, written by divVerent
 //  Last updated: December 28th, 2011
index 5f6856c..ab02612 100644 (file)
@@ -1,3 +1,70 @@
+#ifndef RPN_H
+#define RPN_H
+
+#if defined(CSQC)
+    #include "../util-pre.qh"
+    #include "../../client/sys-pre.qh"
+    #include "../../dpdefs/csprogsdefs.qc"
+    #include "../../client/sys-post.qh"
+    #include "../../client/Defs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/client.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../weapons/weapons.qh"
+    #include "../mapinfo.qh"
+    #include "markup.qh"
+#elif defined(MENUQC)
+    #include "../util-pre.qh"
+    #include "../../menu/sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../menu/sys-post.qh"
+    #include "../../menu/config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../util.qh"
+    #include "../test.qh"
+    #include "../../menu/oo/base.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../constants.qh"
+    #include "../mapinfo.qh"
+    #include "../campaign_common.qh"
+    #include "../weapons/weapons.qh"
+    #include "../counting.qh"
+    #include "markup.qh"
+#elif defined(SVQC)
+    #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+    #include "markup.qh"
+#endif
 // =========================================================
 //  Declarations for RPN command code, written by divVerent
 //  Last updated: December 28th, 2011
@@ -8,3 +75,4 @@ int rpn_db;
 int rpn_error;
 int rpn_sp;
 string rpn_stack[MAX_RPN_STACK];
+#endif
\ No newline at end of file
index 169b0f6..a158f81 100644 (file)
@@ -1,3 +1,77 @@
+#ifndef SHARED_DEFS_H
+#define SHARED_DEFS_H
+
+#if defined(CSQC)
+    #include "../util-pre.qh"
+    #include "../../client/sys-pre.qh"
+    #include "../../dpdefs/csprogsdefs.qc"
+    #include "../../client/sys-post.qh"
+    #include "../../client/Defs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/client.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../weapons/weapons.qh"
+    #include "../mapinfo.qh"
+    #include "markup.qh"
+    #include "rpn.qh"
+    #include "generic.qh"
+#elif defined(MENUQC)
+    #include "../util-pre.qh"
+    #include "../../menu/sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../menu/sys-post.qh"
+    #include "../../menu/config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../util.qh"
+    #include "../test.qh"
+    #include "../../menu/oo/base.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../constants.qh"
+    #include "../mapinfo.qh"
+    #include "../campaign_common.qh"
+    #include "../weapons/weapons.qh"
+    #include "../counting.qh"
+    #include "markup.qh"
+    #include "rpn.qh"
+    #include "generic.qh"
+#elif defined(SVQC)
+    #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+    #include "markup.qh"
+    #include "rpn.qh"
+    #include "generic.qh"
+#endif
+
 // =========================================================
 //  Shared declarations for all commands, written by Samual
 //  Last updated: December 13th, 2011
@@ -5,4 +79,5 @@
 
 // identifiers for subfunction requests by the command code structure
 const int CMD_REQUEST_COMMAND = 1;
-const int CMD_REQUEST_USAGE = 2;
\ No newline at end of file
+const int CMD_REQUEST_USAGE = 2;
+#endif
\ No newline at end of file
index a110a81..baff246 100644 (file)
@@ -1,3 +1,39 @@
+#ifndef CONSTANTS_H
+#define CONSTANTS_H
+
+#if defined(CSQC)
+    #include "util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+#elif defined(MENUQC)
+    #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+    #include "test.qh"
+    #include "../menu/oo/base.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+#endif
+
 const int AS_STRING = 1;
 const int AS_INT = 2;
 const int AS_FLOAT_TRUNCATED = 2;
@@ -320,3 +356,4 @@ const int URI_GET_URLLIB_END = 191;
 const int GTV_AVAILABLE = 0;
 // for later use in per-map gametype filtering
 const int GTV_FORBIDDEN = 2;
+#endif
\ No newline at end of file
index 4a2007c..a271a55 100644 (file)
@@ -1,3 +1,62 @@
+#ifndef COUNTING_H
+#define COUNTING_H
+
+#if defined(CSQC)
+       #include "util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "constants.qh"
+       #include "stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "playerstats.qh"
+       #include "teams.qh"
+       #include "util.qh"
+       #include "nades.qh"
+       #include "buffs.qh"
+       #include "test.qh"
+#elif defined(MENUQC)
+       #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+    #include "test.qh"
+    #include "../menu/oo/base.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+    #include "constants.qh"
+    #include "mapinfo.qh"
+    #include "campaign_common.qh"
+    #include "weapons/weapons.qh"
+#elif defined(SVQC)
+       #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+#endif
+
 // ===============================================
 //  Time processing and counting functions/macros
 // ===============================================
@@ -215,3 +274,4 @@ string process_time(float outputtype, float seconds)
        }
        return "";
 }
+#endif
\ No newline at end of file
index 54ef111..3b142fe 100644 (file)
@@ -1,3 +1,116 @@
+#ifndef CSQCMODEL_SETTINGS_H
+#define CSQCMODEL_SETTINGS_H
+
+#if defined(CSQC)
+       #include "util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "constants.qh"
+       #include "stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "playerstats.qh"
+       #include "teams.qh"
+       #include "util.qh"
+       #include "nades.qh"
+       #include "buffs.qh"
+       #include "test.qh"
+       #include "counting.qh"
+       #include "weapons/weapons.qh"
+       #include "mapinfo.qh"
+       #include "command/markup.qh"
+       #include "command/rpn.qh"
+       #include "command/generic.qh"
+       #include "command/shared_defs.qh"
+       #include "urllib.qh"
+       #include "animdecide.qh"
+       #include "../client/command/cl_cmd.qh"
+       #include "monsters/monsters.qh"
+       #include "../client/autocvars.qh"
+       #include "notifications.qh"
+       #include "deathtypes.qh"
+       #include "../client/damage.qh"
+       #include "../csqcmodellib/interpolate.qh"
+       #include "../client/teamradar.qh"
+       #include "../client/hud.qh"
+       #include "../client/scoreboard.qh"
+       #include "../client/waypointsprites.qh"
+       #include "../client/movetypes.qh"
+       #include "../client/prandom.qh"
+       #include "../client/bgmscript.qh"
+       #include "../client/noise.qh"
+       #include "../client/tturrets.qh"
+       #include "../server/tturrets/include/turrets_early.qh"
+       #include "../client/main.qh"
+       #include "../client/vehicles/vehicles.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "urllib.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "net_notice.qh"
+    #include "animdecide.qh"
+    #include "monsters/monsters.qh"
+    #include "monsters/sv_monsters.qh"
+    #include "monsters/spawn.qh"
+    #include "weapons/config.qh"
+    #include "weapons/weapons.qh"
+    #include "../server/weapons/accuracy.qh"
+    #include "../server/weapons/common.qh"
+    #include "../server/weapons/csqcprojectile.qh"
+    #include "../server/weapons/hitplot.qh"
+    #include "../server/weapons/selection.qh"
+    #include "../server/weapons/spawning.qh"
+    #include "../server/weapons/throwing.qh"
+    #include "../server/weapons/tracing.qh"
+    #include "../server/weapons/weaponstats.qh"
+    #include "../server/weapons/weaponsystem.qh"
+    #include "../server/t_items.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/constants.qh"
+    #include "../server/defs.qh"
+    #include "notifications.qh"
+    #include "deathtypes.qh"
+    #include "../server/mutators/mutators_include.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "../server/vehicles/vehicles_def.qh"
+    #include "../server/campaign.qh"
+    #include "campaign_common.qh"
+    #include "mapinfo.qh"
+    #include "../server/command/common.qh"
+    #include "../server/command/banning.qh"
+    #include "../server/command/radarmap.qh"
+    #include "../server/command/vote.qh"
+    #include "../server/command/getreplies.qh"
+    #include "../server/command/cmd.qh"
+    #include "../server/command/sv_cmd.qh"
+#endif
+
 // define this if svqc code wants to use .frame2 and .lerpfrac
 //#define CSQCMODEL_HAVE_TWO_FRAMES
 
@@ -78,3 +191,4 @@ const float CSQCPLAYER_FORCE_UPDATES = 0.25;
 #endif
 
 #define CSQCMODEL_EF_RESPAWNGHOST EF_SELECTABLE
+#endif
\ No newline at end of file
index 591c48e..e05f6a4 100644 (file)
@@ -1,3 +1,87 @@
+#ifndef DEATHTYPES_H
+#define DEATHTYPES_H
+
+#if defined(CSQC)
+       #include "util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "constants.qh"
+       #include "stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "playerstats.qh"
+       #include "teams.qh"
+       #include "util.qh"
+       #include "nades.qh"
+       #include "buffs.qh"
+       #include "test.qh"
+       #include "counting.qh"
+       #include "weapons/weapons.qh"
+       #include "mapinfo.qh"
+       #include "command/markup.qh"
+       #include "command/rpn.qh"
+       #include "command/generic.qh"
+       #include "command/shared_defs.qh"
+       #include "urllib.qh"
+       #include "animdecide.qh"
+       #include "../client/command/cl_cmd.qh"
+       #include "monsters/monsters.qh"
+       #include "../client/autocvars.qh"
+       #include "notifications.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "urllib.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "net_notice.qh"
+    #include "animdecide.qh"
+    #include "monsters/monsters.qh"
+    #include "monsters/sv_monsters.qh"
+    #include "monsters/spawn.qh"
+    #include "weapons/config.qh"
+    #include "weapons/weapons.qh"
+    #include "../server/weapons/accuracy.qh"
+    #include "../server/weapons/common.qh"
+    #include "../server/weapons/csqcprojectile.qh"
+    #include "../server/weapons/hitplot.qh"
+    #include "../server/weapons/selection.qh"
+    #include "../server/weapons/spawning.qh"
+    #include "../server/weapons/throwing.qh"
+    #include "../server/weapons/tracing.qh"
+    #include "../server/weapons/weaponstats.qh"
+    #include "../server/weapons/weaponsystem.qh"
+    #include "../server/t_items.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/constants.qh"
+    #include "../server/defs.qh"
+    #include "notifications.qh"
+#endif
+
 // ================================
 //  Deathtypes, reworked by Samual
 // ================================
@@ -131,3 +215,4 @@ const int HITTYPE_SPLASH = 0x200; // automatically set by RadiusDamage
 const int HITTYPE_BOUNCE = 0x400;
 const int HITTYPE_RESERVED2 = 0x800;
 const int HITTYPE_RESERVED = 0x1000; // unused yet
+#endif
\ No newline at end of file
index 7299b28..47978dd 100644 (file)
@@ -1,3 +1,21 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/Defs.qc"
+    #include "util.qh"
+    #include "buffs.qh"
+    #include "weapons/weapons.qh"
+    #include "mapinfo.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "util.qh"
+    #include "buffs.qh"
+    #include "monsters/monsters.qh"
+    #include "mapinfo.qh"
+#endif
+
 // generic string stuff
 
 float _MapInfo_Cache_Active;
index 1f7b7ad..9733052 100644 (file)
@@ -1,3 +1,95 @@
+#ifndef MAPINFO_H
+#define MAPINFO_H
+
+#if defined(CSQC)
+       #include "util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "constants.qh"
+       #include "stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "playerstats.qh"
+       #include "teams.qh"
+       #include "util.qh"
+       #include "nades.qh"
+       #include "buffs.qh"
+       #include "test.qh"
+       #include "counting.qh"
+       #include "weapons/weapons.qh"
+#elif defined(MENUQC)
+       #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+    #include "test.qh"
+    #include "../menu/oo/base.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+    #include "constants.qh"
+#elif defined(SVQC)
+       #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "urllib.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "net_notice.qh"
+    #include "animdecide.qh"
+    #include "monsters/monsters.qh"
+    #include "monsters/sv_monsters.qh"
+    #include "monsters/spawn.qh"
+    #include "weapons/config.qh"
+    #include "weapons/weapons.qh"
+    #include "../server/weapons/accuracy.qh"
+    #include "../server/weapons/common.qh"
+    #include "../server/weapons/csqcprojectile.qh"
+    #include "../server/weapons/hitplot.qh"
+    #include "../server/weapons/selection.qh"
+    #include "../server/weapons/spawning.qh"
+    #include "../server/weapons/throwing.qh"
+    #include "../server/weapons/tracing.qh"
+    #include "../server/weapons/weaponstats.qh"
+    #include "../server/weapons/weaponsystem.qh"
+    #include "../server/t_items.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/constants.qh"
+    #include "../server/defs.qh"
+    #include "notifications.qh"
+    #include "deathtypes.qh"
+    #include "../server/mutators/mutators_include.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "../server/vehicles/vehicles_def.qh"
+    #include "../server/campaign.qh"
+    #include "campaign_common.qh"
+#endif
+
 float MAPINFO_TYPE_ALL;
 entity MapInfo_Type_first;
 entity MapInfo_Type_last;
@@ -165,3 +257,4 @@ void MapInfo_Shutdown(); // call this in the shutdown handler
 
 #define MAPINFO_SETTEMP_ACL_USER cvar_string("g_mapinfo_settemp_acl")
 #define MAPINFO_SETTEMP_ACL_SYSTEM "-g_mapinfo_* -rcon_* -_* -g_ban* +*"
+#endif
\ No newline at end of file
index 54cdf4a..3b694a6 100644 (file)
@@ -1,3 +1,25 @@
+#if defined(CSQC)
+       #include "../../dpdefs/csprogsdefs.qc"
+       #include "../weapons/weapons.qh"
+       #include "monsters.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../util.qh"
+    #include "monsters.qh"
+    #include "sv_monsters.qh"
+    #include "../weapons/weapons.qh"
+    #include "../../server/t_items.qh"
+    #include "../../server/autocvars.qh"
+    #include "../../server/constants.qh"
+    #include "../../server/defs.qh"
+    #include "../deathtypes.qh"
+    #include "../../server/mutators/mutators_include.qh"
+    #include "../../csqcmodellib/sv_model.qh"
+#endif
 #include "all.qh"
 
 // MONSTER PLUGIN SYSTEM
index 612822e..22beb26 100644 (file)
@@ -1,3 +1,86 @@
+#ifndef MONSTERS_H
+#define MONSTERS_H
+
+#if defined(CSQC)
+       #include "../util-pre.qh"
+       #include "../../client/sys-pre.qh"
+       #include "../../dpdefs/csprogsdefs.qc"
+       #include "../../client/sys-post.qh"
+       #include "../../client/Defs.qc"
+       #include "../../dpdefs/keycodes.qc"
+       #include "../constants.qh"
+       #include "../stats.qh"
+       #include "../../warpzonelib/anglestransform.qh"
+       #include "../../warpzonelib/mathlib.qh"
+       #include "../../warpzonelib/common.qh"
+       #include "../../warpzonelib/client.qh"
+       #include "../playerstats.qh"
+       #include "../teams.qh"
+       #include "../util.qh"
+       #include "../nades.qh"
+       #include "../buffs.qh"
+       #include "../test.qh"
+       #include "../counting.qh"
+       #include "../weapons/weapons.qh"
+       #include "../mapinfo.qh"
+       #include "../command/markup.qh"
+       #include "../command/rpn.qh"
+       #include "../command/generic.qh"
+       #include "../command/shared_defs.qh"
+       #include "../urllib.qh"
+       #include "../animdecide.qh"
+       #include "../../client/command/cl_cmd.qh"
+#elif defined(MENUQC)
+       #include "../util-pre.qh"
+    #include "../../menu/sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../menu/sys-post.qh"
+    #include "../../menu/config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../util.qh"
+    #include "../test.qh"
+    #include "../../menu/oo/base.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../constants.qh"
+    #include "../mapinfo.qh"
+    #include "../campaign_common.qh"
+    #include "../weapons/weapons.qh"
+    #include "../counting.qh"
+    #include "../command/markup.qh"
+    #include "../command/rpn.qh"
+    #include "../command/generic.qh"
+    #include "../command/shared_defs.qh"
+    #include "../urllib.qh"
+#elif defined(SVQC)
+       #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+    #include "../command/markup.qh"
+    #include "../command/rpn.qh"
+    #include "../command/generic.qh"
+    #include "../command/shared_defs.qh"
+    #include "../net_notice.qh"
+    #include "../animdecide.qh"
+#endif
+
 // monster requests
 const int MR_SETUP = 1; // (SERVER) setup monster data
 const int MR_THINK = 2; // (SERVER) logic to run every frame
@@ -65,3 +148,4 @@ int MON_LAST;
 
 #undef REGISTER_MONSTER
 ACCUMULATE_FUNCTION(RegisterMonsters, register_monsters_done);
+#endif
\ No newline at end of file
index e6b5db8..0991ef6 100644 (file)
@@ -1,3 +1,14 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../util.qh"
+    #include "monsters.qh"
+    #include "sv_monsters.qh"
+    #include "spawn.qh"
+    #include "../../server/autocvars.qh"
+    #include "../../server/defs.qh"
+#endif
 entity spawnmonster (string monster, float monster_id, entity spawnedby, entity own, vector orig, float respwn, float invincible, float moveflag)
 {
        // ensure spawnfunc database is initialized
index 02d3086..44ea170 100644 (file)
@@ -1 +1,36 @@
+#ifndef SPAWN_H
+#define SPAWN_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+    #include "../command/markup.qh"
+    #include "../command/rpn.qh"
+    #include "../command/generic.qh"
+    #include "../command/shared_defs.qh"
+    #include "../net_notice.qh"
+    #include "../animdecide.qh"
+    #include "monsters.qh"
+    #include "sv_monsters.qh"
+#endif
 entity spawnmonster (string monster, float monster_id, entity spawnedby, entity own, vector orig, float respwn, float invincible, float moveflag);
+#endif
\ No newline at end of file
index d5cd1f3..7dadaee 100644 (file)
@@ -1,3 +1,30 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../constants.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "monsters.qh"
+    #include "sv_monsters.qh"
+    #include "../weapons/weapons.qh"
+    #include "../../server/autocvars.qh"
+    #include "../../server/defs.qh"
+    #include "../deathtypes.qh"
+    #include "../../server/mutators/mutators_include.qh"
+    #include "../../server/tturrets/include/turrets_early.qh"
+    #include "../../server/vehicles/vehicles_def.qh"
+    #include "../../server/campaign.qh"
+    #include "../../server/command/common.qh"
+    #include "../../server/command/cmd.qh"
+    #include "../../csqcmodellib/sv_model.qh"
+    #include "../../server/round_handler.qh"
+    #include "../../server/tturrets/include/turrets.qh"
+#endif
+
 // =========================
 //     SVQC Monster Properties
 // =========================
index 159ade2..1a3522a 100644 (file)
@@ -1,3 +1,37 @@
+#ifndef SV_MONSTERS_H
+#define SV_MONSTERS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+    #include "../command/markup.qh"
+    #include "../command/rpn.qh"
+    #include "../command/generic.qh"
+    #include "../command/shared_defs.qh"
+    #include "../net_notice.qh"
+    #include "../animdecide.qh"
+    #include "monsters.qh"
+#endif
+
 .string spawnmob;
 .float monster_attack;
 
@@ -86,3 +120,4 @@ const int MONSTER_MOVE_ENEMY = 5; // used only as a movestate
 
 const int MONSTER_STATE_ATTACK_LEAP = 1;
 const int MONSTER_STATE_ATTACK_MELEE = 2;
+#endif
\ No newline at end of file
index e0d5cbc..b90ba4c 100644 (file)
@@ -1,3 +1,19 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/Defs.qc"
+       #include "nades.qh"
+       #include "buffs.qh"
+       #include "../client/movetypes.qh"
+       #include "../server/tturrets/include/turrets_early.qh"
+       #include "../client/main.qh"
+       #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "constants.qh"
+    #include "../server/constants.qh"
+#endif
+
 .float healer_lifetime;
 .float healer_radius;
 
index b873758..49fad4a 100644 (file)
@@ -1,3 +1,40 @@
+#ifndef NADES_H
+#define NADES_H
+
+#if defined(CSQC)
+       #include "util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "constants.qh"
+       #include "stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "playerstats.qh"
+       #include "teams.qh"
+       #include "util.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+#endif
+
 // use slots 70-100
 const int PROJECTILE_NADE = 71;
 const int PROJECTILE_NADE_BURN = 72;
@@ -101,3 +138,4 @@ string Nade_TrailEffect(float proj, float nade_team)
 // misc functions
 void ent_healer();
 #endif // CSQC
+#endif
\ No newline at end of file
index 084c83c..2197b9e 100644 (file)
@@ -1,3 +1,16 @@
+#if defined(CSQC)
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/Defs.qc"
+    #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "constants.qh"
+    #include "net_notice.qh"
+    #include "../server/defs.qh"
+#endif
+
 #ifdef SVQC
 void sv_notice_join_think()
 {
index d94f1d9..67621b5 100644 (file)
@@ -1,3 +1,34 @@
+#ifndef NET_NOTICE_H
+#define NET_NOTICE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "urllib.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+#endif
+
 #ifdef CSQC
 void cl_notice_read();
 void sv_notice_to(entity _to, string _notice, float _howlong, float _modal);
@@ -11,3 +42,4 @@ void sv_notice_to(entity _to, string _notice, float _howlong, float _modal);
 void sv_notice_toall(string _notice, float _howlong, float _modal);
 void sv_notice_join();
 #endif
+#endif
\ No newline at end of file
index 9391c6b..64daa61 100644 (file)
@@ -1,3 +1,28 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/Defs.qc"
+       #include "teams.qh"
+       #include "util.qh"
+       #include "buffs.qh"
+       #include "counting.qh"
+       #include "weapons/weapons.qh"
+       #include "../client/autocvars.qh"
+       #include "notifications.qh"
+       #include "../client/main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "constants.qh"
+    #include "teams.qh"
+    #include "counting.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/constants.qh"
+    #include "../server/defs.qh"
+    #include "notifications.qh"
+    #include "../server/mutators/mutators_include.qh"
+#endif
+
 // ================================================
 //  Unified notification system, written by Samual
 //  Last updated: August, 2013
index 6844d62..b905f67 100644 (file)
@@ -1,3 +1,85 @@
+#ifndef NOTIFICATIONS_H
+#define NOTIFICATIONS_H
+
+#if defined(CSQC)
+    #include "util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "weapons/weapons.qh"
+    #include "mapinfo.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "urllib.qh"
+    #include "animdecide.qh"
+    #include "../client/command/cl_cmd.qh"
+    #include "monsters/monsters.qh"
+    #include "../client/autocvars.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "urllib.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "net_notice.qh"
+    #include "animdecide.qh"
+    #include "monsters/monsters.qh"
+    #include "monsters/sv_monsters.qh"
+    #include "monsters/spawn.qh"
+    #include "weapons/config.qh"
+    #include "weapons/weapons.qh"
+    #include "../server/weapons/accuracy.qh"
+    #include "../server/weapons/common.qh"
+    #include "../server/weapons/csqcprojectile.qh"
+    #include "../server/weapons/hitplot.qh"
+    #include "../server/weapons/selection.qh"
+    #include "../server/weapons/spawning.qh"
+    #include "../server/weapons/throwing.qh"
+    #include "../server/weapons/tracing.qh"
+    #include "../server/weapons/weaponstats.qh"
+    #include "../server/weapons/weaponsystem.qh"
+    #include "../server/t_items.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/constants.qh"
+    #include "../server/defs.qh"
+#endif
+
 // ================================================
 //  Unified notification system, written by Samual
 //  Last updated: March, 2013
@@ -1643,3 +1725,4 @@ ACCUMULATE_FUNCTION(RegisterNotifications, RegisterNotifications_Done);
 #undef MSG_CHOICE_NOTIF
 
 #undef NOTIF_ADD_AUTOCVAR
+#endif
\ No newline at end of file
index 60af829..b586ca4 100644 (file)
@@ -1,3 +1,19 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "constants.qh"
+    #include "util.qh"
+    #include "urllib.qh"
+    #include "weapons/weapons.qh"
+    #include "../server/weapons/accuracy.qh"
+    #include "../server/defs.qh"
+    #include "playerstats.qh"
+    #include "../server/scores.qh"
+#endif
+
 #ifdef SVQC
 void PlayerStats_Prematch(void)
 {
index 1e132ea..811e78d 100644 (file)
@@ -1,3 +1,97 @@
+#ifndef PLAYERSTATS_H
+#define PLAYERSTATS_H
+
+#if defined(CSQC)
+    #include "util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+#elif defined(MENUQC)
+    #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+    #include "test.qh"
+    #include "../menu/oo/base.qh"
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "urllib.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+    #include "net_notice.qh"
+    #include "animdecide.qh"
+    #include "monsters/monsters.qh"
+    #include "monsters/sv_monsters.qh"
+    #include "monsters/spawn.qh"
+    #include "weapons/config.qh"
+    #include "weapons/weapons.qh"
+    #include "../server/weapons/accuracy.qh"
+    #include "../server/weapons/common.qh"
+    #include "../server/weapons/csqcprojectile.qh"
+    #include "../server/weapons/hitplot.qh"
+    #include "../server/weapons/selection.qh"
+    #include "../server/weapons/spawning.qh"
+    #include "../server/weapons/throwing.qh"
+    #include "../server/weapons/tracing.qh"
+    #include "../server/weapons/weaponstats.qh"
+    #include "../server/weapons/weaponsystem.qh"
+    #include "../server/t_items.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/constants.qh"
+    #include "../server/defs.qh"
+    #include "notifications.qh"
+    #include "deathtypes.qh"
+    #include "../server/mutators/mutators_include.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "../server/vehicles/vehicles_def.qh"
+    #include "../server/campaign.qh"
+    #include "campaign_common.qh"
+    #include "mapinfo.qh"
+    #include "../server/command/common.qh"
+    #include "../server/command/banning.qh"
+    #include "../server/command/radarmap.qh"
+    #include "../server/command/vote.qh"
+    #include "../server/command/getreplies.qh"
+    #include "../server/command/cmd.qh"
+    #include "../server/command/sv_cmd.qh"
+    #include "csqcmodel_settings.qh"
+    #include "../csqcmodellib/common.qh"
+    #include "../csqcmodellib/sv_model.qh"
+    #include "../server/anticheat.qh"
+    #include "../server/cheats.qh"
+#endif
+
 #ifdef SVQC
 //float PS_PM_IN_DB = -1;   // playerstats_prematch_in_db      // db for info COLLECTED at the beginning of a match
 float PS_GR_OUT_DB = -1;  // playerstats_gamereport_out_db   // db of info SENT at the end of a match
@@ -113,3 +207,4 @@ void PlayerStats_PlayerDetail(void);
 void PlayerStats_PlayerDetail_CheckUpdate(void);
 void PlayerStats_PlayerDetail_Handler(entity fh, entity p, float status);
 #endif
+#endif
\ No newline at end of file
index 2bf147f..b1aeb01 100644 (file)
@@ -1,4 +1,30 @@
-// Full list of all stat constants, icnluded in a single location for easy reference
+#ifndef STATS_H
+#define STATS_H
+
+#if defined(CSQC)
+    #include "util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "constants.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+#endif
+
+// Full list of all stat constants, included in a single location for easy reference
 // 255 is the current limit (MAX_CL_STATS - 1), engine will need to be modified if you wish to add more stats
 
 const int MAX_CL_STATS                = 256;
@@ -288,3 +314,4 @@ const int STAT_MOVEVARS_MAXAIRSPEED                   = 252;
 const int STAT_MOVEVARS_STEPHEIGHT                    = 253;
 const int STAT_MOVEVARS_AIRACCEL_QW                   = 254;
 const int STAT_MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION    = 255;
+#endif
\ No newline at end of file
index 679405f..388b994 100644 (file)
@@ -1,3 +1,47 @@
+#ifndef TEAMS_H
+#define TEAMS_H
+
+#if defined(CSQC)
+       #include "util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "constants.qh"
+       #include "stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "playerstats.qh"
+#elif defined(MENUQC)
+       #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+    #include "test.qh"
+    #include "../menu/oo/base.qh"
+    #include "playerstats.qh"
+#elif defined(SVQC)
+       #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+#endif
+
 #ifdef TEAMNUMBERS_THAT_ARENT_STUPID
 const int NUM_TEAM_1 = 1;  // red
 const int NUM_TEAM_2 = 2; // blue
@@ -165,3 +209,4 @@ float Team_TeamToNumber(float teamid)
 #define APP_TEAM_NUM_4(num,prefix) ((num == NUM_TEAM_1) ? prefix##RED : ((num == NUM_TEAM_2) ? prefix##BLUE : ((num == NUM_TEAM_3) ? prefix##YELLOW : prefix##PINK)))
 #define APP_TEAM_ENT_2(ent,prefix) ((ent.team == NUM_TEAM_1) ? prefix##RED : prefix##BLUE)
 #define APP_TEAM_ENT_4(ent,prefix) ((ent.team == NUM_TEAM_1) ? prefix##RED : ((ent.team == NUM_TEAM_2) ? prefix##BLUE : ((ent.team == NUM_TEAM_3) ? prefix##YELLOW : prefix##PINK)))
+#endif
\ No newline at end of file
index 53b4476..3599819 100644 (file)
@@ -1,3 +1,12 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "test.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/dpextensions.qc"
+    #include "test.qh"
+#endif
+
 float TEST_failed;
 float TEST_ok;
 
index ff442ce..6cda6f2 100644 (file)
@@ -1,3 +1,52 @@
+#ifndef TEST_H
+#define TEST_H
+
+#if defined(CSQC)
+    #include "util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+#elif defined(MENUQC)
+    #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+#endif
+
 #define TEST_Check(cond) do { if(!(cond)) TEST_Fail(#cond); } while(0)
 
 void TEST_OK();
@@ -5,3 +54,4 @@ void TEST_Fail(string cond);
 
 float TEST_RunAll();
 float TEST_Run(string test);
+#endif
\ No newline at end of file
index 518b207..2ab046c 100644 (file)
@@ -1,3 +1,18 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "constants.qh"
+       #include "util.qh"
+       #include "urllib.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "constants.qh"
+    #include "util.qh"
+    #include "urllib.qh"
+#endif
+
 // files
 .float url_fh;
 const float URL_FH_CURL = -1;
index 6353c33..4999a1d 100644 (file)
@@ -1,3 +1,75 @@
+#ifndef URLLIB_H
+#define URLLIB_H
+
+#if defined(CSQC)
+    #include "util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+    #include "weapons/weapons.qh"
+    #include "mapinfo.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+#elif defined(MENUQC)
+    #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+    #include "test.qh"
+    #include "../menu/oo/base.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+    #include "constants.qh"
+    #include "mapinfo.qh"
+    #include "campaign_common.qh"
+    #include "weapons/weapons.qh"
+    #include "counting.qh"
+    #include "command/markup.qh"
+    #include "command/rpn.qh"
+    #include "command/generic.qh"
+    #include "command/shared_defs.qh"
+#elif defined(SVQC)
+    #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+    #include "util.qh"
+    #include "nades.qh"
+    #include "buffs.qh"
+    #include "test.qh"
+    #include "counting.qh"
+#endif
+
 const float URL_READY_ERROR    = -1;
 const float URL_READY_CLOSED   =  0;
 const float URL_READY_CANWRITE =  1;
@@ -16,3 +88,4 @@ float url_URI_Get_Callback(float id, float status, string data);
 #define NUM_URL_ID (URI_GET_URLLIB_END - URI_GET_URLLIB + 1)
 
 void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);
+#endif
\ No newline at end of file
index bba5af1..d8bd863 100644 (file)
@@ -1,3 +1,11 @@
+#ifndef UTIL_PRE_H
+#define UTIL_PRE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 #ifndef NOCOMPAT
     #define COMPAT_NO_MOD_IS_XONOTIC
 #endif
@@ -28,3 +36,4 @@
     const bool true    = 1;
     const bool false   = 0;
 #endif
+#endif
\ No newline at end of file
index 7b3df7f..2d5170d 100644 (file)
@@ -1,3 +1,27 @@
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/Defs.qc"
+    #include "constants.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "util.qh"
+    #include "mapinfo.qh"
+    #include "notifications.qh"
+    #include "deathtypes.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "constants.qh"
+    #include "util.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/defs.qh"
+    #include "notifications.qh"
+    #include "deathtypes.qh"
+    #include "mapinfo.qh"
+#endif
+
 string wordwrap_buffer;
 
 void wordwrap_buffer_put(string s)
index 3d4e9b9..efe6d30 100644 (file)
@@ -1,3 +1,45 @@
+#ifndef COMMON_UTIL_H
+#define COMMON_UTIL_H
+
+#if defined(CSQC)
+       #include "util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "playerstats.qh"
+    #include "teams.qh"
+#elif defined(MENUQC)
+       #include "util-pre.qh"
+    #include "../menu/sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../menu/sys-post.qh"
+    #include "../menu/config.qh"
+    #include "../warpzonelib/mathlib.qh"
+#elif defined(SVQC)
+       #include "util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "constants.qh"
+    #include "stats.qh"
+    #include "teams.qh"
+#endif
+
 #ifdef QCC_SUPPORT_ACCUMULATE
 # define ACCUMULATE_FUNCTION(func,otherfunc) \
        [[accumulate]] void func() { otherfunc(); }
@@ -441,4 +483,5 @@ vector bezier_quadratic_getderivative(vector a, vector p, vector b, float t);
 #define APPEND_TO_STRING(list,sep,add) ((list) = (((list) != "") ? strcat(list, sep, add) : (add)))
 
 // Returns the correct difference between two always increasing numbers
-#define COMPARE_INCREASING(to,from) (to < from ? from + to + 2 : to - from)
\ No newline at end of file
+#define COMPARE_INCREASING(to,from) (to < from ? from + to + 2 : to - from)
+#endif
\ No newline at end of file
index 3a41d09..ab6e790 100644 (file)
@@ -1,3 +1,13 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../util.qh"
+    #include "config.qh"
+    #include "weapons.qh"
+#endif
+
 // ==========================
 //  Balance Config Generator
 // ==========================
index 4412c0c..affba63 100644 (file)
@@ -1,13 +1,49 @@
+#ifndef WEAPONS_CONFIG_H
+#define WEAPONS_CONFIG_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+    #include "../command/markup.qh"
+    #include "../command/rpn.qh"
+    #include "../command/generic.qh"
+    #include "../command/shared_defs.qh"
+    #include "../net_notice.qh"
+    #include "../animdecide.qh"
+    #include "../monsters/monsters.qh"
+    #include "../monsters/sv_monsters.qh"
+    #include "../monsters/spawn.qh"
+#endif
+
 // ==========================
 //  Balance Config Generator
 // ==========================
 
 void Dump_Weapon_Settings(void);
-float wep_config_file;
-float wep_config_alsoprint;
+int wep_config_file;
+bool wep_config_alsoprint;
 
-const float MAX_WEP_CONFIG = 256;
-float WEP_CONFIG_COUNT;
+const int MAX_WEP_CONFIG = 256;
+int WEP_CONFIG_COUNT;
 string wep_config_queue[MAX_WEP_CONFIG];
 
 #define WEP_CONFIG_QUEUE(a) { \
@@ -43,3 +79,4 @@ string wep_config_queue[MAX_WEP_CONFIG];
                cvar(sprintf("g_balance_%s_%s", #wepname, #name)))) }
 
 #define WEP_CONFIG_WRITE_PROPS(wepid,wepname,type,prop,name) WEP_CONFIG_WRITE_PROPS_##type(wepname,name)
+#endif
\ No newline at end of file
index 7b91f1d..ff97b16 100644 (file)
@@ -1,3 +1,54 @@
+#if defined(CSQC)
+       #include "../../dpdefs/csprogsdefs.qc"
+       #include "../../client/Defs.qc"
+       #include "../constants.qh"
+       #include "../stats.qh"
+       #include "../../warpzonelib/anglestransform.qh"
+       #include "../../warpzonelib/mathlib.qh"
+       #include "../../warpzonelib/common.qh"
+       #include "../../warpzonelib/client.qh"
+       #include "../util.qh"
+       #include "../buffs.qh"
+       #include "weapons.qh"
+       #include "../../client/autocvars.qh"
+       #include "../deathtypes.qh"
+       #include "../../csqcmodellib/interpolate.qh"
+       #include "../../client/movetypes.qh"
+       #include "../../client/main.qh"
+       #include "../../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../buffs.qh"
+    #include "../monsters/monsters.qh"
+    #include "config.qh"
+    #include "weapons.qh"
+    #include "../../server/weapons/csqcprojectile.qh"
+    #include "../../server/weapons/tracing.qh"
+    #include "../../server/t_items.qh"
+    #include "../../server/autocvars.qh"
+    #include "../../server/constants.qh"
+    #include "../../server/defs.qh"
+    #include "../notifications.qh"
+    #include "../deathtypes.qh"
+    #include "../../server/mutators/mutators_include.qh"
+    #include "../mapinfo.qh"
+    #include "../../server/command/common.qh"
+    #include "../../csqcmodellib/sv_model.qh"
+    #include "../../server/portals.qh"
+    #include "../../server/g_hook.qh"
+#endif
 #ifndef MENUQC
 #include "calculations.qc"
 #endif
index 1b0061e..00ee68b 100644 (file)
@@ -1,3 +1,74 @@
+#ifndef WEAPONS_H
+#define WEAPONS_H
+
+#if defined(CSQC)
+       #include "../util-pre.qh"
+       #include "../../client/sys-pre.qh"
+       #include "../../dpdefs/csprogsdefs.qc"
+       #include "../../client/sys-post.qh"
+       #include "../../client/Defs.qc"
+       #include "../../dpdefs/keycodes.qc"
+       #include "../constants.qh"
+       #include "../stats.qh"
+       #include "../../warpzonelib/anglestransform.qh"
+       #include "../../warpzonelib/mathlib.qh"
+       #include "../../warpzonelib/common.qh"
+       #include "../../warpzonelib/client.qh"
+       #include "../playerstats.qh"
+       #include "../teams.qh"
+       #include "../util.qh"
+       #include "../nades.qh"
+       #include "../buffs.qh"
+       #include "../test.qh"
+       #include "../counting.qh"
+#elif defined(MENUQC)
+       #include "../util-pre.qh"
+    #include "../../menu/sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../../menu/sys-post.qh"
+    #include "../../menu/config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../util.qh"
+    #include "../test.qh"
+    #include "../../menu/oo/base.qh"
+    #include "../playerstats.qh"
+    #include "../teams.qh"
+    #include "../constants.qh"
+    #include "../mapinfo.qh"
+    #include "../campaign_common.qh"
+#elif defined(SVQC)
+       #include "../util-pre.qh"
+    #include "../../server/sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../server/sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../constants.qh"
+    #include "../stats.qh"
+    #include "../teams.qh"
+    #include "../util.qh"
+    #include "../nades.qh"
+    #include "../buffs.qh"
+    #include "../test.qh"
+    #include "../counting.qh"
+    #include "../urllib.qh"
+    #include "../command/markup.qh"
+    #include "../command/rpn.qh"
+    #include "../command/generic.qh"
+    #include "../command/shared_defs.qh"
+    #include "../net_notice.qh"
+    #include "../animdecide.qh"
+    #include "../monsters/monsters.qh"
+    #include "../monsters/sv_monsters.qh"
+    #include "../monsters/spawn.qh"
+    #include "config.qh"
+#endif
+
 #ifndef MENUQC
 #include "calculations.qh"
 #endif
@@ -206,3 +277,4 @@ void register_weapons_done();
 #undef REGISTER_WEAPON
 
 ACCUMULATE_FUNCTION(RegisterWeapons, register_weapons_done);
+#endif
\ No newline at end of file
index 78150dd..83355d6 100644 (file)
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+ #if defined(CSQC)
+        #include "../dpdefs/csprogsdefs.qc"
+        #include "../client/Defs.qc"
+        #include "../common/util.qh"
+        #include "../common/animdecide.qh"
+        #include "interpolate.qh"
+        #include "../common/csqcmodel_settings.qh"
+        #include "common.qh"
+        #include "cl_model.qh"
+        #include "cl_player.qh"
+ #elif defined(MENUQC)
+ #elif defined(SVQC)
+ #endif
 
 float autocvar_cl_lerpanim_maxdelta_framegroups = 0.1;
 float autocvar_cl_nolerp = 0;
index ded7357..f49f800 100644 (file)
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+#ifndef CL_MODEL_H
+#define CL_MODEL_H
+
+#if defined(CSQC)
+       #include "../common/util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "../common/playerstats.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/nades.qh"
+       #include "../common/buffs.qh"
+       #include "../common/test.qh"
+       #include "../common/counting.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "../common/mapinfo.qh"
+       #include "../common/command/markup.qh"
+       #include "../common/command/rpn.qh"
+       #include "../common/command/generic.qh"
+       #include "../common/command/shared_defs.qh"
+       #include "../common/urllib.qh"
+       #include "../common/animdecide.qh"
+       #include "../client/command/cl_cmd.qh"
+       #include "../common/monsters/monsters.qh"
+       #include "../client/autocvars.qh"
+       #include "../common/notifications.qh"
+       #include "../common/deathtypes.qh"
+       #include "../client/damage.qh"
+       #include "interpolate.qh"
+       #include "../client/teamradar.qh"
+       #include "../client/hud.qh"
+       #include "../client/scoreboard.qh"
+       #include "../client/waypointsprites.qh"
+       #include "../client/movetypes.qh"
+       #include "../client/prandom.qh"
+       #include "../client/bgmscript.qh"
+       #include "../client/noise.qh"
+       #include "../client/tturrets.qh"
+       #include "../server/tturrets/include/turrets_early.qh"
+       #include "../client/main.qh"
+       #include "../client/vehicles/vehicles.qh"
+       #include "../common/csqcmodel_settings.qh"
+       #include "common.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
 
 void CSQCModel_Read(float isnew);
 
@@ -48,3 +103,4 @@ void CSQCModel_InterpolateAnimation_1To2_Note(float sf, float set_times);
 void CSQCModel_InterpolateAnimation_2To4_Do();
 void CSQCModel_InterpolateAnimation_1To2_Do();
 // will overwrite lerpfrac, lerpfrac3, lerpfrac4, and possibly clear frame*time if they are undisplayed according to lerpfracs
+#endif
\ No newline at end of file
index 64fe370..1cc357f 100644 (file)
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/Defs.qc"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../common/util.qh"
+       #include "interpolate.qh"
+       #include "../client/main.qh"
+       #include "common.qh"
+       #include "cl_model.qh"
+       #include "cl_player.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
 
 float autocvar_cl_movement_errorcompensation = 0;
 
index 92ac548..917c58e 100644 (file)
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+#ifndef CL_PLAYER_H
+#define CL_PLAYER_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "../client/command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../client/autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "../client/damage.qh"
+    #include "interpolate.qh"
+    #include "../client/teamradar.qh"
+    #include "../client/hud.qh"
+    #include "../client/scoreboard.qh"
+    #include "../client/waypointsprites.qh"
+    #include "../client/movetypes.qh"
+    #include "../client/prandom.qh"
+    #include "../client/bgmscript.qh"
+    #include "../client/noise.qh"
+    #include "../client/tturrets.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "../client/main.qh"
+    #include "../client/vehicles/vehicles.qh"
+    #include "../common/csqcmodel_settings.qh"
+    #include "common.qh"
+    #include "cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
 
 entity csqcplayer;
 float csqcplayer_status;
@@ -36,3 +92,4 @@ void CSQCPlayer_SetCamera();
 float CSQCPlayer_PreUpdate();
 float CSQCPlayer_PostUpdate();
 float CSQCPlayer_IsLocalPlayer();
+#endif
\ No newline at end of file
index 8cd5aa6..39325b5 100644 (file)
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+#ifndef CSQCMODELLIB_COMMON_H
+#define CSQCMODELLIB_COMMON_H
+
+#if defined(CSQC)
+       #include "../common/util-pre.qh"
+       #include "../client/sys-pre.qh"
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/sys-post.qh"
+       #include "../client/Defs.qc"
+       #include "../dpdefs/keycodes.qc"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/client.qh"
+       #include "../common/playerstats.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/nades.qh"
+       #include "../common/buffs.qh"
+       #include "../common/test.qh"
+       #include "../common/counting.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "../common/mapinfo.qh"
+       #include "../common/command/markup.qh"
+       #include "../common/command/rpn.qh"
+       #include "../common/command/generic.qh"
+       #include "../common/command/shared_defs.qh"
+       #include "../common/urllib.qh"
+       #include "../common/animdecide.qh"
+       #include "../client/command/cl_cmd.qh"
+       #include "../common/monsters/monsters.qh"
+       #include "../client/autocvars.qh"
+       #include "../common/notifications.qh"
+       #include "../common/deathtypes.qh"
+       #include "../client/damage.qh"
+       #include "interpolate.qh"
+       #include "../client/teamradar.qh"
+       #include "../client/hud.qh"
+       #include "../client/scoreboard.qh"
+       #include "../client/waypointsprites.qh"
+       #include "../client/movetypes.qh"
+       #include "../client/prandom.qh"
+       #include "../client/bgmscript.qh"
+       #include "../client/noise.qh"
+       #include "../client/tturrets.qh"
+       #include "../server/tturrets/include/turrets_early.qh"
+       #include "../client/main.qh"
+       #include "../client/vehicles/vehicles.qh"
+       #include "../common/csqcmodel_settings.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../common/util-pre.qh"
+    #include "../server/sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../server/sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/urllib.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/net_notice.qh"
+    #include "../common/animdecide.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../common/monsters/sv_monsters.qh"
+    #include "../common/monsters/spawn.qh"
+    #include "../common/weapons/config.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../server/weapons/accuracy.qh"
+    #include "../server/weapons/common.qh"
+    #include "../server/weapons/csqcprojectile.qh"
+    #include "../server/weapons/hitplot.qh"
+    #include "../server/weapons/selection.qh"
+    #include "../server/weapons/spawning.qh"
+    #include "../server/weapons/throwing.qh"
+    #include "../server/weapons/tracing.qh"
+    #include "../server/weapons/weaponstats.qh"
+    #include "../server/weapons/weaponsystem.qh"
+    #include "../server/t_items.qh"
+    #include "../server/autocvars.qh"
+    #include "../server/constants.qh"
+    #include "../server/defs.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "../server/mutators/mutators_include.qh"
+    #include "../server/tturrets/include/turrets_early.qh"
+    #include "../server/vehicles/vehicles_def.qh"
+    #include "../server/campaign.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/mapinfo.qh"
+    #include "../server/command/common.qh"
+    #include "../server/command/banning.qh"
+    #include "../server/command/radarmap.qh"
+    #include "../server/command/vote.qh"
+    #include "../server/command/getreplies.qh"
+    #include "../server/command/cmd.qh"
+    #include "../server/command/sv_cmd.qh"
+    #include "../common/csqcmodel_settings.qh"
+#endif
 
 noref string csqcmodel_license = "\
 Copyright (c) 2011 Rudolf Polzer\
@@ -90,3 +204,4 @@ const int CSQCMODEL_PROPERTY_SIZE = 32768;
 #else
 #define ALLPROPERTIES ALLPROPERTIES_COMMON
 #endif
+#endif
\ No newline at end of file
index 4632cec..583f41f 100644 (file)
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qc"
+       #include "../client/Defs.qc"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../client/autocvars.qh"
+       #include "interpolate.qh"
+       #include "cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
 
 .vector iorigin1, iorigin2;
 .vector ivelocity1, ivelocity2;
index a29fdc4..9aade3b 100644 (file)
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+#ifndef INTERPOLATE_H
+#define INTERPOLATE_H
+
+#if defined(CSQC)
+    #include "../common/util-pre.qh"
+    #include "../client/sys-pre.qh"
+    #include "../dpdefs/csprogsdefs.qc"
+    #include "../client/sys-post.qh"
+    #include "../client/Defs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/client.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/animdecide.qh"
+    #include "../client/command/cl_cmd.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../client/autocvars.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "../client/damage.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
 
 .int iflags;
 const int IFLAG_VELOCITY = 1;
@@ -47,3 +87,4 @@ void InterpolateOrigin_Do();
 
 // in case we interpolate that:
 .vector v_angle;
+#endif
\ No newline at end of file
index cbc2621..9ac6ed0 100644 (file)
  * IN THE SOFTWARE.
  */
 
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+       #include "../dpdefs/dpextensions.qc"
+       #include "../common/constants.qh"
+       #include "../common/util.qh"
+       #include "../common/animdecide.qh"
+       #include "../server/constants.qh"
+       #include "../server/defs.qh"
+       #include "common.qh"
+       #include "sv_model.qh"
+#endif
+
 // generic CSQC model code
 
 float CSQCModel_Send(entity to, float sf)
index 3c4ce2b..a4bbd45 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef SV_MODEL_H
+#define SV_MODEL_H
 /*
  * Copyright (c) 2011 Rudolf Polzer
  *
  * IN THE SOFTWARE.
  */
 
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../common/util-pre.qh"
+       #include "../server/sys-pre.qh"
+       #include "../dpdefs/progsdefs.qc"
+       #include "../dpdefs/dpextensions.qc"
+       #include "../server/sys-post.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../warpzonelib/mathlib.qh"
+       #include "../warpzonelib/common.qh"
+       #include "../warpzonelib/util_server.qh"
+       #include "../warpzonelib/server.qh"
+       #include "../common/constants.qh"
+       #include "../common/stats.qh"
+       #include "../common/teams.qh"
+       #include "../common/util.qh"
+       #include "../common/nades.qh"
+       #include "../common/buffs.qh"
+       #include "../common/test.qh"
+       #include "../common/counting.qh"
+       #include "../common/urllib.qh"
+       #include "../common/command/markup.qh"
+       #include "../common/command/rpn.qh"
+       #include "../common/command/generic.qh"
+       #include "../common/command/shared_defs.qh"
+       #include "../common/net_notice.qh"
+       #include "../common/animdecide.qh"
+       #include "../common/monsters/monsters.qh"
+       #include "../common/monsters/sv_monsters.qh"
+       #include "../common/monsters/spawn.qh"
+       #include "../common/weapons/config.qh"
+       #include "../common/weapons/weapons.qh"
+       #include "../server/weapons/accuracy.qh"
+       #include "../server/weapons/common.qh"
+       #include "../server/weapons/csqcprojectile.qh"
+       #include "../server/weapons/hitplot.qh"
+       #include "../server/weapons/selection.qh"
+       #include "../server/weapons/spawning.qh"
+       #include "../server/weapons/throwing.qh"
+       #include "../server/weapons/tracing.qh"
+       #include "../server/weapons/weaponstats.qh"
+       #include "../server/weapons/weaponsystem.qh"
+       #include "../server/t_items.qh"
+       #include "../server/autocvars.qh"
+       #include "../server/constants.qh"
+       #include "../server/defs.qh"
+       #include "../common/notifications.qh"
+       #include "../common/deathtypes.qh"
+       #include "../server/mutators/mutators_include.qh"
+       #include "../server/tturrets/include/turrets_early.qh"
+       #include "../server/vehicles/vehicles_def.qh"
+       #include "../server/campaign.qh"
+       #include "../common/campaign_common.qh"
+       #include "../common/mapinfo.qh"
+       #include "../server/command/common.qh"
+       #include "../server/command/banning.qh"
+       #include "../server/command/radarmap.qh"
+       #include "../server/command/vote.qh"
+       #include "../server/command/getreplies.qh"
+       #include "../server/command/cmd.qh"
+       #include "../server/command/sv_cmd.qh"
+       #include "../common/csqcmodel_settings.qh"
+       #include "common.qh"
+#endif
+
 // generic CSQC model code
 
 void CSQCModel_CheckUpdate();
@@ -37,3 +105,4 @@ void CSQCModel_UnlinkEntity();
 #undef CSQCMODEL_PROPERTY
 #undef CSQCMODEL_ENDIF
 #undef CSQCMODEL_IF
+#endif
\ No newline at end of file
index 3a318cc..dac4c16 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef CSPROGSDEFS_H
+#define CSPROGSDEFS_H
 /*
 ==============================================================================
 
@@ -1442,3 +1444,4 @@ vector gettaginfo_forward;
 vector gettaginfo_right;
 vector gettaginfo_up;
 float checkpvs(vector viewpos, entity viewee) = #240;
+#endif
\ No newline at end of file
index a38746e..443d324 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef DPEXTENSIONS_H
+#define DPEXTENSIONS_H
 //DarkPlaces supported extension list, draft version 1.04
 
 //things that don't have extensions yet:
@@ -2553,3 +2555,4 @@ void(float pause) setpause = #531;
 float(string url, float id, string content_type, string delim, float buf, float keyid) crypto_uri_postbuf = #513;
 //description:
 //use -1 as buffer handle to justs end delim as postdata
+#endif
\ No newline at end of file
index 65fe815..9ed47ec 100644 (file)
@@ -1,3 +1,11 @@
+#ifndef KEYCODES_H
+#define KEYCODES_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 ///////////////////////////
 // key constants
 
@@ -144,4 +152,4 @@ float K_MOUSE13             =       526;
 float K_MOUSE14                =       527;
 float K_MOUSE15                =       528;
 float K_MOUSE16                =       529;
-
+#endif
\ No newline at end of file
index 98a8003..94ac814 100644 (file)
@@ -1,3 +1,11 @@
+#ifndef MENUDEFS_H
+#define MENUDEFS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 //////////////////////////////////////////////////////////
 // sys globals
 
@@ -563,3 +571,4 @@ string      getextresponse(void) = #624;
 const string cvar_string(string name) = #71;
 const string cvar_defstring(string name) = #89;
 float  stringwidth(string text, float handleColors, vector size) = #468;
+#endif
\ No newline at end of file
index 210ad1b..0064060 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef PROGSDEFS_H
+#define PROGSDEFS_H
+
 /*
 ==============================================================================
 
@@ -502,3 +505,4 @@ void(entity e) setspawnparms                = #78;          // set parm1... to the
                                                                                                // for coop respawn
 
 //============================================================================
+#endif
\ No newline at end of file
index c7499e5..ee556ba 100644 (file)
@@ -1,3 +1,13 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+       #include "../../dpdefs/menudefs.qc"
+    #include "../../common/util.qh"
+    #include "../oo/base.qh"
+    #include "menu_cmd.qh"
+    #include "../menu.qh"
+#elif defined(SVQC)
+#endif
+
 string _dumptree_space;
 void _dumptree_open(entity pass, entity me)
 {
index 7a18fe2..c75d8e3 100644 (file)
@@ -1 +1,33 @@
+#ifndef MENU_CMD_H
+#define MENU_CMD_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../sys-post.qh"
+    #include "../config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../common/util.qh"
+    #include "../../common/test.qh"
+    #include "../oo/base.qh"
+    #include "../../common/playerstats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/mapinfo.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/monsters/monsters.qh"
+#elif defined(SVQC)
+#endif
+
 void GameCommand(string command);
+#endif
\ No newline at end of file
index ceb266a..f2c4a9b 100644 (file)
@@ -1,3 +1,14 @@
-// build config file
-#define MENUQC // so common/*.qc can check for menu QC or game QC
+#ifndef CONFIG_H
+#define CONFIG_H
 
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "sys-post.qh"
+#elif defined(SVQC)
+#endif
+
+#endif
\ No newline at end of file
index ff9d959..fa7c65c 100644 (file)
@@ -1,3 +1,8 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 string draw_mousepointer;
 vector draw_mousepointer_offset;
 vector draw_mousepointer_size;
index 96e0233..9566743 100644 (file)
@@ -1,3 +1,36 @@
+#ifndef DRAW_H
+#define DRAW_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "sys-post.qh"
+    #include "config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../common/util.qh"
+    #include "../common/test.qh"
+    #include "oo/base.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/constants.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/counting.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "command/menu_cmd.qh"
+    #include "menu.qh"
+#elif defined(SVQC)
+#endif
+
 // from the engine
 vector drawfontscale;
 #define draw_fontscale drawfontscale
@@ -38,3 +71,4 @@ vector globalToBoxSize(vector v, vector scale);
 
 float draw_TextWidth_WithColors(string s, vector size);
 float draw_TextWidth_WithoutColors(string s, vector size);
+#endif
\ No newline at end of file
index 94446bd..ec19cb9 100644 (file)
@@ -1,3 +1,8 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 ///////////////////////////////////////////////
 // Menu Source File
 ///////////////////////
index b6c0795..bae23e4 100644 (file)
@@ -1,3 +1,35 @@
+#ifndef MENU_H
+#define MENU_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "sys-post.qh"
+    #include "config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../common/util.qh"
+    #include "../common/test.qh"
+    #include "oo/base.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/constants.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/counting.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "command/menu_cmd.qh"
+#elif defined(SVQC)
+#endif
+
 #define localcmd cmd
 
 #define NULL (null_entity)
@@ -38,3 +70,4 @@ void preMenuDraw(); // this is run before the menu is drawn. You may put some st
 void postMenuDraw(); // this is run just after the menu is drawn (or not). Useful to draw something over everything else.
 
 void m_sync();
+#endif
\ No newline at end of file
index ed4eba5..72280a1 100644 (file)
@@ -1,3 +1,20 @@
+#ifndef BASE_H
+#define BASE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+       #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../sys-post.qh"
+    #include "../config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../common/util.qh"
+    #include "../../common/test.qh"
+#elif defined(SVQC)
+#endif
+
 .string classname;
 entity Object_vtbl;
 .string vtblname;
@@ -25,3 +42,4 @@ entity spawnObject()
                Object_vtbl = spawnVtbl(e, null_entity);
        return e;
 }
+#endif
\ No newline at end of file
index 28b7f08..b8073e6 100644 (file)
@@ -1,3 +1,40 @@
+#ifndef IMPLEMENTATION_H
+#define IMPLEMENTATION_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../sys-post.qh"
+    #include "../config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../common/util.qh"
+    #include "../../common/test.qh"
+    #include "base.qh"
+    #include "../../common/playerstats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/mapinfo.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../command/menu_cmd.qh"
+    #include "../menu.qh"
+    #include "../draw.qh"
+    #include "../skin.qh"
+    #include "../xonotic/util.qh"
+    #include "interface.qh"
+#elif defined(SVQC)
+#endif
+
 #ifndef INTERFACE
 #define INTERFACE
 #endif
@@ -26,3 +63,4 @@
 
 // for the implementation
 #define SUPER(cname) (cname##_vtbl.vtblbase)
+#endif
\ No newline at end of file
index 1e12206..8d25f5e 100644 (file)
@@ -1,3 +1,39 @@
+#ifndef INTERFACE_H
+#define INTERFACE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../sys-post.qh"
+    #include "../config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../common/util.qh"
+    #include "../../common/test.qh"
+    #include "base.qh"
+    #include "../../common/playerstats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/mapinfo.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../command/menu_cmd.qh"
+    #include "../menu.qh"
+    #include "../draw.qh"
+    #include "../skin.qh"
+    #include "../xonotic/util.qh"
+#elif defined(SVQC)
+#endif
+
 #ifndef INTERFACE
 #define INTERFACE
 #endif
@@ -23,3 +59,4 @@
 #define ATTRIBARRAY(cname,name,type,cnt)   .type name[cnt];
 #define ENDCLASS(cname)                    .float instanceOf##cname;
 #define SUPER(cname)
+#endif
\ No newline at end of file
index d44f657..87f5b49 100644 (file)
@@ -1,3 +1,37 @@
+#ifndef SKIN_H
+#define SKIN_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+    #include "sys-post.qh"
+    #include "config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../common/util.qh"
+    #include "../common/test.qh"
+    #include "oo/base.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/constants.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/counting.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "command/menu_cmd.qh"
+    #include "menu.qh"
+    #include "draw.qh"
+#elif defined(SVQC)
+#endif
+
 #define SKINBEGIN
 #define SKINVECTOR(name,def) vector SKIN##name = def
 #define SKINFLOAT(name,def) float SKIN##name = def
@@ -24,3 +58,4 @@
 #undef SKINFLOAT
 #undef SKINVECTOR
 #undef SKINBEGIN
+#endif
\ No newline at end of file
index e466fb4..1874590 100644 (file)
@@ -1 +1,14 @@
+#ifndef SYS_POST_H
+#define SYS_POST_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/menudefs.qc"
+    #include "../dpdefs/keycodes.qc"
+#elif defined(SVQC)
+#endif
+
 #pragma noref 0
+#endif
\ No newline at end of file
index a964ae9..3122cdf 100644 (file)
@@ -1 +1,11 @@
+#ifndef SYS_PRE_H
+#define SYS_PRE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../common/util-pre.qh"
+#elif defined(SVQC)
+#endif
+
 #pragma noref 1
+#endif
\ No newline at end of file
index 95a7439..f7e8a41 100644 (file)
@@ -1,3 +1,8 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 float GL_CheckExtension(string ext)
 {
        return (strstrofs(strcat(" ", cvar_string("gl_info_extensions"), " "), strcat(" ", ext, " "), 0) >= 0);
index 33ecb8c..aad8534 100644 (file)
@@ -1,3 +1,37 @@
+#ifndef MENU_UTIL_H
+#define MENU_UTIL_H
+#if defined(CSQC)
+#elif defined(MENUQC)
+       #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/menudefs.qc"
+    #include "../../dpdefs/keycodes.qc"
+    #include "../sys-post.qh"
+    #include "../config.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../common/util.qh"
+    #include "../../common/test.qh"
+    #include "../oo/base.qh"
+    #include "../../common/playerstats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/mapinfo.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../command/menu_cmd.qh"
+    #include "../menu.qh"
+    #include "../draw.qh"
+    #include "../skin.qh"
+#elif defined(SVQC)
+#endif
+
 float GL_CheckExtension(string ext);
 float GL_Have_TextureCompression();
 
@@ -51,3 +85,4 @@ string _Nex_ExtResponseSystem_RecommendedServers;
 float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;
 
 void CheckSendCvars(entity me, string cvarnamestring);
+#endif
\ No newline at end of file
index 33c8291..a9d7fa8 100644 (file)
@@ -1,3 +1,16 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "autocvars.qh"
+    #include "defs.qh"
+    #include "command/common.qh"
+    #include "anticheat.qh"
+#endif
+
 .float anticheat_jointime;
 
 void mean_accumulate(entity e, .float a, .float c, float mean, float value, float weight)
index e46dcce..f256cf7 100644 (file)
@@ -1,3 +1,73 @@
+#ifndef ANTICHEAT_H
+#define ANTICHEAT_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/urllib.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/net_notice.qh"
+    #include "../common/animdecide.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../common/monsters/sv_monsters.qh"
+    #include "../common/monsters/spawn.qh"
+    #include "../common/weapons/config.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "weapons/accuracy.qh"
+    #include "weapons/common.qh"
+    #include "weapons/csqcprojectile.qh"
+    #include "weapons/hitplot.qh"
+    #include "weapons/selection.qh"
+    #include "weapons/spawning.qh"
+    #include "weapons/throwing.qh"
+    #include "weapons/tracing.qh"
+    #include "weapons/weaponstats.qh"
+    #include "weapons/weaponsystem.qh"
+    #include "t_items.qh"
+    #include "autocvars.qh"
+    #include "constants.qh"
+    #include "defs.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "mutators/mutators_include.qh"
+    #include "tturrets/include/turrets_early.qh"
+    #include "vehicles/vehicles_def.qh"
+    #include "campaign.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/mapinfo.qh"
+    #include "command/common.qh"
+    #include "command/banning.qh"
+    #include "command/radarmap.qh"
+    #include "command/vote.qh"
+    #include "command/getreplies.qh"
+    #include "command/cmd.qh"
+    #include "command/sv_cmd.qh"
+    #include "../common/csqcmodel_settings.qh"
+    #include "../csqcmodellib/common.qh"
+    #include "../csqcmodellib/sv_model.qh"
+#endif
+
 void anticheat_init();
 void anticheat_report();
 void anticheat_shutdown();
@@ -12,3 +82,4 @@ void anticheat_startframe();
 void anticheat_endframe();
 
 void anticheat_fixangle();
+#endif
\ No newline at end of file
index 5dfce75..dc20370 100644 (file)
@@ -1,3 +1,12 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "vehicles/vehicles_def.qh"
+    #include "antilag.qh"
+#endif
+
 const float ANTILAG_MAX_ORIGINS = 64;
 .vector antilag_origins[ANTILAG_MAX_ORIGINS];
 .float antilag_times[ANTILAG_MAX_ORIGINS];
index b89f12b..555547d 100644 (file)
@@ -1,3 +1,83 @@
+#ifndef ANTILAG_H
+#define ANTILAG_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/urllib.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/net_notice.qh"
+    #include "../common/animdecide.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../common/monsters/sv_monsters.qh"
+    #include "../common/monsters/spawn.qh"
+    #include "../common/weapons/config.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "weapons/accuracy.qh"
+    #include "weapons/common.qh"
+    #include "weapons/csqcprojectile.qh"
+    #include "weapons/hitplot.qh"
+    #include "weapons/selection.qh"
+    #include "weapons/spawning.qh"
+    #include "weapons/throwing.qh"
+    #include "weapons/tracing.qh"
+    #include "weapons/weaponstats.qh"
+    #include "weapons/weaponsystem.qh"
+    #include "t_items.qh"
+    #include "autocvars.qh"
+    #include "constants.qh"
+    #include "defs.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "mutators/mutators_include.qh"
+    #include "tturrets/include/turrets_early.qh"
+    #include "vehicles/vehicles_def.qh"
+    #include "campaign.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/mapinfo.qh"
+    #include "command/common.qh"
+    #include "command/banning.qh"
+    #include "command/radarmap.qh"
+    #include "command/vote.qh"
+    #include "command/getreplies.qh"
+    #include "command/cmd.qh"
+    #include "command/sv_cmd.qh"
+    #include "../common/csqcmodel_settings.qh"
+    #include "../csqcmodellib/common.qh"
+    #include "../csqcmodellib/sv_model.qh"
+    #include "anticheat.qh"
+    #include "cheats.qh"
+    #include "../common/playerstats.qh"
+    #include "portals.qh"
+    #include "g_hook.qh"
+    #include "scores.qh"
+    #include "spawnpoints.qh"
+    #include "mapvoting.qh"
+    #include "ipban.qh"
+    #include "race.qh"
+#endif
+
 void antilag_record(entity e, float t);
 vector antilag_takebackorigin(entity e, float t);
 vector antilag_takebackavgvelocity(entity e, float t0, float t1);
@@ -9,3 +89,4 @@ void antilag_clear(entity e);
 
 #define ANTILAG_LATENCY(e) min(0.4, e.ping * 0.001)
 // add one ticrate?
+#endif
\ No newline at end of file
index 4ef4ee3..760f6dd 100644 (file)
@@ -1,3 +1,52 @@
+#ifndef SERVER_AUTOCVARS_H
+#define SERVER_AUTOCVARS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/urllib.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/net_notice.qh"
+    #include "../common/animdecide.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../common/monsters/sv_monsters.qh"
+    #include "../common/monsters/spawn.qh"
+    #include "../common/weapons/config.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "weapons/accuracy.qh"
+    #include "weapons/common.qh"
+    #include "weapons/csqcprojectile.qh"
+    #include "weapons/hitplot.qh"
+    #include "weapons/selection.qh"
+    #include "weapons/spawning.qh"
+    #include "weapons/throwing.qh"
+    #include "weapons/tracing.qh"
+    #include "weapons/weaponstats.qh"
+    #include "weapons/weaponsystem.qh"
+    #include "t_items.qh"
+#endif
+
 bool autocvar__notarget;
 bool autocvar__independent_players;
 bool autocvar__campaign_testrun;
@@ -879,4 +928,4 @@ float autocvar_g_buffs_vampire_damage_steal;
 float autocvar_g_buffs_invisible_alpha;
 float autocvar_g_buffs_flight_gravity;
 float autocvar_g_buffs_jump_height;
-
+#endif
\ No newline at end of file
index d4737db..b45455c 100644 (file)
@@ -1,3 +1,27 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../weapons/accuracy.qh"
+    #include "../t_items.qh"
+    #include "../autocvars.qh"
+    #include "../constants.qh"
+    #include "../defs.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../campaign.qh"
+    #include "../../common/mapinfo.qh"
+    #include "../../csqcmodellib/sv_model.qh"
+    #include "../antilag.qh"
+#endif
+
 #include "bot.qh"
 #include "aim.qh"
 #include "navigation.qh"
index 72e580b..43a24ba 100644 (file)
@@ -1,3 +1,17 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "autocvars.qh"
+    #include "defs.qh"
+    #include "campaign.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/mapinfo.qh"
+    #include "cheats.qh"
+#endif
+
 // campaign cvars:
 //   _campaign_index: index of CURRENT map
 //   _campaign_name: name of the current campaign
index 487deb9..e80666b 100644 (file)
@@ -1,3 +1,59 @@
+#ifndef CAMPAIGN_H
+#define CAMPAIGN_H
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/urllib.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/net_notice.qh"
+    #include "../common/animdecide.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../common/monsters/sv_monsters.qh"
+    #include "../common/monsters/spawn.qh"
+    #include "../common/weapons/config.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "weapons/accuracy.qh"
+    #include "weapons/common.qh"
+    #include "weapons/csqcprojectile.qh"
+    #include "weapons/hitplot.qh"
+    #include "weapons/selection.qh"
+    #include "weapons/spawning.qh"
+    #include "weapons/throwing.qh"
+    #include "weapons/tracing.qh"
+    #include "weapons/weaponstats.qh"
+    #include "weapons/weaponsystem.qh"
+    #include "t_items.qh"
+    #include "autocvars.qh"
+    #include "constants.qh"
+    #include "defs.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "mutators/mutators_include.qh"
+    #include "tturrets/include/turrets_early.qh"
+    #include "vehicles/vehicles_def.qh"
+#endif
+
 // this must be included BEFORE campaign_common.h to make this a memory saving
 #define CAMPAIGN_MAX_ENTRIES 2
 
@@ -13,3 +69,4 @@ void CampaignLevelWarp(float n);
 float campaign_bots_may_start;
 // campaign mode: bots shall spawn but wait for the player to spawn before they do anything
 // in other game modes, this is ignored
+#endif
\ No newline at end of file
index 28bb86c..716f406 100644 (file)
@@ -1,3 +1,23 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../common/constants.qh"
+    #include "../common/util.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "weapons/tracing.qh"
+    #include "autocvars.qh"
+    #include "defs.qh"
+    #include "../common/deathtypes.qh"
+    #include "mutators/mutators_include.qh"
+    #include "../csqcmodellib/sv_model.qh"
+    #include "cheats.qh"
+#endif
+
 void CopyBody(float keepvelocity);
 
 #ifdef NOCHEATS
index 1f31add..dde27e8 100644 (file)
@@ -1,3 +1,74 @@
+#ifndef CHEATS_H
+#define CHEATS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../warpzonelib/anglestransform.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/common.qh"
+    #include "../warpzonelib/util_server.qh"
+    #include "../warpzonelib/server.qh"
+    #include "../common/constants.qh"
+    #include "../common/stats.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/nades.qh"
+    #include "../common/buffs.qh"
+    #include "../common/test.qh"
+    #include "../common/counting.qh"
+    #include "../common/urllib.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/net_notice.qh"
+    #include "../common/animdecide.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../common/monsters/sv_monsters.qh"
+    #include "../common/monsters/spawn.qh"
+    #include "../common/weapons/config.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "weapons/accuracy.qh"
+    #include "weapons/common.qh"
+    #include "weapons/csqcprojectile.qh"
+    #include "weapons/hitplot.qh"
+    #include "weapons/selection.qh"
+    #include "weapons/spawning.qh"
+    #include "weapons/throwing.qh"
+    #include "weapons/tracing.qh"
+    #include "weapons/weaponstats.qh"
+    #include "weapons/weaponsystem.qh"
+    #include "t_items.qh"
+    #include "autocvars.qh"
+    #include "constants.qh"
+    #include "defs.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "mutators/mutators_include.qh"
+    #include "tturrets/include/turrets_early.qh"
+    #include "vehicles/vehicles_def.qh"
+    #include "campaign.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/mapinfo.qh"
+    #include "command/common.qh"
+    #include "command/banning.qh"
+    #include "command/radarmap.qh"
+    #include "command/vote.qh"
+    #include "command/getreplies.qh"
+    #include "command/cmd.qh"
+    #include "command/sv_cmd.qh"
+    #include "../common/csqcmodel_settings.qh"
+    #include "../csqcmodellib/common.qh"
+    #include "../csqcmodellib/sv_model.qh"
+    #include "anticheat.qh"
+#endif
+
 //float autocvar_sv_cheats; // must... declare... global
 
 float cheatcount_total;
@@ -11,3 +82,4 @@ float CheatCommand(float argc);
 float CheatFrame();
 
 void Drag_MoveDrag(entity from, entity to); // call this from CopyBody
+#endif
\ No newline at end of file
index 0974dae..b85b7c0 100644 (file)
@@ -1,3 +1,43 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../warpzonelib/server.qh"
+    #include "../common/constants.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/net_notice.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "../common/monsters/sv_monsters.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "t_items.qh"
+    #include "autocvars.qh"
+    #include "constants.qh"
+    #include "defs.qh"
+    #include "../common/notifications.qh"
+    #include "../common/deathtypes.qh"
+    #include "mutators/mutators_include.qh"
+    #include "vehicles/vehicles_def.qh"
+    #include "campaign.qh"
+    #include "../common/mapinfo.qh"
+    #include "command/common.qh"
+    #include "command/vote.qh"
+    #include "../csqcmodellib/sv_model.qh"
+    #include "anticheat.qh"
+    #include "cheats.qh"
+    #include "../common/playerstats.qh"
+    #include "portals.qh"
+    #include "g_hook.qh"
+    #include "scores.qh"
+    #include "spawnpoints.qh"
+    #include "ipban.qh"
+    #include "race.qh"
+    #include "antilag.qh"
+    #include "playerdemo.qh"
+#endif
+
 void send_CSQC_teamnagger() {
        WriteByte(MSG_BROADCAST, SVC_TEMPENTITY);
        WriteByte(MSG_BROADCAST, TE_CSQC_TEAMNAGGER);
index 3a9c8bb..0345a53 100644 (file)
@@ -1,3 +1,20 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "../common/constants.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "autocvars.qh"
+    #include "defs.qh"
+    #include "mutators/mutators_include.qh"
+    #include "vehicles/vehicles_def.qh"
+    #include "command/common.qh"
+    #include "../csqcmodellib/sv_model.qh"
+    #include "cheats.qh"
+    #include "round_handler.qh"
+#endif
+
 /*
  * Impulse map:
  *
index c31550c..3244f37 100644 (file)
@@ -1,3 +1,30 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../warpzonelib/server.qh"
+    #include "../common/constants.qh"
+    #include "../common/util.qh"
+    #include "../common/animdecide.qh"
+    #include "../common/monsters/sv_monsters.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "t_items.qh"
+    #include "autocvars.qh"
+    #include "defs.qh"
+    #include "../common/notifications.qh"
+    #include "mutators/mutators_include.qh"
+    #include "../common/mapinfo.qh"
+    #include "../csqcmodellib/sv_model.qh"
+    #include "anticheat.qh"
+    #include "cheats.qh"
+    #include "g_hook.qh"
+    #include "race.qh"
+    #include "playerdemo.qh"
+#endif
+
 .float race_penalty;
 .float restart_jump;
 
index 89f9ca2..32cd5f8 100644 (file)
@@ -1,3 +1,29 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qc"
+    #include "../dpdefs/dpextensions.qc"
+    #include "sys-post.qh"
+    #include "../common/constants.qh"
+    #include "../common/teams.qh"
+    #include "../common/util.qh"
+    #include "../common/animdecide.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "weapons/accuracy.qh"
+    #include "t_items.qh"
+    #include "autocvars.qh"
+    #include "constants.qh"
+    #include "defs.qh"
+    #include "../common/deathtypes.qh"
+    #include "mutators/mutators_include.qh"
+    #include "../common/mapinfo.qh"
+    #include "command/common.qh"
+    #include "../csqcmodellib/sv_model.qh"
+    #include "cheats.qh"
+    #include "../common/playerstats.qh"
+    #include "portals.qh"
+#endif
+
 .entity pusher;
 .float pushltime;
 .float istypefrag;
index aaf8f5e..984093e 100644 (file)
@@ -1,3 +1,14 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/dpextensions.qc"
+    #include "../../common/util.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../autocvars.qh"
+    #include "common.qh"
+    #include "banning.qh"
+    #include "../ipban.qh"
+#endif
 // =====================================================
 //  Banning and kicking command code, written by Samual
 //  Last updated: December 29th, 2011
index 8c71af1..b49da6e 100644 (file)
@@ -1,3 +1,64 @@
+#ifndef BANNING_H
+#define BANNING_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../../common/test.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/net_notice.qh"
+    #include "../../common/animdecide.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../../common/monsters/sv_monsters.qh"
+    #include "../../common/monsters/spawn.qh"
+    #include "../../common/weapons/config.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../weapons/accuracy.qh"
+    #include "../weapons/common.qh"
+    #include "../weapons/csqcprojectile.qh"
+    #include "../weapons/hitplot.qh"
+    #include "../weapons/selection.qh"
+    #include "../weapons/spawning.qh"
+    #include "../weapons/throwing.qh"
+    #include "../weapons/tracing.qh"
+    #include "../weapons/weaponstats.qh"
+    #include "../weapons/weaponsystem.qh"
+    #include "../t_items.qh"
+    #include "../autocvars.qh"
+    #include "../constants.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../../common/deathtypes.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../tturrets/include/turrets_early.qh"
+    #include "../vehicles/vehicles_def.qh"
+    #include "../campaign.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/mapinfo.qh"
+    #include "common.qh"
+#endif
+
 // ====================================
 //  Declarations for kick/ban commands
 //  Last updated: December 29th, 2011
@@ -13,3 +74,4 @@ float Ban_Delete(float i);
 
 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
 void BanCommand_macro_write_aliases(float fh);
+#endif
\ No newline at end of file
index 29f46c9..fed7088 100644 (file)
@@ -1,3 +1,32 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../warpzonelib/common.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../../common/monsters/sv_monsters.qh"
+    #include "../../common/monsters/spawn.qh"
+    #include "../autocvars.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../../common/deathtypes.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../vehicles/vehicles_def.qh"
+    #include "../campaign.qh"
+    #include "../../common/mapinfo.qh"
+    #include "common.qh"
+    #include "vote.qh"
+    #include "cmd.qh"
+    #include "../cheats.qh"
+    #include "../scores.qh"
+    #include "../ipban.qh"
+#endif
+
 // =========================================================
 //  Server side networked commands code, reworked by Samual
 //  Last updated: December 28th, 2011
index 120bf3e..e995dd8 100644 (file)
@@ -1,3 +1,68 @@
+#ifndef CMD_H
+#define CMD_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../../common/test.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/net_notice.qh"
+    #include "../../common/animdecide.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../../common/monsters/sv_monsters.qh"
+    #include "../../common/monsters/spawn.qh"
+    #include "../../common/weapons/config.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../weapons/accuracy.qh"
+    #include "../weapons/common.qh"
+    #include "../weapons/csqcprojectile.qh"
+    #include "../weapons/hitplot.qh"
+    #include "../weapons/selection.qh"
+    #include "../weapons/spawning.qh"
+    #include "../weapons/throwing.qh"
+    #include "../weapons/tracing.qh"
+    #include "../weapons/weaponstats.qh"
+    #include "../weapons/weaponsystem.qh"
+    #include "../t_items.qh"
+    #include "../autocvars.qh"
+    #include "../constants.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../../common/deathtypes.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../tturrets/include/turrets_early.qh"
+    #include "../vehicles/vehicles_def.qh"
+    #include "../campaign.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/mapinfo.qh"
+    #include "common.qh"
+    #include "banning.qh"
+    #include "radarmap.qh"
+    #include "vote.qh"
+    #include "getreplies.qh"
+#endif
+
 // =================================================
 //  Declarations for server side networked commands
 //  Last updated: December 26th, 2011
@@ -15,3 +80,4 @@ string MapVote_Suggest(string m);
 
 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
 void ClientCommand_macro_write_aliases(float fh);
+#endif
\ No newline at end of file
index 323d232..e52d8fc 100644 (file)
@@ -1,3 +1,20 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../common/util.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../autocvars.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "common.qh"
+    #include "vote.qh"
+    #include "../scores.qh"
+#endif
+
 // ====================================================
 //  Shared code for server commands, written by Samual
 //  Last updated: December 27th, 2011
index 13b260d..9961e0e 100644 (file)
@@ -1,3 +1,63 @@
+#ifndef COMMAND_COMMON_H
+#define COMMAND_COMMON_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../../common/test.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/net_notice.qh"
+    #include "../../common/animdecide.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../../common/monsters/sv_monsters.qh"
+    #include "../../common/monsters/spawn.qh"
+    #include "../../common/weapons/config.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../weapons/accuracy.qh"
+    #include "../weapons/common.qh"
+    #include "../weapons/csqcprojectile.qh"
+    #include "../weapons/hitplot.qh"
+    #include "../weapons/selection.qh"
+    #include "../weapons/spawning.qh"
+    #include "../weapons/throwing.qh"
+    #include "../weapons/tracing.qh"
+    #include "../weapons/weaponstats.qh"
+    #include "../weapons/weaponsystem.qh"
+    #include "../t_items.qh"
+    #include "../autocvars.qh"
+    #include "../constants.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../../common/deathtypes.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../tturrets/include/turrets_early.qh"
+    #include "../vehicles/vehicles_def.qh"
+    #include "../campaign.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/mapinfo.qh"
+#endif
+
 // ============================================================
 //  Shared declarations for server commands, written by Samual
 //  Last updated: December 30th, 2011
@@ -35,4 +95,5 @@ void timeout_handler_think();
 void CommonCommand_macro_write_aliases(float fh);
 
 // keep track of the next token to use for argc
-float next_token;
\ No newline at end of file
+float next_token;
+#endif
\ No newline at end of file
index dd57b26..a3290e1 100644 (file)
@@ -1,3 +1,19 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/util.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../defs.qh"
+    #include "../../common/mapinfo.qh"
+    #include "getreplies.qh"
+    #include "../race.qh"
+#endif
+
 // =========================================================
 //  Reply messages for common commands, re-worked by Samual
 //  Last updated: December 30th, 2011
index d2b1395..7a22e86 100644 (file)
@@ -1,3 +1,22 @@
+#ifndef GETREPLIES_H
+#define GETREPLIES_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/util.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../defs.qh"
+    #include "../../common/mapinfo.qh"
+    #include "getreplies.qh"
+    #include "../race.qh"
+#endif
+
 // ======================================================
 //  Declarations for reply messages, re-worked by Samual
 //  Last updated: December 30th, 2011
@@ -18,3 +37,4 @@ string getladder(void);
 string getmaplist(void);
 string getlsmaps(void);
 string getmonsterlist(void);
+#endif
\ No newline at end of file
index 9c644bf..7214b7e 100644 (file)
@@ -1,3 +1,14 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../../common/util.qh"
+    #include "../defs.qh"
+    #include "radarmap.qh"
+    #include "../../csqcmodellib/sv_model.qh"
+#endif
+
 // ===============================================
 //     Generates radar map images for use in the HUD
 // ===============================================
index 706de70..e4fe3c4 100644 (file)
@@ -1,3 +1,65 @@
+#ifndef RADARMAP_H
+#define RADARMAP_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../../common/test.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/net_notice.qh"
+    #include "../../common/animdecide.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../../common/monsters/sv_monsters.qh"
+    #include "../../common/monsters/spawn.qh"
+    #include "../../common/weapons/config.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../weapons/accuracy.qh"
+    #include "../weapons/common.qh"
+    #include "../weapons/csqcprojectile.qh"
+    #include "../weapons/hitplot.qh"
+    #include "../weapons/selection.qh"
+    #include "../weapons/spawning.qh"
+    #include "../weapons/throwing.qh"
+    #include "../weapons/tracing.qh"
+    #include "../weapons/weaponstats.qh"
+    #include "../weapons/weaponsystem.qh"
+    #include "../t_items.qh"
+    #include "../autocvars.qh"
+    #include "../constants.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../../common/deathtypes.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../tturrets/include/turrets_early.qh"
+    #include "../vehicles/vehicles_def.qh"
+    #include "../campaign.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/mapinfo.qh"
+    #include "common.qh"
+    #include "banning.qh"
+#endif
+
 // ===========================================
 //     Declarations for radarmap generation code
 // ===========================================
@@ -11,3 +73,4 @@ float sharpen_buffer[RADAR_WIDTH_MAX * 3];
 string doublehex = "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFFFF";
 // FF is contained twice, to map 256 to FF too
 // removes the need to bound()
+#endif
\ No newline at end of file
index 63485d5..7ffd1b9 100644 (file)
@@ -1,3 +1,27 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/monsters/sv_monsters.qh"
+    #include "../autocvars.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../../common/mapinfo.qh"
+    #include "common.qh"
+    #include "cmd.qh"
+    #include "sv_cmd.qh"
+    #include "../anticheat.qh"
+    #include "../playerdemo.qh"
+#endif
+
 // =====================================================
 //  Server side game commands code, reworked by Samual
 //  Last updated: December 29th, 2011
index 4b8c946..c28fae6 100644 (file)
@@ -1,3 +1,69 @@
+#ifndef SV_CMD_H
+#define SV_CMD_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../../common/util-pre.qh"
+    #include "../sys-pre.qh"
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../warpzonelib/anglestransform.qh"
+    #include "../../warpzonelib/mathlib.qh"
+    #include "../../warpzonelib/common.qh"
+    #include "../../warpzonelib/util_server.qh"
+    #include "../../warpzonelib/server.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/stats.qh"
+    #include "../../common/teams.qh"
+    #include "../../common/util.qh"
+    #include "../../common/nades.qh"
+    #include "../../common/buffs.qh"
+    #include "../../common/test.qh"
+    #include "../../common/counting.qh"
+    #include "../../common/urllib.qh"
+    #include "../../common/command/markup.qh"
+    #include "../../common/command/rpn.qh"
+    #include "../../common/command/generic.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../../common/net_notice.qh"
+    #include "../../common/animdecide.qh"
+    #include "../../common/monsters/monsters.qh"
+    #include "../../common/monsters/sv_monsters.qh"
+    #include "../../common/monsters/spawn.qh"
+    #include "../../common/weapons/config.qh"
+    #include "../../common/weapons/weapons.qh"
+    #include "../weapons/accuracy.qh"
+    #include "../weapons/common.qh"
+    #include "../weapons/csqcprojectile.qh"
+    #include "../weapons/hitplot.qh"
+    #include "../weapons/selection.qh"
+    #include "../weapons/spawning.qh"
+    #include "../weapons/throwing.qh"
+    #include "../weapons/tracing.qh"
+    #include "../weapons/weaponstats.qh"
+    #include "../weapons/weaponsystem.qh"
+    #include "../t_items.qh"
+    #include "../autocvars.qh"
+    #include "../constants.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../../common/deathtypes.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../tturrets/include/turrets_early.qh"
+    #include "../vehicles/vehicles_def.qh"
+    #include "../campaign.qh"
+    #include "../../common/campaign_common.qh"
+    #include "../../common/mapinfo.qh"
+    #include "common.qh"
+    #include "banning.qh"
+    #include "radarmap.qh"
+    #include "vote.qh"
+    #include "getreplies.qh"
+    #include "cmd.qh"
+#endif
+
 // =================================================
 //  Declarations for server side game commands
 //  Last updated: December 25th, 2011
@@ -13,4 +79,5 @@ float shuffleteams_players[SHUFFLETEAMS_MAX_PLAYERS]; // maximum of 255 player s
 float shuffleteams_teams[SHUFFLETEAMS_MAX_TEAMS]; // maximum of 4 teams
 
 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
-void GameCommand_macro_write_aliases(float fh);
\ No newline at end of file
+void GameCommand_macro_write_aliases(float fh);
+#endif
\ No newline at end of file
index 79925fc..d1cc5c5 100644 (file)
@@ -1,3 +1,26 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/util.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../autocvars.qh"
+    #include "../constants.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../../common/mapinfo.qh"
+    #include "common.qh"
+    #include "vote.qh"
+    #include "../../common/playerstats.qh"
+    #include "../scores.qh"
+    #include "../race.qh"
+    #include "../round_handler.qh"
+#endif
+
 // =============================================
 //  Server side voting code, reworked by Samual
 //  Last updated: December 27th, 2011
index 36da806..cd34fa2 100644 (file)
@@ -1,3 +1,29 @@
+#ifndef VOTE_H
+#define VOTE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../../dpdefs/progsdefs.qc"
+    #include "../../dpdefs/dpextensions.qc"
+    #include "../sys-post.qh"
+    #include "../../common/constants.qh"
+    #include "../../common/util.qh"
+    #include "../../common/command/shared_defs.qh"
+    #include "../autocvars.qh"
+    #include "../constants.qh"
+    #include "../defs.qh"
+    #include "../../common/notifications.qh"
+    #include "../mutators/mutators_include.qh"
+    #include "../../common/mapinfo.qh"
+    #include "common.qh"
+    #include "vote.qh"
+    #include "../../common/playerstats.qh"
+    #include "../scores.qh"
+    #include "../race.qh"
+    #include "../round_handler.qh"
+#endif
+
 // ================================================
 //  Declarations for the vote system/vote commands
 //  Last updated: December 14th, 2011
@@ -48,4 +74,5 @@ float readyrestart_happened; // keeps track of whether a restart has already hap
 float restart_mapalreadyrestarted; // bool, indicates whether reset_map() was already executed
 .float ready; // flag for if a player is ready
 void reset_map(float dorespawn);
-void ReadyCount();
\ No newline at end of file
+void ReadyCount();
+#endif
\ No newline at end of file