]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow showing ALL scoreboard scores (even the ones derived from other scores: sum...
authorterencehill <piuntn@gmail.com>
Mon, 19 Apr 2021 13:25:03 +0000 (15:25 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 19 Apr 2021 13:25:03 +0000 (15:25 +0200)
qcsrc/client/hud/panel/scoreboard.qc

index 24b6efe6ca582733cfc9303ae980756a08052d1c..9857960440fd79f7da6361eb7ccdd1822890cff9 100644 (file)
@@ -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)