From: terencehill Date: Fri, 25 Feb 2022 23:01:04 +0000 (+0100) Subject: CA: don't show "Press space to join" to eliminated players X-Git-Tag: xonotic-v0.8.5~188 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=47e65ac51f81fd4c748b925edf0d2dc97a1b2b3e CA: don't show "Press space to join" to eliminated players --- 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);