Quote:
|
Originally Posted by NVShacker
You know, since this topic is somehow alive, you could just give it angry mob logic and give SlavesHaveFreeWill = Yes to a dummy object containing them.
|
I haven't tried that method yet so I can't comment on that one. But the way I got it going was to create a dummy unit with no model & apply the Tunnel Network Spawn Bahavior to it. Then give it a max lifetime of 1 sec. Here's the code just incase Full Circle wants to use it. I've tried it and it works great. The only parameters you can change are the Spawn Template & the Voice Create.
GLAInfantry.ini. eg.
;------------------------------------------------------------------------------
Object GLAAssaultSquad
ButtonImage = SSGLAAmbush3
Draw = W3DModelDraw ModuleTag_01
OkToChangeModelColor = Yes
DefaultConditionState
Model = NONE
End
End
Side = GLA
EditorSorting = SYSTEM
TransportSlotCount = 0
ArmorSet
Conditions = None
Armor = HumanArmor
DamageFX = InfantryDamageFX
End
Prerequisites
Object = GLABarracks
End
BuildCost = 900
BuildTime = 5.0 ;in seconds
; *** AUDIO Parameters ***
UnitSpecificSounds
VoiceCreate = RebelVoiceCreate
End
; *** ENGINEERING Parameters ***
RadarPriority = NOT_ON_RADAR
KindOf = PRELOAD UNATTACKABLE
Body = ActiveBody ModuleTag_02
MaxHealth = 1.0
InitialHealth = 1.0
End
Behavior = AIUpdateInterface ModuleTag_03
AutoAcquireEnemiesWhenIdle = Yes
End
Locomotor = SET_NORMAL BasicHumanLocomotor
Behavior = PhysicsBehavior ModuleTag_05
Mass = 5.0
End
Behavior = SquishCollide ModuleTag_11
;nothing
End
Behavior = SpawnBehavior ModuleTag_07
SpawnNumber = 5
SpawnReplaceDelay = 9999
SpawnTemplateName = GLAInfantryTunnelDefender
SpawnTemplateName = GLAInfantryTunnelDefender
SpawnTemplateName = GLAInfantryRebel
SpawnTemplateName = GLAInfantryRebel
SpawnTemplateName = GLAInfantryTerrorist
OneShot = Yes
CanReclaimOrphans = No
SlavesHaveFreeWill = Yes
End
Behavior = DefaultProductionExitUpdate ModuleTag_06
UnitCreatePoint = X: 10.0 Y: 0.0 Z:0.0
NaturalRallyPoint = X: 35.0 Y: 0.0 Z:0.0
End
Behavior = TunnelContain ModuleTag_05
End
Behavior = DeletionUpdate ModuleTag_01
MinLifetime = 1000
MaxLifetime = 1000
End
Geometry = CYLINDER
GeometryMajorRadius = 1.0
GeometryMinorRadius = 1.0
GeometryHeight = 1.0
GeometryIsSmall = Yes
Shadow = SHADOW_DECAL
ShadowSizeX = 1
ShadowSizeY = 1
ShadowTexture = ShadowI
BuildCompletion = APPEARS_AT_RALLY_POINT
End
CommandButton.ini
CommandButton Command_ConstructGLAAssaultSquad
Command = UNIT_BUILD
Object = GLAAssaultSquad
TextLabel = CONTROLBAR:ConstructGLAAssaultSquad
ButtonImage = SSGLAAmbush3
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipConstructGLAAssaultSquad
End
CommandSet.ini
10 = Command_ConstructGLAAssaultSquad