From 7f2fb0bbc329631bc12e90b1124112e84f652aa2 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 19 May 2023 16:46:53 +0200 Subject: [PATCH] hud_panel_scoreboard_ping_* cvars: fix typos in 2 cvar names, remove the redundant _milliseconds suffix and improve descriptions --- _hud_common.cfg | 16 ++++++++-------- qcsrc/client/hud/panel/scoreboard.qc | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/_hud_common.cfg b/_hud_common.cfg index 76d4480e5..95f1e9758 100644 --- a/_hud_common.cfg +++ b/_hud_common.cfg @@ -143,14 +143,14 @@ seta hud_panel_scoreboard_spectators_aligned 0 "align spectators in columns" seta hud_panel_scoreboard_spectators_position 1 "spectator list position (0 = before accuracy and itemstats, 1 = before rankings, 2 = after rankings, 3 = after map stats)" seta hud_panel_scoreboard_minwidth 0.6 "minimum width of the scoreboard" seta hud_panel_scoreboard_team_size_position 0 "where to show the team size (0 = do not show, 1 = left of scoreboard, 2 = right of scoreboard), will move team scores to the other side if necessary" -seta hud_panel_scoreboard_ping_best_milliseconds 0 "the value for the best ping value" -seta hud_panel_scoreboard_ping_medium_milliseconds_milliseconds 70 "the value for medium ping value" -seta hud_panel_scoreboard_ping_high_milliseconds 100 "the value for high ping value" -seta hud_panel_scoreboard_ping_worst_milliseconds 150 "the value for worst ping value" -seta hud_panel_scoreboard_ping_best_color "0 1 0" "the color for best possible ping values" -seta hud_panel_scoreboard_ping_med_color "1 1 0" "the color for medium ping values" -seta hud_panel_scoreboard_ping_high_color "1 0.5 0" "the color for high ping values" -seta hud_panel_scoreboard_ping_worst_color "1 0 0" "the color for worst ping values" +seta hud_panel_scoreboard_ping_best 0 "use best_color for this ping" +seta hud_panel_scoreboard_ping_medium 70 "use medium_color for this ping" +seta hud_panel_scoreboard_ping_high 100 "use high_color for this ping" +seta hud_panel_scoreboard_ping_worst 150 "use worst_color for this ping" +seta hud_panel_scoreboard_ping_best_color "0 1 0" "color for best ping" +seta hud_panel_scoreboard_ping_medium_color "1 1 0" "color for medium ping" +seta hud_panel_scoreboard_ping_high_color "1 0.5 0" "color for high ping" +seta hud_panel_scoreboard_ping_worst_color "1 0 0" "color for worst ping" seta hud_panel_scoreboard_playerid 0 "show player id (server entity number) next to player's name" seta hud_panel_scoreboard_playerid_prefix "#" "player id prefix" seta hud_panel_scoreboard_playerid_suffix " " "player id suffix" diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 6b5795c3a..8d6fcee56 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -982,18 +982,18 @@ string Scoreboard_GetName(entity pl) return entcs_GetName(pl.sv_entnum); } -int autocvar_hud_panel_scoreboard_ping_best_milliseconds = 0; -int autocvar_hud_panel_scoreboard_ping_medium_milliseconds = 70; -int autocvar_hud_panel_scoreboard_ping_high_milliseconds = 100; -int autocvar_hud_panel_scoreboard_ping_worst_milliseconds = 150; +int autocvar_hud_panel_scoreboard_ping_best = 0; +int autocvar_hud_panel_scoreboard_ping_medium = 70; +int autocvar_hud_panel_scoreboard_ping_high = 100; +int autocvar_hud_panel_scoreboard_ping_worst = 150; vector autocvar_hud_panel_scoreboard_ping_best_color = '0 1 0'; vector autocvar_hud_panel_scoreboard_ping_medium_color = '1 1 0'; vector autocvar_hud_panel_scoreboard_ping_high_color = '1 0.5 0'; vector autocvar_hud_panel_scoreboard_ping_worst_color = '1 0 0'; -#define PING_BEST autocvar_hud_panel_scoreboard_ping_best_milliseconds -#define PING_MED autocvar_hud_panel_scoreboard_ping_medium_milliseconds -#define PING_HIGH autocvar_hud_panel_scoreboard_ping_high_milliseconds -#define PING_WORST autocvar_hud_panel_scoreboard_ping_worst_milliseconds +#define PING_BEST autocvar_hud_panel_scoreboard_ping_best +#define PING_MED autocvar_hud_panel_scoreboard_ping_medium +#define PING_HIGH autocvar_hud_panel_scoreboard_ping_high +#define PING_WORST autocvar_hud_panel_scoreboard_ping_worst #define COLOR_BEST autocvar_hud_panel_scoreboard_ping_best_color #define COLOR_MED autocvar_hud_panel_scoreboard_ping_medium_color #define COLOR_HIGH autocvar_hud_panel_scoreboard_ping_high_color -- 2.39.2