View Single Post
Old 02-23-2003, 01:17 PM   #1 (permalink)
ErAzAnGeL
Junior Member
 
Join Date: Feb 2003
Location: UK
Posts: 7
Default Creating Passenger Spaces in units

I'm managed to siphon the code from the Chinese APC thing and applied it to my Crusaders and Paladins. Here we go...

In the FactionUnit.ini put this set of code in the behaviour section as module 10:

Behavior = TransportContain ModuleTag_10
PassengersAllowedToFire = Yes
Slots = 1
InitialPayload = AmericaInfantryRanger 1
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

When built, the unit will contain one Ranger.

Now, in CommandSet.ini under the CrusaderTankCommandSet insert two new things:


CommandSet AmericaTankCrusaderCommandSet
1 = Command_ConstructAmericaVehicleBattleDrone
2 = Command_ConstructAmericaVehicleScoutDrone
3 = Command_TransportExit
4 = Command_Evacuate
9 = Command_AttackMove
11 = Command_Guard
12 = Command_Stop
End

3 and 4 enable the tank to show the contained trooper and deploy the trooper if necessary. Try raising the cost of the tank to make it fairer...

That is all. :|
ErAzAnGeL is offline   Reply With Quote