aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-29 01:40:16 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-29 01:40:16 +0000
commit27ed2f75c6264e72a4afafbd105f624f6b3b5724 (patch)
tree35b3ac296afc01b88de1bc5600581babf32b2d9e /Northstar.CustomServers/mod/scripts/vscripts/mp
parent4fe3ce1900f0197f9a41d0b54d22079cf149dbeb (diff)
downloadNorthstarMods-27ed2f75c6264e72a4afafbd105f624f6b3b5724.tar.gz
NorthstarMods-27ed2f75c6264e72a4afafbd105f624f6b3b5724.zip
fix classic_mp 0 crashing if players are alive
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut4
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