From bb1f8b19c7e8a4369bd29196049c65e1330afe58 Mon Sep 17 00:00:00 2001 From: alt4 Date: Thu, 27 Jan 2022 20:23:01 +0100 Subject: Reset flag state on creation Again, preventing half-time issues --- Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut | 1 + 1 file changed, 1 insertion(+) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut index fa6643ab..e28063a1 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut @@ -221,6 +221,7 @@ void function CreateFlags() flag.SetModel( CTF_FLAG_MODEL ) flag.SetOrigin( spawn.GetOrigin() + < 0, 0, base.GetBoundingMaxs().z * 2 > ) // ensure flag doesn't spawn clipped into geometry flag.SetVelocity( < 0, 0, 1 > ) + SetFlagStateForTeam( flag.GetTeam(), eFlagState.None ) // reset flag state to prevent half-time oddities flag.s.canTake <- true flag.s.playersReturning <- [] -- cgit v1.2.3