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.gnut10
1 files changed, 7 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut
index e5e60bf2..3ba6a6db 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/_harvester.gnut
@@ -24,14 +24,18 @@ HarvesterStruct function SpawnHarvester(vector origin,vector angles,int health,i
harvester.SetHealth(health)
harvester.SetShieldHealthMax(shieldHealth)
harvester.SetShieldHealth(shieldHealth)
+ harvester.EnableAttackableByAI( 30, 0, AI_AP_FLAG_NONE )
+ //harvester.SetIsValidAIMeleeTarget(false)
SetTeam(harvester,team)
DispatchSpawn( harvester )
SetGlobalNetEnt("FD_activeHarvester",harvester)
- // entity blackbox = CreatePropDynamic(MODEL_HARVESTER_TOWER_COLLISION,info_target.GetOrigin(),info_target.GetAngles(),6)
- // blackbox.Hide()
- // blackbox.kv.CollisionGroup = TRACE_COLLISION_GROUP_PLAYER
+ 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" )