From f1a07e1b01923b45f7a82c063d25b8dea5b13d53 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Sun, 5 Dec 2021 23:28:38 +0000 Subject: fixes from playtest --- .../mod/scripts/vscripts/mp/_gamestate_mp.nut | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut index 4263eb1ac..e3b252f78 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_gamestate_mp.nut @@ -314,7 +314,7 @@ void function GameStateEnter_WinnerDetermined_Threaded() if ( killcamsWereEnabled ) SetKillcamsEnabled( true ) } - else + else if ( IsRoundBased() || !ClassicMP_ShouldRunEpilogue() ) { // these numbers are temp and should really be based on consts of some kind foreach( entity player in GetPlayerArray() ) @@ -650,8 +650,11 @@ void function CleanUpEntitiesForRoundEnd() } foreach ( entity npc in GetNPCArray() ) - if ( IsAlive( npc ) ) - npc.Die() // need this because getnpcarray includes the pettitans we just killed at this point + if ( IsValid( npc ) ) + npc.Destroy() // need this because getnpcarray includes the pettitans we just killed at this point + + foreach ( entity weapon in GetEntArrayByClass_Expensive( "weaponx" ) ) + weapon.Destroy() // allow other scripts to clean stuff up too svGlobal.levelEnt.Signal( "CleanUpEntitiesForRoundEnd" ) -- cgit v1.2.3