From: z411 Date: Fri, 14 Aug 2020 09:31:45 +0000 (-0400) Subject: CA: Add round stop configuration X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be7d84d22d848e039e13c426c1aafec1237749aa;p=xonotic%2Fxonotic-data.pk3dir.git CA: Add round stop configuration --- diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc index 0ecb13c45..1992f14b9 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc +++ b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc @@ -72,7 +72,8 @@ float CA_CheckWinner() FOREACH_CLIENT(IS_PLAYER(it), { nades_Clear(it); }); allowed_to_spawn = false; - game_stopped = true; + if(autocvar_g_ca_round_stop) + game_stopped = true; round_handler_Init(5, autocvar_g_ca_warmup, autocvar_g_ca_round_timelimit); return 1; } @@ -99,7 +100,8 @@ float CA_CheckWinner() } allowed_to_spawn = false; - game_stopped = true; + if(autocvar_g_ca_round_stop) + game_stopped = true; round_handler_Init(5, autocvar_g_ca_warmup, autocvar_g_ca_round_timelimit); FOREACH_CLIENT(IS_PLAYER(it), { nades_Clear(it); }); diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qh b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qh index f6420b852..acc6dfb89 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qh +++ b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qh @@ -8,6 +8,7 @@ int autocvar_g_ca_point_limit; int autocvar_g_ca_point_leadlimit; float autocvar_g_ca_round_timelimit; +bool autocvar_g_ca_round_stop; bool autocvar_g_ca_team_spawns; //int autocvar_g_ca_teams; int autocvar_g_ca_teams_override;