diff options
author | LightBlueCube <115393812+LightBlueCube@users.noreply.github.com> | 2024-09-03 07:49:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 01:49:15 +0200 |
commit | 34e5b52282a7d3619e032a928d16058cc7044678 (patch) | |
tree | dbe3228785b19cfe2f7356bdd5b35e1ecebb8c34 | |
parent | 957f6a3ac6ff0cca3168e15a362cee80c8e9dcf0 (diff) | |
download | NorthstarMods-1.27.7.tar.gz NorthstarMods-1.27.7.zip |
Prevent rare crash when player disconnects during War Games intro (#856)v1.27.7-rc3v1.27.7
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut index 8d859ba6..376c5b7c 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut @@ -231,6 +231,8 @@ void function OnPrematchStart() void function PlayerWatchesWargamesIntro( entity player ) { + player.EndSignal( "OnDestroy" ) + if ( IsAlive( player ) ) player.Die() @@ -253,8 +255,6 @@ void function PlayerWatchesWargamesIntro( entity player ) // we need to wait a frame if we killed ourselves to spawn into this, so just easier to do it all the time to remove any weirdness WaitFrame() - - player.EndSignal( "OnDestroy" ) player.EndSignal( "OnDeath" ) int factionTeam = ConvertPlayerFactionToIMCOrMilitiaTeam( player ) |