This is unnecessary because it's duplicating the same behaviour already
implemented in DP (and FTEQW), just with a different variable name.
It should be noted that a QC command implementation will be
slower than an engine implementation.
// Please add client commands to the function above this, as this is only for special reasons.
// NOTE: showaccuracy is kept as legacy command
#define CONSOLE_COMMANDS_NORMAL() \
// Please add client commands to the function above this, as this is only for special reasons.
// NOTE: showaccuracy is kept as legacy command
#define CONSOLE_COMMANDS_NORMAL() \
- CONSOLE_COMMAND("+showscores", { scoreboard_showscores = true; }) \
- CONSOLE_COMMAND("-showscores", { scoreboard_showscores = false; }) \
CONSOLE_COMMAND("+showaccuracy", { }) \
CONSOLE_COMMAND("-showaccuracy", { }) \
/* nothing */
CONSOLE_COMMAND("+showaccuracy", { }) \
CONSOLE_COMMAND("-showaccuracy", { }) \
/* nothing */
float race_othercheckpointdelta;
float race_othercheckpointlapsdelta;
string race_othercheckpointenemy;
float race_othercheckpointdelta;
float race_othercheckpointlapsdelta;
string race_othercheckpointenemy;
-float scoreboard_showscores_force;
+bool scoreboard_showscores_force;
float race_status;
string race_status_name;
float race_myrank;
float race_status;
string race_status_name;
float race_myrank;
void HUD_Scoreboard_UI_Disable()
{
scoreboard_ui_disabling = true;
void HUD_Scoreboard_UI_Disable()
{
scoreboard_ui_disabling = true;
- scoreboard_showscores = false;
}
void HUD_Scoreboard_UI_Disable_Instantly()
}
void HUD_Scoreboard_UI_Disable_Instantly()
return false;
else if (HUD_Radar_Clickable())
return false;
return false;
else if (HUD_Radar_Clickable())
return false;
- else if (scoreboard_showscores)
+ else if (sb_showscores) // set by +showscores engine command
return true;
else if (intermission == 1)
return true;
return true;
else if (intermission == 1)
return true;
string autocvar_scoreboard_columns;
float autocvar_hud_panel_scoreboard_namesize = 15;
string autocvar_scoreboard_columns;
float autocvar_hud_panel_scoreboard_namesize = 15;
-bool scoreboard_showscores;
+bool sb_showscores; // set by +showscores engine command
bool scoreboard_active;
float scoreboard_fade_alpha;
bool scoreboard_active;
float scoreboard_fade_alpha;