aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-25 18:13:54 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-25 18:13:54 +0000
commit54cd96aed5b20912f60983bb5e77e67c261f32d8 (patch)
tree22de8232eb1cb4be51ff0237ffed6636e2381960 /Northstar.CustomServers/mod/scripts/vscripts/mp
parentbb6f8e68fb286dcb9a042d667d73eafd1340342a (diff)
downloadNorthstarMods-54cd96aed5b20912f60983bb5e77e67c261f32d8.tar.gz
NorthstarMods-54cd96aed5b20912f60983bb5e77e67c261f32d8.zip
fix wargames evac issues
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut17
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 )
{