aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut9
1 files changed, 7 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut
index 542db4d5..da4e50f5 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut
@@ -12,7 +12,6 @@ global struct HarvesterStruct {
bool harvesterShieldDown
float harvesterDamageTaken
bool havesterWasDamaged
-
}
HarvesterStruct function SpawnHarvester( vector origin, vector angles, int health, int shieldHealth, int team )
@@ -30,14 +29,20 @@ HarvesterStruct function SpawnHarvester( vector origin, vector angles, int healt
harvester.EnableAttackableByAI( 30, 0, AI_AP_FLAG_NONE )
SetObjectCanBeMeleed( harvester, false )
SetTeam(harvester,team)
-
+ // create dangerous area to all AI because we dont want any AI clipping into the harvester ever
+ // radius of 90 cos thats like 7.5 metres? AI shouldnt rally need to get closer than that (except nuke titans and stalkers)
+ // stalkers dont care about dangerous areas
+ // nuke titan detonation radius is larger than 90
+ AI_CreateDangerousArea_Static( harvester, null, 90, TEAM_INVALID, true, true, origin )
DispatchSpawn( harvester )
+ SetGlobalNetEnt( "FD_activeHarvester", harvester )
entity blackbox = CreatePropDynamic( MODEL_HARVESTER_TOWER_COLLISION, origin, angles, 0 )
blackbox.Hide()
blackbox.Solid()
// blackbox.kv.CollisionGroup = TRACE_COLLISION_GROUP_PLAYER
+ ToggleNPCPathsForEntity( blackbox, false )
entity rings = CreatePropDynamic( MODEL_HARVESTER_TOWER_RINGS, origin, angles, 6 )
thread PlayAnim( rings, "generator_cycle_fast" )