From 54cd96aed5b20912f60983bb5e77e67c261f32d8 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Tue, 25 Jan 2022 18:13:54 +0000 Subject: fix wargames evac issues --- .../mod/scripts/vscripts/mp/levels/mp_wargames.nut | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'Northstar.CustomServers') 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 da8fad36..bd0f2d62 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut @@ -14,12 +14,7 @@ struct { void function CodeCallback_MapInit() { - AddEvacNode( GetEnt( "evac_location1" ) ) - AddEvacNode( GetEnt( "evac_location2" ) ) - AddEvacNode( GetEnt( "evac_location3" ) ) - AddEvacNode( GetEnt( "evac_location4" ) ) - - SetEvacSpaceNode( GetEnt( "end_spacenode" ) ) + AddCallback_EntitiesDidLoad( AddEvacNodes ) // dissolve effects AddDeathCallback( "player", WargamesDissolveDeadEntity ) @@ -36,6 +31,16 @@ void function CodeCallback_MapInit() ClassicMP_SetLevelIntro( WargamesIntroSetup, 20.0 ) } +void function AddEvacNodes() +{ + AddEvacNode( GetEnt( "evac_location1" ) ) + AddEvacNode( GetEnt( "evac_location2" ) ) + AddEvacNode( GetEnt( "evac_location3" ) ) + AddEvacNode( GetEnt( "evac_location4" ) ) + + SetEvacSpaceNode( GetEnt( "end_spacenode" ) ) +} + // dissolve effects void function WargamesDissolveDeadEntity( entity deadEnt, var damageInfo ) { -- cgit v1.2.3