diff options
author | RoyalBlue1 <malte.hoermeyer@web.de> | 2022-07-17 03:25:09 +0200 |
---|---|---|
committer | RoyalBlue1 <malte.hoermeyer@web.de> | 2022-07-17 03:25:09 +0200 |
commit | ee1644422ea43574aa1b151b75b482a623fe9410 (patch) | |
tree | d3a424402f1a97497627b46e16c8c6f0e5fd0655 /Northstar.CustomServers/mod/scripts/vscripts/gamemodes | |
parent | 69976de61288fc2a83d531c1ccfd90801f884998 (diff) | |
download | NorthstarMods-ee1644422ea43574aa1b151b75b482a623fe9410.tar.gz NorthstarMods-ee1644422ea43574aa1b151b75b482a623fe9410.zip |
Add Revive to Turrets
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/gamemodes')
3 files changed, 12 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut index aefb556b..068a41f0 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut @@ -76,6 +76,7 @@ void function GamemodeFD_Init() AddDamageCallback( "player", DamageScaleByDifficulty ) AddDamageCallback( "npc_titan", DamageScaleByDifficulty ) AddDamageCallback( "npc_turret_sentry", DamageScaleByDifficulty ) + AddDamageCallback( "npc_turret_sentry",RevivableTurret_DamageCallback) //Spawn Callbacks AddSpawnCallback( "npc_titan", HealthScaleByDifficulty ) AddSpawnCallback( "npc_super_spectre", HealthScaleByDifficulty ) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut index 45e3b296..e5fda467 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_events.nut @@ -84,6 +84,9 @@ void function executeWave() wait 5 //incase droppod is last event so all npc are spawned waitUntilLessThanAmountAlive(0) waitUntilLessThanAmountAlive_expensive(0) + + foreach(entity ent in GetEntArrayByClass_Expensive("npc_turret_sentry")) + RevivableTurret_Revive(ent) } bool function allEventsExecuted(int waveIndex) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_nav.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_nav.nut index 9fa04151..06753f78 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_nav.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd_nav.nut @@ -2,6 +2,7 @@ global function singleNav_thread global function SquadNav_Thread global function droneNav_thread global function getRoute +global function Dev_MarkRoute @@ -259,4 +260,11 @@ array<entity> function getRoute(string routeName) currentNode = currentNode[0].GetLinkEntArray() } return ret +} + +void function Dev_MarkRoute(string routename){ + foreach(entity e in getRoute(routename)) + { + DebugDrawSphere(e.GetOrigin(),30.0,255,0,255,false,40) + } }
\ No newline at end of file |