I've ben trying to add a transport truck for ZH and it wont work so could you plz tell me wats rong with the coding
Quote:
;-------------------------------------------------------------------
Object TransportTruck
; *** ART Parameters ***
SelectPortrait = SUTerrorist_L
ButtonImage = SUTerrorist
Draw = W3DModelDraw ModuleTag_01
ConditionState = NONE
Model = CVSpplyTrk
End
ConditionState = REALLYDAMAGED
Model = CVSpplyTrk_D
End
ConditionState = RUBBLE
Model = CVSpplyTrk_D1
End
End
; ***DESIGN parameters ***
DisplayName = OBJECT:TransportTruck
EditorSorting = VEHICLE
Side = AmericaAirForceGeneral
TransportSlotCount = 3 ;how many "slots" we take in a transport (0 == not transportable)
VisionRange = 300.0
ShroudClearingRange = 200
BuildCost = 300
BuildTime = 5.0 ;in seconds
Prerequisites
Object = AirF_AmericaWarFactory
End
ArmorSet
Armor = TruckArmor
End
ExperienceValue = 50 50 100 150 ;Experience point value at each level
ExperienceRequired = 0 100 150 300 ;Experience points needed to gain each level
IsTrainable = Yes ;Can gain experience
CrusherLevel = 2 ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 2 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
CommandSet = AirF_AmericaVehicleTransportTruckCommandSet
; *** AUDIO Parameters ***
VoiceSelect = HumveeVoiceSelect
VoiceMove = HumveeVoiceMove
SoundMoveStart = HumveeMoveStart
SoundMoveStartDamaged = HumveeMoveStart
SoundEnter = HumveeEnter
SoundExit = HumveeExit
; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS VEHICLE SCORE
Body = ActiveBody ModuleTag_02
MaxHealth = 150.0
InitialHealth = 150.0
End
Behavior = DestroyDie ModuleTag_03
DeathTypes = ALL -CRUSHED -SPLATTED
End
Behavior = CrushDie ModuleTag_04
DeathTypes = NONE +CRUSHED +SPLATTED
TotalCrushSound = CarAlarm
BackEndCrushSound = CarAlarm
FrontEndCrushSound = CarAlarm
TotalCrushSoundPercent = 50
BackEndCrushSoundPercent = 50
FrontEndCrushSoundPercent = 50
End
Behavior = SlowDeathBehavior ModuleTag_11
DeathTypes = NONE +CRUSHED +SPLATTED
SinkDelay = 14000
SinkRate = 2 ; in Dist/Sec
DestructionDelay = 20000
End
Behavior = TransportContain ModuleTag_08
Slots = 10
DamagePercentToUnits = 100%
AllowInsideKindOf = INFANTRY
ForbidInsideKindOf = AIRCRAFT HUGE_VEHICLE VEHICLE
ExitDelay = 100
NumberOfExitPaths = 1
End
Behavior = FXListDie ModuleTag_05
DeathTypes = NONE +CRUSHED +SPLATTED
DeathFX = FX_CarCrush
End
Behavior = CreateObjectDie ModuleTag_06
DeathTypes = ALL -CRUSHED -SPLATTED
CreationList = OCL_GenericCarExplode
End
Behavior = FXListDie ModuleTag_07
DeathTypes = ALL -CRUSHED -SPLATTED -FLOODED
DeathFX = FX_GenericCarExplode
End
Behavior = CreateObjectDie ModuleTag_08
DeathTypes = NONE +SUICIDED
CreationList = OCL_BurnedCarHull
End
Behavior = AIUpdateInterface ModuleTag_09
End
Locomotor = HumveeLocomotor
Behavior = PhysicsBehavior ModuleTag_10
Mass = 30.0
End
Behavior = FlammableUpdate ModuleTag_21
AflameDuration = 5000 ; If I catch fire, I'll burn for this long...
AflameDamageAmount = 5 ; taking this much damage...
AflameDamageDelay = 500 ; this often.
End
Geometry = BOX
GeometryIsSmall = Yes
GeometryMajorRadius = 18.0
GeometryMinorRadius = 8.0
GeometryHeight = 10.0
Shadow = SHADOW_VOLUME
End
|