View Single Post
Old 03-27-2003, 10:10 PM   #2 (permalink)
Nuker
Junior Member
 
Join Date: Mar 2003
Location: USA
Posts: 28
Send a message via AIM to Nuker
Default

and this in factionunit.ini

Object CruiseMissile

; *** ART Parameters ***
Draw = W3DModelDraw ModuleTag_01
OkToChangeModelColor = Yes
ConditionState = NONE
Model = AVTomahawk_M

End
End

; ***DESIGN parameters ***
DisplayName = OBJECT:CruiseMissile
Side = America
EditorSorting = SYSTEM
VisionRange = 0.0
ArmorSet
Conditions = None
;*Be careful with this type, use in conjunction with KindOf = BALLISTIC_MISSILE to restrict targeting
;*to select weapons, because ballistic missile armor is weak! Weapons capable of targeting must have
;*AntiBallisticMissile = Yes set in the Weapon.ini.
Armor = BallisticMissileArmor
DamageFX = None
End

; *** ENGINEERING Parameters ***
KindOf = PROJECTILE BALLISTIC_MISSILE
Body = ActiveBody ModuleTag_02
MaxHealth = 200.0
InitialHealth = 100.0
End

; ---- begin Projectile death behaviors
Behavior = InstantDeathBehavior DeathModuleTag_01
DeathTypes = NONE +DETONATED
; we detonated normally.
FX = WeaponFX_TomahawkMissileDetonation
End
Behavior = InstantDeathBehavior DeathModuleTag_02
DeathTypes = NONE +LASERED
; shot down by laser.
FX = FX_GenericMissileDisintegrate
OCL = OCL_GenericMissileDisintegrate
End
Behavior = InstantDeathBehavior DeathModuleTag_03
DeathTypes = ALL -LASERED -DETONATED
; shot down by nonlaser.
FX = FX_GenericMissileDeath
End
; ---- end Projectile death behaviors

Behavior = PhysicsBehavior ModuleTag_06
Mass = 1
End
Behavior = MissileAIUpdate ModuleTag_07
TryToFollowTarget = Yes
FuelLifetime = 400000
IgnitionDelay = 0
IgnitionFX = FX_TomahawkIgnition
InitialVelocity = 50 ; in dist/sec
DistanceToTravelBeforeTurning = 120
DistanceToTargetBeforeDiving = 100 ; When I hit this close to target, I ignore PreferredHeight.
; Note, if this is too small, the missile will turn too late to hit. And, since we have a 2D
; heart, being over the target counts as "there", so we'll give up and just go straight.

DistanceToTargetForLock = 10 ; Short lock on, as it looks better flying. jba.
End
Locomotor = SET_NORMAL CruiseMissileMotor

Geometry = Cylinder ; Since collision extents can't tilt, this is a little fake
GeometryMajorRadius = 8.0
GeometryHeight = 4.0
GeometryIsSmall = Yes

Shadow = SHADOW_DECAL
End
Nuker is offline   Reply With Quote