float ctf_score_value(string parameter)
{
- if(autocvar_g_ctf_win_mode != 2)
+ if(g_ctf_win_mode != 2)
return cvar(strcat("g_ctf_personal", parameter));
else
return cvar(strcat("g_ctf_flag", parameter));
float g_warmup_limit;
float g_warmup_allguns;
float g_warmup_allow_timeout;
+float g_ctf_win_mode;
float g_ctf_ignore_frags;
float g_ctf_reverse;
float g_race_qualifying;
{
float sp_score, sp_caps;
sp_score = sp_caps = 0;
- switch(autocvar_g_ctf_win_mode)
+ switch(g_ctf_win_mode)
{
case 0: // caps only
sp_caps = SFL_SORT_PRIO_PRIMARY;
game = GAME_CTF;
gamemode_name = "Capture the Flag";
ActivateTeamplay();
+ g_ctf_win_mode = autocvar_g_ctf_win_mode;
g_ctf_ignore_frags = autocvar_g_ctf_ignore_frags;
- if(autocvar_g_ctf_win_mode == 2)
+ if(g_ctf_win_mode == 2)
{
fraglimit_override = autocvar_g_ctf_capture_limit;
leadlimit_override = autocvar_g_ctf_capture_leadlimit;