Is 100% fucked.
The only thing that does seem to work anymore is toairweapon=1;
However, if toairweapon is set to 0 (Which should make it not shoot at air at all) it doesn't do anything.
Fix Plox.
Onlytargetcategory, badtargetcategory etc
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Is the point I was trying to make, in regards to toairweapon.KDR_11k wrote:toairweapon=0 is the default, =1 means it will only target units of category VTOL. Try Gundam, if Xamels can shoot air (which last I checked they can't unless it's a transport with a unit loaded) then categories really don't work, otherwise it's an issue on your end.
OnlyTargetCategory works fine in S44 afaik
That's what toAirWeapon really does (WeaponDefHandler.cpp from svn):
That means toAirWeapon=1 is equal to OnlyTargetCategory=VTOL. ToAirWeapon=0 is equal to not having toAirWeapon tag at all, it won't prevent fire at VTOL units. And, if your mod doesn't have a VTOL category, toAirWeapon won't work for you.
Code: Select all
if (wdTable.GetBool("toAirWeapon", false)) {
// fix if we sometime call aircrafts otherwise
wd.onlyTargetCategory = CCategoryHandler::Instance()->GetCategories("VTOL");
//logOutput.Print("air only weapon %s %i",weaponname.c_str(),wd.onlyTargetCategory);
}
