aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-29 02:13:26 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-29 02:13:26 +0000
commite8f67265e817bdca167fbb9970327588501be580 (patch)
treede1a5f60c67517263a294f94e397b7d78c5825fe /Northstar.Custom/mod/scripts/vscripts
parentbbdfd874e2f6a3ad1c72c123879bdc29299bc669 (diff)
downloadNorthstarMods-e8f67265e817bdca167fbb9970327588501be580.tar.gz
NorthstarMods-e8f67265e817bdca167fbb9970327588501be580.zip
fix burnmeter and fastball crashes
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut6
1 files changed, 6 insertions, 0 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut
index 5f2e6adc..2a137744 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut
@@ -107,6 +107,12 @@ void function AnimateBuddy( entity buddy )
buddy.WaitSignal( "fastball_release" )
wait 5.0
+
+ // clear any players off bt to avoid potential crash which can supposedly happen even though i've never seen it happen
+ foreach ( entity player in GetPlayerArray() )
+ if ( player.GetParent() == buddy )
+ player.ClearParent()
+
buddy.Destroy()
}