From: AriosJentu Date: Sat, 1 May 2021 16:35:21 +0000 (+1000) Subject: Make Dueling GUI available for use X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=19aa845eb398a31a3e56ffcbd15811f376a3da70;p=xonotic%2Fxonotic-data.pk3dir.git Make Dueling GUI available for use --- diff --git a/qcsrc/common/gamemodes/gamemode/duel/_mod.inc b/qcsrc/common/gamemodes/gamemode/duel/_mod.inc index 1a7e0d339..2619f3d7e 100644 --- a/qcsrc/common/gamemodes/gamemode/duel/_mod.inc +++ b/qcsrc/common/gamemodes/gamemode/duel/_mod.inc @@ -1,5 +1,8 @@ // generated file; do not modify #include +#ifdef CSQC + #include +#endif #ifdef SVQC #include #endif diff --git a/qcsrc/common/gamemodes/gamemode/duel/_mod.qh b/qcsrc/common/gamemodes/gamemode/duel/_mod.qh index 6d6cc3c2e..f22071e8e 100644 --- a/qcsrc/common/gamemodes/gamemode/duel/_mod.qh +++ b/qcsrc/common/gamemodes/gamemode/duel/_mod.qh @@ -1,5 +1,8 @@ // generated file; do not modify #include +#ifdef CSQC + #include +#endif #ifdef SVQC #include #endif diff --git a/qcsrc/common/gamemodes/gamemode/duel/duel.qh b/qcsrc/common/gamemodes/gamemode/duel/duel.qh index 298e62e00..6b92221c4 100644 --- a/qcsrc/common/gamemodes/gamemode/duel/duel.qh +++ b/qcsrc/common/gamemodes/gamemode/duel/duel.qh @@ -3,6 +3,10 @@ #include #include +#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)