From 92ae18981c66dfe535bbd5e04842a15549765bea Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sat, 10 Jun 2023 00:48:13 +0200 Subject: [PATCH] battle royale: show alive squad members on scores panel --- qcsrc/client/hud/panel/score.qc | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/qcsrc/client/hud/panel/score.qc b/qcsrc/client/hud/panel/score.qc index c33fce08b..333b5f4d3 100644 --- a/qcsrc/client/hud/panel/score.qc +++ b/qcsrc/client/hud/panel/score.qc @@ -4,6 +4,7 @@ #include #include #include +#include // Score (#7) @@ -32,6 +33,10 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me) int i = 0, first_pl = 0; bool me_printed = false; string s; + + if(ISGAMETYPE(BR)) + name_size = mySize.x - spacing_size; + if (autocvar__hud_configure) { float players_per_team = 0; @@ -69,9 +74,12 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me) if (team_count) score_color = Team_ColorRGB(ColorByTeam(floor((i - first_pl) / players_per_team))) * 0.8; + else if(ISGAMETYPE(BR)) + score_color = '0.0625 1 0.0625' * 0.8; // 0x0FFF0F s = textShortenToWidth(s, name_size, fontsize, stringwidth_colors); drawcolorcodedstring(pos + eX * (name_size - stringwidth(s, true, fontsize)), s, fontsize, panel_fg_alpha, DRAWFLAG_NORMAL); - drawstring(pos + eX * (name_size + spacing_size), ftos(score), fontsize, score_color, panel_fg_alpha, DRAWFLAG_NORMAL); + if(!ISGAMETYPE(BR)) + drawstring(pos + eX * (name_size + spacing_size), ftos(score), fontsize, score_color, panel_fg_alpha, DRAWFLAG_NORMAL); pos.y += fontsize.y; } return; @@ -102,7 +110,7 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me) do for (pl = players.sort_next; pl && i