aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/gamemodes
diff options
context:
space:
mode:
authoralt4 <north4mp@gmail.com>2022-01-27 20:23:01 +0100
committerBarichello <artur@barichello.me>2022-01-28 19:49:40 -0300
commitbb1f8b19c7e8a4369bd29196049c65e1330afe58 (patch)
treeb9df10b2d40382bb54178c8e584db3d526fff945 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes
parentcca41c857da003aa31aa43feec090c1f0c4381e2 (diff)
downloadNorthstarMods-bb1f8b19c7e8a4369bd29196049c65e1330afe58.tar.gz
NorthstarMods-bb1f8b19c7e8a4369bd29196049c65e1330afe58.zip
Reset flag state on creation
Again, preventing half-time issues
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ctf.nut1
1 files changed, 1 insertions, 0 deletions
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 <- []