From 2e763a2fefaa3e22e0fb2bd9089d2024b5f85b24 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 10 Sep 2018 16:00:18 +0200 Subject: [PATCH] Darken eliminated players in the last row of the scoreboard when it lists more than one player --- qcsrc/client/hud/panel/scoreboard.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 5898f47aa..5cd0fba73 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1025,6 +1025,12 @@ vector Scoreboard_DrawOthers(vector item_pos, vector rgb, int this_team, entity field_pos.x += fieldpadding + (max(fieldsize, min_fieldsize) - fieldsize) * 0.5; drawstring(field_pos, field, hud_fontsize, sbt_field_rgb, sbt_fg_alpha, DRAWFLAG_NORMAL); } + if(pl.eliminated) + { + h_size.x = column_width + hud_fontsize.x * 0.25; + h_size.y = hud_fontsize.y; + drawfill(pos - hud_fontsize.x * 0.25 * eX, h_size, '0 0 0', 0.5 * panel_fg_alpha, DRAWFLAG_NORMAL); + } pos.x += column_width; pos.x += hud_fontsize.x; } -- 2.39.2