]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Share common inclusions
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 23 Dec 2015 08:39:21 +0000 (19:39 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 23 Dec 2015 08:40:15 +0000 (19:40 +1100)
qcsrc/client/progs.inc
qcsrc/common/_all.inc [new file with mode: 0644]
qcsrc/common/effects/all.qc
qcsrc/common/monsters/all.qc
qcsrc/common/turrets/all.qc
qcsrc/common/weapons/all.qc
qcsrc/menu/progs.inc
qcsrc/server/progs.inc

index 2727db46e62707596a130f14ec7c8e177c5148ac..75ca9ac13389e6faf4a1d8eb0a0cff3455d6e001 100644 (file)
 
 #include "weapons/projectile.qc" // TODO
 
-#include "../common/anim.qc"
-#include "../common/animdecide.qc"
-#include "../common/effects/effectinfo.qc"
-#include "../common/ent_cs.qc"
-#include "../common/mapinfo.qc"
-#include "../common/movetypes/include.qc"
-#include "../common/net_notice.qc"
-#include "../common/notifications.qc"
-#include "../common/physics.qc"
-#include "../common/playerstats.qc"
-#include "../common/util.qc"
-
-#include "../common/viewloc.qc"
-
-#include "../common/minigames/minigames.qc"
-#include "../common/minigames/cl_minigames.qc"
-
-#include "../common/deathtypes/all.qc"
-#include "../common/effects/all.qc"
-#include "../common/gamemodes/all.qc"
-#include "../common/impulses/all.qc"
-#include "../common/items/all.qc"
-#include "../common/monsters/all.qc"
-#include "../common/mutators/all.qc"
-#include "../common/turrets/all.qc"
-#include "../common/vehicles/all.qc"
-#include "../common/weapons/all.qc"
-
-#include "../common/turrets/cl_turrets.qc"
-
-#include "../common/triggers/include.qc"
+#include "../common/_all.inc"
 
 #include "../lib/csqcmodel/cl_model.qc"
 #include "../lib/csqcmodel/cl_player.qc"
diff --git a/qcsrc/common/_all.inc b/qcsrc/common/_all.inc
new file mode 100644 (file)
index 0000000..5b03390
--- /dev/null
@@ -0,0 +1,50 @@
+#ifndef MENUQC
+#include "anim.qc"
+#include "animdecide.qc"
+#include "ent_cs.qc"
+#include "net_notice.qc"
+#endif
+
+#include "mapinfo.qc"
+#include "playerstats.qc"
+#include "util.qc"
+
+#ifndef CSQC
+#include "campaign_file.qc"
+#include "campaign_setup.qc"
+#endif
+
+#ifndef MENUQC
+#include "physics.qc"
+#include "movetypes/include.qc"
+#include "triggers/include.qc"
+#include "viewloc.qc"
+#endif
+
+#ifndef MENUQC
+#include "minigames/minigames.qc"
+#endif
+#ifdef CSQC
+#include "minigames/cl_minigames.qc"
+#endif
+#ifdef SVQC
+#include "minigames/sv_minigames.qc"
+#endif
+
+#include "debug.qh"
+
+#ifndef MENUQC
+#include "deathtypes/all.qc"
+#include "effects/all.qc"
+#include "impulses/all.qc"
+#include "notifications.qc"
+#endif
+
+#include "items/all.qc"
+    #include "weapons/all.qc"
+        #include "monsters/all.qc"
+        #include "turrets/all.qc"
+        #include "vehicles/all.qc"
+
+#include "mutators/all.qc"
+    #include "gamemodes/all.qc"
index 347a2111b563f4ebdb4e18de5e561ed1eb956306..8c13a68f6819c535e23e1fb9bdeb2578a24d4274 100644 (file)
@@ -91,3 +91,5 @@ void Send_Effect_(string eff_name, vector eff_loc, vector eff_vel, int eff_cnt)
        __pointparticles(_particleeffectnum(eff_name), eff_loc, eff_vel, eff_cnt);
 }
 #endif
+
+#include "effectinfo.qc"
index f5c973bd07bd10bb1aacbb32276dbdefb5f318ff..2b15e4085734183ebe31053e327314d6bfc5f8e1 100644 (file)
@@ -18,4 +18,9 @@ string M_Model(string m_mdl)
 #include "all.inc"
 #undef IMPLEMENTATION
 
+#ifdef SVQC
+#include "spawn.qc"
+#include "sv_monsters.qc"
+#endif
+
 #endif
index bbd0d6811ab42401fd4d33e2d684f3fc75b8a30d..2d40f17d01eb3037eb201451905bde4cf0b6bd7f 100644 (file)
@@ -9,3 +9,15 @@ REGISTER_NET_LINKED(ENT_CLIENT_TURRET)
 #define IMPLEMENTATION
 #include "all.inc"
 #undef IMPLEMENTATION
+
+#ifdef CSQC
+#include "cl_turrets.qc"
+#endif
+
+#ifdef SVQC
+#include "sv_turrets.qc"
+#include "config.qc"
+#include "util.qc"
+#include "checkpoint.qc"
+#include "targettrigger.qc"
+#endif
index 07ae7585163abd8ac4ce8954e99f395704196024..862697eb8e5ef5455de4628f673c3ad7224c4721 100644 (file)
@@ -47,6 +47,9 @@
 #ifndef MENUQC
        #include "calculations.qc"
 #endif
+#ifdef SVQC
+       #include "config.qc"
+#endif
 #define IMPLEMENTATION
 #include "all.inc"
 #undef IMPLEMENTATION
index 730fb652b086358cd07d14519928006a1a6c1c18..621c1a4899cb104e142858b254207d8e558f111f 100644 (file)
 
 #include "xonotic/util.qc"
 
-#include "../common/campaign_file.qc"
-#include "../common/campaign_setup.qc"
-#include "../common/mapinfo.qc"
-#include "../common/playerstats.qc"
-#include "../common/util.qc"
-#include "../common/debug.qh"
-
-#include "../common/items/all.qc"
-#include "../common/monsters/all.qc"
-#include "../common/mutators/all.qc"
-#include "../common/vehicles/all.qc"
-#include "../common/weapons/all.qc"
+#include "../common/_all.inc"
 
 #if BUILD_MOD
 #include "../../mod/menu/progs.inc"
index 8bfab2052ee2b3dc4fa9d8b488eb2f4442a3ab09..cde4b68f92a3ebed0ed160a537f045cc70f8f65c 100644 (file)
 #include "weapons/weaponstats.qc"
 #include "weapons/weaponsystem.qc"
 
-#include "../common/anim.qc"
-#include "../common/animdecide.qc"
-#include "../common/campaign_file.qc"
-#include "../common/campaign_setup.qc"
-#include "../common/effects/effectinfo.qc"
-#include "../common/ent_cs.qc"
-#include "../common/mapinfo.qc"
-#include "../common/minigames/minigames.qc"
-#include "../common/minigames/sv_minigames.qc"
-#include "../common/monsters/spawn.qc"
-#include "../common/monsters/sv_monsters.qc"
-#include "../common/movetypes/include.qc"
-#include "../common/net_notice.qc"
-#include "../common/notifications.qc"
-#include "../common/physics.qc"
-#include "../common/playerstats.qc"
-#include "../common/triggers/include.qc"
-#include "../common/util.qc"
-#include "../common/viewloc.qc"
-
-#include "../common/deathtypes/all.qc"
-#include "../common/effects/all.qc"
-#include "../common/gamemodes/all.qc"
-#include "../common/impulses/all.qc"
-#include "../common/items/all.qc"
-#include "../common/monsters/all.qc"
-#include "../common/turrets/all.qc"
-#include "../common/vehicles/all.qc"
-#include "../common/weapons/all.qc"
-#include "../common/mutators/all.qc"
+#include "../common/_all.inc"
 #include "mutators/all.qc"
 
-#include "../common/turrets/sv_turrets.qc"
-#include "../common/turrets/config.qc"
-#include "../common/turrets/util.qc"
-#include "../common/turrets/checkpoint.qc"
-#include "../common/turrets/targettrigger.qc"
-#include "../common/weapons/config.qc"
-
 #include "../lib/csqcmodel/sv_model.qc"
 
 #include "../lib/warpzone/anglestransform.qc"