I've lately taken to *tweaking* Generals (the original, not Zero Hour) to more suit my tastes. Most of the changes work fine so far, but I've hit a snag.
I modified the Raptor and Stealth weapons. The Raptor's missile only targets air units, does a lot of damage per missile, but only has 2 ammo and doesn't fire very often. The Stealth's missile only targets ground units, but also takes 5 seconds or so between missiles. Takes about 2 of these to kill your average tank.
Now, the Stealth works fine, because it's air-to-ground only. The problem is with the Raptor. I wanted it to have both the AA and the AG missiles. So I went in and tried to add in the StealthJetMissile (and StealthJetLaserGuidedMissile) as the Raptor's second weapon. But no matter what I do, it won't use it in-game.
The two relevant sections of the ini file go as follows:
Code:
DefaultConditionState
Model = AVRaptor
HideSubObject = BurnerFX01 BurnerFX02
WeaponLaunchBone = PRIMARY WeaponA
WeaponLaunchBone = SECONDARY WeaponA
End
Code:
WeaponSet
Conditions = None
; -----
Weapon = PRIMARY RaptorJetMissileWeapon
PreferredAgainst = PRIMARY AIRCRAFT
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
; -----
Weapon = SECONDARY StealthJetMissileWeapon
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 StealthJetLaserGuidedMissileWeapon
PreferredAgainst = SECONDARY VEHICLE STRUCTURE
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
; -----
End
For the latter section, I copied the Comanche's WeaponSet code and altered it to my purposes. I'm not sure exactly what I'm messing up. Did I make a typo, or is there some other value I need to edit or something?