Jump to content


Photo

slave units


  • Please log in to reply
3 replies to this topic

#1 under-mountain

under-mountain
  • New Members
  • 66 posts

Posted 05 June 2010 - 03:21 PM

I've read the tutorial about how to make Aragorn coming with 10 Gondor Soldier bodyguards (when you build him) but it doesn't work for bfme II or rotwk I think. Anyone know how we can make it work for bfme II or rotwk? thanks n.

#2 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 05 June 2010 - 03:39 PM

I've read the tutorial about how to make Aragorn coming with 10 Gondor Soldier bodyguards (when you build him) but it doesn't work for bfme II or rotwk I think. Anyone know how we can make it work for bfme II or rotwk? thanks n.

First you need to create the bodyGuard SLAVE
Put this at the very end of GondorFighter.ini
and put a reference in explevels.ini

CODE

//------------------------------------------------------------------------------
ChildObject GondorFighter_B GondorFighter
IsTrainable = No
CommandPoints = 0
EquivalentTo = GondorFighter

RadarPriority = UNIT
KindOf = PRELOAD CAN_CAST_REFLECTIONS INFANTRY PATH_THROUGH_EACH_OTHER SCORE CAN_BE_REPULSED

CommandSet = EmptyCommandSet

Body = ActiveBody ModuleTag_02
CheerRadius = EMOTION_CHEER_RADIUS
MaxHealth = 500 ;GONDOR_TOWERGUARD_HEALTH
MaxHealthDamaged = GONDOR_TOWERGUARD_HEALTH_DAMAGED
BurningDeathBehavior = Yes
BurningDeathFX = FX_InfantryBurningFlame
End


Behavior = SlavedUpdate ModuleTag_Slave
GuardMaxRange = 100
GuardWanderRange = 100
UseSlaverAsControlForEvaObjectSightedEvents = No
DieOnMastersDeath = Yes
FadeOutRange = 0
FadeTime = 1000 //in msec
End




End

Then put this in Aragorns's ini

CODE


Behavior = QueueProductionExitUpdate ModuleTag_017
UnitCreatePoint = X:-5.0 Y:-5.0 Z:0.0
NaturalRallyPoint = X:10.0 Y:10.0 Z:0.0
ExitDelay = STANDARD_HORDE_EXIT_DELAY
PlacementViewAngle = 45
End

Behavior = SpawnBehavior ModuleTag_Spawn
SpawnNumber = 10
InitialBurst = 1
SpawnTemplateName = GondorFighter_B
SpawnReplaceDelay = 4500
CanReclaimOrphans = Yes
End

That should do it ... Repeat for other units eg. Archers / Towerguards

#3 under-mountain

under-mountain
  • New Members
  • 66 posts

Posted 05 June 2010 - 06:06 PM

About Aragorn. Do I have to put the codes after the "ART PARAMETERS" sentence or after the whole stuff that follows that specific sentence?

#4 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 05 June 2010 - 08:57 PM

About Aragorn. Do I have to put the codes after the "ART PARAMETERS" sentence or after the whole stuff that follows that specific sentence?

Any where as long as its not interfering with other code blocks ...

Just put it above the

;///////////////////
; AISpecialPowers
;///////////////////

To be safe




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users