I am trying to make AI build less anti-aircraft guns and SAMs, but can't quite figure out how to do it. I would like the AI to have not more than 15-20% of its units as anti-air (instead of current half
). As far as I understand, changing flavors is the easiest way to do it. Mobile SAM for example has the following flavors:
FLAVOR_DEFENSE = 10
FLAVOR_MOBILE = 4
FLAVOR_ANTIAIR = 25
Does anyone have experience on how to do it best? Set Defense = 0, and Antiair = 10 so it's below that for jet fighter? Or set antiair = 0, so AI will just get a couple of them randomly, like it does with anti-tank guns?
Another question I have: there is an XML file defining unit formations. Could it be useful to change ani-air AI type from UNITAI_COUNTER to something else and then explicitly include them into some formations?

FLAVOR_DEFENSE = 10
FLAVOR_MOBILE = 4
FLAVOR_ANTIAIR = 25
Does anyone have experience on how to do it best? Set Defense = 0, and Antiair = 10 so it's below that for jet fighter? Or set antiair = 0, so AI will just get a couple of them randomly, like it does with anti-tank guns?
Another question I have: there is an XML file defining unit formations. Could it be useful to change ani-air AI type from UNITAI_COUNTER to something else and then explicitly include them into some formations?