]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
CA: don't show "Press space to join" to eliminated players
authorterencehill <piuntn@gmail.com>
Fri, 25 Feb 2022 23:01:04 +0000 (00:01 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 25 Feb 2022 23:01:04 +0000 (00:01 +0100)
qcsrc/common/gamemodes/gamemode/clanarena/cl_clanarena.qc

index 65f21fdd24c388eba082130f86c999aeb4ca23fd..c91d9a33c2a4b6edfcf6d0bfb53f6aa7a50dfada 100644 (file)
@@ -2,11 +2,20 @@
 
 #include <client/draw.qh>
 
+#include <common/mutators/base.qh>
+
 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);