]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/onslaught/module.inc
Onslaught: move controlpoint + generator to mutator module
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / onslaught / module.inc
diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/module.inc b/qcsrc/common/gamemodes/gamemode/onslaught/module.inc
new file mode 100644 (file)
index 0000000..fee33b1
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef ONS_CONSTANTS
+       #define ONS_CONSTANTS
+       REGISTER_NET_LINKED(ENT_CLIENT_GENERATOR)
+       REGISTER_NET_LINKED(ENT_CLIENT_CONTROLPOINT_ICON)
+#endif
+
+#if defined(SVQC)
+       #include "onslaught.qc"
+       #ifndef IMPLEMENTATION
+               #include "sv_controlpoint.qh"
+               #include "sv_generator.qh"
+       #else
+               #include "sv_controlpoint.qc"
+               #include "sv_generator.qc"
+       #endif
+#elif defined(CSQC)
+       #ifndef IMPLEMENTATION
+               #include "cl_controlpoint.qh"
+               #include "cl_generator.qh"
+       #else
+               #include "cl_controlpoint.qc"
+               #include "cl_generator.qc"
+       #endif
+#endif