diff options
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut | 17 |
1 files changed, 11 insertions, 6 deletions
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 ) { |