3demons
  • 3demons
  • 50.25% (Neutral)
  • Private Topic Starter
7 years ago
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.
Sponsor
Unknown Editor
7 years ago
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
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
SkyMix_RMT
7 years ago
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.
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
klingondragon
7 years ago

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.

  WeaponSet
    Conditions          = None 
    Weapon              = PRIMARY   GattlingBuildingGun
    Weapon              = SECONDARY GattlingBuildingGunAir
    PreferredAgainst    = SECONDARY BALLISTIC_MISSILE AIRCRAFT
  End
from ChinaTankOverlordGattlingCannon

not sure if that actually restricts it to that KINDOF or just changes the priority to target them first
AdrianeMapMaker
7 years ago
"PREFERRED_AGAINTS"

IS little buggy ... but still it works
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Gameanater
7 years ago
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.




  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



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...
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
klingondragon
7 years ago
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.
Gameanater
7 years ago

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.

Originally Posted by: KlingonDragon 



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.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.