Current code change:
WeaponSet
Conditions = NONE
; -----
Weapon = PRIMARY RaptorJetMissileWeapon
PreferredAgainst = PRIMARY AIRCRAFT
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
; -----
Weapon = SECONDARY RaptorAerialGuidedBombWeapon
PreferredAgainst = SECONDARY Vehicle Structure
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY RaptorJetLaserGuidedMissileWeapon
PreferredAgainst = PRIMARY AIRCRAFT
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
; -----
Weapon = SECONDARY RaptorAerialGuidedBombWeapon
PreferredAgainst = SECONDARY Vehicle Structure
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
ArmorSet
Conditions = None
Armor = AirplaneArmor
DamageFX = None
End
ArmorSet
Conditions = PLAYER_UPGRADE
Armor = CountermeasuresAirplaneArmor
DamageFX = None
End
Weapons:
Weapon RaptorJetLaserGuidedMissileWeapon
PrimaryDamage = 125.0
PrimaryDamageRadius = 5.0
ScatterRadiusVsInfantry = 10.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
AttackRange = 540 ;600.0
MinimumAttackRange = 100.0
AcceptableAimDelta = 30
DamageType = JET_MISSILES
DeathType = EXPLODED
WeaponSpeed = 1000
ProjectileObject = RaptorJetMissile
ProjectileExhaust = MissileExhaust
VeterancyProjectileExhaust = HEROIC HeroicMissileExhaust
FireFX = None
FireSound = RaptorJetMissileWeapon
ProjectileDetonationFX = WeaponFX_JetMissileDetonation
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS NOT_SIMILAR
DelayBetweenShots = 150
ClipSize = 4
ClipReloadTime = 8000
AutoReloadsClip = RETURN_TO_BASE
ProjectileCollidesWith = STRUCTURES
AntiAirborneVehicle = Yes
AntiAirborneInfantry = No
AntiGround = No
ShowsAmmoPips = Yes
End
;------------------------------------------------------------------------------
Weapon RaptorAerialGuidedBombWeapon
;PrimaryDamage = 250.0
;PrimaryDamageRadius = 40.0
AttackRange = 300.0 ; this needs to be pretty high, since the Aurora moves so fast
AcceptableAimDelta = 45 ; we don't really need to be aimed directly at the target.
DamageType = AURORA_BOMB
DeathType = EXPLODED
WeaponSpeed = 99999
ProjectileObject = RaptorAerialGuidedBomb
; FireFX = FX_AuroraBombLaunch
; ProjectileDetonationFX = FX_AuroraBombDetonate
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS NOT_SIMILAR
AntiGround = Yes
ClipSize = 2 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 5000 ; how long to reload a Clip, msec
AutoReloadsClip = RETURN_TO_BASE ; must return to base to reload this weapon
ShowsAmmoPips = Yes
Code does not work,planes won't fly to the target when selected,they just take off and fly around the airfield
What is "TERTIARY" ?