diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-29 01:40:16 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-29 01:40:16 +0000 |
commit | 27ed2f75c6264e72a4afafbd105f624f6b3b5724 (patch) | |
tree | 35b3ac296afc01b88de1bc5600581babf32b2d9e /Northstar.CustomServers | |
parent | 4fe3ce1900f0197f9a41d0b54d22079cf149dbeb (diff) | |
download | NorthstarMods-27ed2f75c6264e72a4afafbd105f624f6b3b5724.tar.gz NorthstarMods-27ed2f75c6264e72a4afafbd105f624f6b3b5724.zip |
fix classic_mp 0 crashing if players are alive
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut index 2f16379e..63ecbf68 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut @@ -183,6 +183,10 @@ void function GameStateEnter_Prematch() void function StartGameWithoutClassicMP() { + foreach ( entity player in GetPlayerArray() ) + if ( IsAlive( player ) ) + player.Die() + WaitFrame() // wait for callbacks to finish // need these otherwise game will complain |