Posted by: 3demons - Thursday, October 4, 2018 6:04:42 PM
I am trying to browse the INI files of Zero hour and mods such as shockwave.
I am having the hardest time finding where to edit so that the Raptor in Zero hour can only attack vehicles, and air targets.
I am using finalBIG, and I cant find a location where to edit this, so any guidance would be appreciated.
Well , The only way I know is Modifing Infantry Armor which will require to modify much more after then :
Armor HumanArmor
Armor = JET_MISSILES 0%
End
If you apply this , Then you should apply new Damage types for the weapon of those which can attack infantry and have their DamageType = JET_MISSILES , So yeah , It's gonna take Huge efforts
Related Directories :
Data\INI\Armor.ini
Data\INI\Weapon.ini
Posted by: SkyMix_RMT - Friday, October 5, 2018 9:14:56 AM
What about the "PREFERRED_AGAINST" thing you can add to weapon sets? I don't remember exactly how it works but I know you can make something like that with it.
Posted by: klingondragon - Friday, October 5, 2018 10:01:45 AM
[quote]What about the "PREFERRED_AGAISNT" thing you can add to weapon sets? I don't remember exactly how it works but I know you can make something like that with it.[/quote][code=plain] WeaponSet
Conditions = None
Weapon = PRIMARY GattlingBuildingGun
Weapon = SECONDARY GattlingBuildingGunAir
PreferredAgainst = SECONDARY BALLISTIC_MISSILE AIRCRAFT
End[/code]
from ChinaTankOverlordGattlingCannon
not sure if that actually restricts it to that KINDOF or just changes the priority to target them first
Posted by: AdrianeMapMaker - Saturday, October 6, 2018 12:43:01 AM
"PREFERRED_AGAINTS"
IS little buggy ... but still it works
Posted by: Gameanater - Sunday, October 7, 2018 12:08:11 AM
Here's the Comanche code. The primary weapon fires against any ground unit while the secondary exclusively fires against structures and vehicles. The tertairy weapon can only be fired from a command button.
[code=plain]
WeaponSet
Conditions = PLAYER_UPGRADE
; -----
Weapon = PRIMARY Comanche20mmCannonWeapon
PreferredAgainst = PRIMARY INFANTRY
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
; -----
Weapon = SECONDARY ComancheAntiTankMissileWeapon
PreferredAgainst = SECONDARY VEHICLE STRUCTURE
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
; -----
Weapon = TERTIARY ComancheRocketPodWeapon
AutoChooseSources = TERTIARY FROM_SCRIPT
End
Yoink
Behavior = WeaponSetUpgrade ModuleTag_02
TriggeredBy = Upgrade_ComancheRocketPods
End
[/code]
I'm not really sure how the "FROM_X" stuff works. Especially because the ComancheRocketPodWeapon isn't mentioned anywhere else in this unit's code besides the "FROM_SCRIPT" and upgrade bits... But as far as I can tell using "PREFERRED AGAINST = KIND_OF" will force it to only fire its weapons against certain kinds of units. But I'm not entirely sure of this myself since it still fires its machine gun against buildings and vehicles...
Posted by: klingondragon - Sunday, October 7, 2018 5:09:39 AM
I think it will use the preferred weapon until it can't and then use any available weapon.
So being out of rocket ammo would switch it to the machine gun.
Posted by: Gameanater - Sunday, October 7, 2018 2:31:26 PM
[quote=KlingonDragon;148109]I think it will use the preferred weapon until it can't and then use any available weapon.
So being out of rocket ammo would switch it to the machine gun.[/quote]
IRRC it just continues to fire against all ground units whilst using its rockets. But I could be wrong.
In any case the Comanche stuffs should help even if I don't understand it entirely myself.