]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Removed score HUD health bar now that spectator HUD exists
authorz411 <z411@omaera.org>
Sun, 18 Apr 2021 22:02:21 +0000 (18:02 -0400)
committerz411 <z411@omaera.org>
Sun, 18 Apr 2021 22:02:21 +0000 (18:02 -0400)
qcsrc/client/hud/panel/score.qc

index e06d9eee89919db629da69a4a321e39640086991..3046335ca6ced612cc99a364384444121c650e79 100644 (file)
@@ -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)