From 469979f200fa58f38dc28221b6c34623112bd5e4 Mon Sep 17 00:00:00 2001 From: z411 Date: Sun, 18 Apr 2021 17:57:58 -0400 Subject: [PATCH] Using progressbar CVARs for duel spectator HUD --- qcsrc/client/hud/panel/spect.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/spect.qc b/qcsrc/client/hud/panel/spect.qc index 2c153b925..3bdede227 100644 --- a/qcsrc/client/hud/panel/spect.qc +++ b/qcsrc/client/hud/panel/spect.qc @@ -216,7 +216,7 @@ void HUD_SpectHUD_drawDuelScore(vector pos, entity pl, bool invert) else tmp.x += teamscore_size.x; - drawfill(tmp, vec2(health, health_sz.y), '1 0 0', 0.7, DRAWFLAG_NORMAL); + drawfill(tmp, vec2(health, health_sz.y), autocvar_hud_progressbar_health_color, 0.7, DRAWFLAG_NORMAL); } if(armor) { @@ -228,7 +228,7 @@ void HUD_SpectHUD_drawDuelScore(vector pos, entity pl, bool invert) else tmp.x += teamscore_size.x; - drawfill(tmp, vec2(armor, armor_sz.y), '0 1 0', 0.7, DRAWFLAG_NORMAL); + drawfill(tmp, vec2(armor, armor_sz.y), autocvar_hud_progressbar_armor_color, 0.7, DRAWFLAG_NORMAL); } // Player name -- 2.39.2