From 27ed2f75c6264e72a4afafbd105f624f6b3b5724 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Wed, 29 Dec 2021 01:40:16 +0000 Subject: fix classic_mp 0 crashing if players are alive --- Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Northstar.CustomServers/mod') 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 -- cgit v1.2.3