Thread: A few things.
View Single Post
Old 03-06-2008, 07:29 PM   #5 (permalink)
beng
Senior Member
 
Join Date: Jan 2008
Posts: 274
Default

About the troop crawler contents, just use ObjectCreationUpgrade (see humvee battle drone) to OCL the crew in the vehicle (a la Overlord Gattling cannon OCL) and use GrantUpgradeCreate to grant the Upgrade needed.
Here is a map.ini code:

Code:
ObjectCreationList OCL_TroopCrawlerCrew
  CreateObject
    ObjectNames = ChinaInfantryTankHunter
    Count       = 3
    ContainInsideSourceObject = Yes
  End
  CreateObject
    ObjectNames = ChinaInfantryRedGuard
    Count       = 5
    ContainInsideSourceObject = Yes
  End
End

;------------------------------------------------------------------------------
Object ChinaVehicleTroopCrawler

 ReplaceModule ModuleTag_06
  Behavior = TransportContain ModuleTag_06_Override
    Slots                 = 8
    ;InitialPayload        = ChinaInfantryRedguard 8
    ScatterNearbyOnExit   = No
    HealthRegen%PerSec    = 10
    DamagePercentToUnits  = 10%
    AllowInsideKindOf     = INFANTRY
    ExitDelay         = 250
    NumberOfExitPaths = 3 ; Defaults to 1.  Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
    GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
  End
 End

 AddModule
  Behavior = ObjectCreationUpgrade ModuleTag_Crew
    UpgradeObject = OCL_TroopCrawlerCrew
    TriggeredBy   = Upgrade_AmericaBattleDrone
  End
 End

 AddModule
  Behavior = GrantUpgradeCreate ModuleTag_GiveCrew
    UpgradeToGrant  = Upgrade_AmericaBattleDrone
  End
 End

End
beng is online now   Reply With Quote