From 908766a551258afb74e1a95d4e5636aee69d35bc Mon Sep 17 00:00:00 2001 From: neon Date: Sun, 22 Jul 2018 16:14:39 +0200 Subject: [PATCH] added cvar to determine winning team when time runs out --- src/zr/roundend.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zr/roundend.inc b/src/zr/roundend.inc index 5827724..50298b8 100644 --- a/src/zr/roundend.inc +++ b/src/zr/roundend.inc @@ -326,8 +326,11 @@ public Action:RoundEndTimer(Handle:timer) return; } - // Terminate the round with humans as the winner. - RoundEndTerminateRound(ROUNDEND_DELAY, HumansWin); + new bool:zombies_win = GetConVarBool(g_hCvarsList[CVAR_ROUNDEND_ZOMBIES_WIN]); + if (zombies_win) + RoundEndTerminateRound(ROUNDEND_DELAY, ZombiesWin); + else + RoundEndTerminateRound(ROUNDEND_DELAY, HumansWin); } /**