]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make Dueling GUI available for use
authorAriosJentu <darthpoezd@gmail.com>
Sat, 1 May 2021 16:35:21 +0000 (02:35 +1000)
committerAriosJentu <darthpoezd@gmail.com>
Sat, 1 May 2021 16:35:21 +0000 (02:35 +1000)
qcsrc/common/gamemodes/gamemode/duel/_mod.inc
qcsrc/common/gamemodes/gamemode/duel/_mod.qh
qcsrc/common/gamemodes/gamemode/duel/duel.qh

index 1a7e0d33963d8efae1a5a431be38f6423ae0fa83..2619f3d7ed3e3a4ee7cd10695868b52ddc444aaa 100644 (file)
@@ -1,5 +1,8 @@
 // generated file; do not modify
 #include <common/gamemodes/gamemode/duel/duel.qc>
+#ifdef CSQC
+    #include <common/gamemodes/gamemode/duel/cl_duel.qc>
+#endif
 #ifdef SVQC
     #include <common/gamemodes/gamemode/duel/sv_duel.qc>
 #endif
index 6d6cc3c2e25a4d41a009071eaafe13c4f1bf86dd..f22071e8e4a86e0e5e9bafb3e468c259a6df8097 100644 (file)
@@ -1,5 +1,8 @@
 // generated file; do not modify
 #include <common/gamemodes/gamemode/duel/duel.qh>
+#ifdef CSQC
+    #include <common/gamemodes/gamemode/duel/cl_duel.qh>
+#endif
 #ifdef SVQC
     #include <common/gamemodes/gamemode/duel/sv_duel.qh>
 #endif
index 298e62e0035af660e920317f57de78e2616aedf3..6b92221c4ba0317b85d49873483ca8ab74a6afe5 100644 (file)
@@ -3,6 +3,10 @@
 #include <common/gamemodes/gamemode/deathmatch/deathmatch.qh>
 #include <common/mapinfo.qh>
 
+#ifdef CSQC
+void HUD_Mod_Duel(vector pos, vector mySize);
+void HUD_Mod_Duel_Export(int fh);
+#endif
 CLASS(Duel, Gametype)
     INIT(Duel)
     {
@@ -23,6 +27,10 @@ CLASS(Duel, Gametype)
         }
         return false;
     }
+#ifdef CSQC
+    ATTRIB(Duel, m_modicons, void(vector pos, vector mySize), HUD_Mod_Duel);
+    ATTRIB(Duel, m_modicons_export, void(int fh), HUD_Mod_Duel_Export);
+#endif
 ENDCLASS(Duel)
 REGISTER_GAMETYPE(DUEL, NEW(Duel));
 #define g_duel IS_GAMETYPE(DUEL)