From 19aa845eb398a31a3e56ffcbd15811f376a3da70 Mon Sep 17 00:00:00 2001 From: AriosJentu Date: Sun, 2 May 2021 02:35:21 +1000 Subject: [PATCH] Make Dueling GUI available for use --- qcsrc/common/gamemodes/gamemode/duel/_mod.inc | 3 +++ qcsrc/common/gamemodes/gamemode/duel/_mod.qh | 3 +++ qcsrc/common/gamemodes/gamemode/duel/duel.qh | 8 ++++++++ 3 files changed, 14 insertions(+) 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) -- 2.39.2