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