From 401bc7beda00f5237f9033cc7fb8c300c17944a4 Mon Sep 17 00:00:00 2001 From: Barichello Date: Sat, 5 Feb 2022 01:11:30 -0300 Subject: Fix CTF halftime flag swap on mp_forwardbase_kodai and mp_lf_meadow --- .../mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut index c8ff7e9f3..a0a7243b1 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut @@ -205,7 +205,7 @@ void function CreateFlags() // likely this is because respawn uses distance checks from spawns to check this in official // but i don't like doing that so just using a list of maps to swap them on lol bool switchedSides = HasSwitchedSides() == 1 - bool shouldSwap = SWAP_FLAG_MAPS.contains( GetMapName() ) ? !switchedSides : switchedSides + bool shouldSwap = SWAP_FLAG_MAPS.contains( GetMapName() ) || switchedSides int flagTeam = spawn.GetTeam() if ( shouldSwap ) -- cgit v1.2.3