From a122b71e81f4b7add343a8a3c282682b7823a458 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 19 Apr 2021 15:25:03 +0200 Subject: [PATCH] Allow showing ALL scoreboard scores (even the ones derived from other scores: sum, kdratio and frags) with 'scoreboard_columns_set ALL' --- qcsrc/client/hud/panel/scoreboard.qc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 24b6efe6c..985796044 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -436,9 +436,16 @@ void Cmd_Scoreboard_SetFields(int argc) cvar_set("scoreboard_columns", SCOREBOARD_DEFAULT_COLUMNS); argc = tokenizebyseparator(strcat("0 1 ", SCOREBOARD_DEFAULT_COLUMNS), " "); } - else if(argv(2) == "all") + else if(argv(2) == "all" || argv(2) == "ALL") { - string s = "ping pl name |"; // scores without a label + string s = "ping pl name |"; // scores without label (not really scores) + if(argv(2) == "ALL") + { + // scores without label + s = strcat(s, " ", "sum"); + s = strcat(s, " ", "kdratio"); + s = strcat(s, " ", "frags"); + } FOREACH(Scores, true, { if(it != ps_primary) if(it != ps_secondary) -- 2.39.2