From 47e65ac51f81fd4c748b925edf0d2dc97a1b2b3e Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 26 Feb 2022 00:01:04 +0100 Subject: [PATCH] CA: don't show "Press space to join" to eliminated players --- .../common/gamemodes/gamemode/clanarena/cl_clanarena.qc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/cl_clanarena.qc b/qcsrc/common/gamemodes/gamemode/clanarena/cl_clanarena.qc index 65f21fdd24..c91d9a33c2 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/cl_clanarena.qc +++ b/qcsrc/common/gamemodes/gamemode/clanarena/cl_clanarena.qc @@ -2,11 +2,20 @@ #include +#include + void HUD_Mod_CA_Export(int fh) { HUD_Write_Cvar("hud_panel_modicons_ca_layout"); } +REGISTER_MUTATOR(cl_ca, true); + +MUTATOR_HOOKFUNCTION(cl_ca, DrawInfoMessages) +{ + return (ISGAMETYPE(CA) && entcs_GetSpecState(player_localnum) == ENTCS_SPEC_IN_SCOREBOARD); +} + void DrawCAItem(vector myPos, vector mySize, float aspect_ratio, int layout, int i) { TC(int, layout); TC(int, i); -- 2.39.2