#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"
--- /dev/null
+#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"
__pointparticles(_particleeffectnum(eff_name), eff_loc, eff_vel, eff_cnt);
}
#endif
+
+#include "effectinfo.qc"
#include "all.inc"
#undef IMPLEMENTATION
+#ifdef SVQC
+#include "spawn.qc"
+#include "sv_monsters.qc"
+#endif
+
#endif
#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
#ifndef MENUQC
#include "calculations.qc"
#endif
+#ifdef SVQC
+ #include "config.qc"
+#endif
#define IMPLEMENTATION
#include "all.inc"
#undef IMPLEMENTATION
#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"
#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"