bind F2 vno
bind F3 spec
bind F4 ready
-bind F5 scoreboard_team_selection
+bind F5 team_selection_show
bind F6 team_auto
bind F7 menu_showsandboxtools
bind F8 "quickmenu"
bind JOY6 "+fire"
bind JOY7 "+zoom"
bind JOY8 "dropweapon"
-bind JOY9 "scoreboard_team_selection"
+bind JOY9 team_selection_show
bind JOY10 "+show_info"
bind JOY11 "+showscores"
bind JOY12 "+con_chat_maximize"
alias scoreboard_columns_set "qc_cmd_cl hud scoreboard_columns_set ${* ?}"
set _scoreboard_team_selection_available 0 // set to 1 by CSQC
-alias _menu_showteamselect1 "_scoreboard_team_selection 1"
-alias _menu_showteamselect0 "menu_showteamselect"
-alias scoreboard_team_selection "_menu_showteamselect$_scoreboard_team_selection_available"
+alias _team_selection_show1 "_scoreboard_team_selection 1"
+alias _team_selection_show0 menu_showteamselect
+alias team_selection_show "_team_selection_show$_scoreboard_team_selection_available"
// ========================================================
// cmd (client-to-server command) - server/command/cmd.qc
void CSQC_Init()
{
- cvar_set("_scoreboard_team_selection_available", "1");
- cvar_set("_scoreboard_team_selection", "0"); // in case it has been left set to 1
-
prvm_language = strzone(cvar_string("prvm_language"));
#ifdef WATERMARK
if(autocvar_cl_lockview)
cvar_set("cl_lockview", "0");
+ if (cvar_type("_scoreboard_team_selection_available") & CVAR_TYPEFLAG_EXISTS)
+ cvar_settemp("_scoreboard_team_selection_available", "1");
+ cvar_set("_scoreboard_team_selection", "0"); // in case it has been left set to 1
+
gametype = NULL;
postinit = false;
// CSQC_Shutdown : Called every time the CSQC code is shutdown (changing maps, quitting, etc)
void Shutdown()
{
- cvar_set("_scoreboard_team_selection_available", "0");
WarpZone_Shutdown();
delete(teams);
if (!teamplay || autocvar_g_campaign || autocvar_g_balance_teams || this.team_selected || (CS(this).wasplayer && autocvar_g_changeteam_banned) || Player_HasRealForcedTeam(this))
return false;
if (frametime) // once per frame is more than enough
- stuffcmd(this, "scoreboard_team_selection\n");
+ stuffcmd(this, "_scoreboard_team_selection 1\n");
return true;
}
void Join(entity this)