From: z411 Date: Sun, 18 Apr 2021 22:02:21 +0000 (-0400) Subject: Removed score HUD health bar now that spectator HUD exists X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2f0de5498101f58e956f288f3f1c4a30275256ab;p=xonotic%2Fxonotic-data.pk3dir.git Removed score HUD health bar now that spectator HUD exists --- diff --git a/qcsrc/client/hud/panel/score.qc b/qcsrc/client/hud/panel/score.qc index e06d9eee8..3046335ca 100644 --- a/qcsrc/client/hud/panel/score.qc +++ b/qcsrc/client/hud/panel/score.qc @@ -185,18 +185,6 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me) if (team_count) score_color = Team_ColorRGB(pl.team) * 0.8; - entity entcs = entcs_receiver(pl.sv_entnum); - if(entcs.m_entcs_private) { - // z411 draw health/armor bar - vector bar_sz = vec2(mySize.x, fontsize.y); - - bar_sz.x *= entcs.healthvalue / autocvar_hud_panel_healtharmor_maxhealth; - drawfill(pos, bar_sz, ((team_count) ? score_color : '0.8 0.8 0'), 0.5, DRAWFLAG_NORMAL); - - bar_sz.x *= GetResource(entcs, RES_ARMOR) / autocvar_hud_panel_healtharmor_maxarmor; - drawfill(pos + eY * (bar_sz.y * 0.7), bar_sz - eY * (bar_sz.y * 0.7), ((team_count) ? score_color : '0 0.8 0.8'), 1, DRAWFLAG_NORMAL); - } - if (pl == me) { if (i == first_pl)