Stewox
  • Stewox
  • 100% (Exalted)
  • Major Topic Starter
15 years ago
I just took a break and modded some ZH again after long times , and now , i seem to forgot how do i make a weapon that will only target INFANTRY , and another weapon that will target only VEHICLES STRUCTURES and maybe HUGE_VEHICLES (baiscally everything else except infantry)


I Already found out that this can be made via damage types , so for infantry SNIPER , but I can't make the other weapon which uses JET_MISSILES to NOT target infantry , I have made PrefferedAgainst in weaponset but it seems to not function strictly, it still attacks infantry with missiles when there aren vehicles around.

And there some problem , the jet's don't GUARD properly , after they re-arm they don't go guarding again they just stay in airfield , i have boiled down that maybe PreferredAgainst entry in weaponset makes this bug , will see.

I also made commandbuttons to switch weapon slots , it did function , but it was akward to change all the time , and there is no option to use both slots ( Weaponslot = PRIMARY SECONDARY ) does not work it uses only the first option.

AutoChooseSources seem to not have effect on guard bug.

PreferredAgainst = PRIMARY VEHICLE HUGE_VEHICLE STRUCTURE AIRCRAFT
PreferredAgainst = SECONDARY INFANTRY

I see a potential workaround via damagetypes , and armor , but i will have to edit EVERY infantry's armor to be invurnable to JET_MISSILES. That would affect all planes with jet missiles then hmm , not actually have time to mod the whole game im just testing stuff a bit with one unit at a time hehe.
UserPostedImage
Sponsor
Annihilationzh
15 years ago
Make the sniper the primary weapon. That'll stop the missiles from targeting infantry.

I don't know what's causing the guard problem, but giving a plane two weapons is notoriously glitchy.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Stewox
  • Stewox
  • 100% (Exalted)
  • Major Topic Starter
15 years ago

Make the sniper the primary weapon. That'll stop the missiles from targeting infantry.

I don't know what's causing the guard problem, but giving a plane two weapons is notoriously glitchy.

Annihilationzh wrote:




Yeah, i tested it and it is indeed the second weapon that's the cause , oh what a pity.
UserPostedImage