First of all let me just say that the AI game engine makes a decision on what class to spawn based on the current threat on the map. More tanks means more AT spawns. But this can be influenced some what by changing the strategic strengths of the AI class kit templates in the objects\items\basekit\ai\objects.con file. I have not messed around with this much. Perhaps someone with more experience in this area can give us some suggestions. Here is what the standard templates look like:

rem *** KitTemplates ***

rem *** Medic ***

kitTemplate.create Medic Medic

kitTemplate.setStrategicStrength 0 1
kitTemplate.setStrategicStrength 1 1

kitTemplate.setBattleStrength Infantry 6.0
kitTemplate.setBattleStrength LightArmour 3.0
kitTemplate.setBattleStrength HeavyArmour 1.0
kitTemplate.setBattleStrength NavalArmour 0.0
kitTemplate.setBattleStrength Submarine 0.0
kitTemplate.setBattleStrength Air 0.0

rem *** Engineer ***

kitTemplate.create Engineer Engineer

kitTemplate.setStrategicStrength 0 1
kitTemplate.setStrategicStrength 1 2

kitTemplate.setBattleStrength Infantry 4.0
kitTemplate.setBattleStrength LightArmour 4.0
kitTemplate.setBattleStrength HeavyArmour 3.0
kitTemplate.setBattleStrength NavalArmour 0.0
kitTemplate.setBattleStrength Submarine 0.0
kitTemplate.setBattleStrength Air 0.0


rem *** AT ***

kitTemplate.create AT AT

kitTemplate.setStrategicStrength 0 2
kitTemplate.setStrategicStrength 1 2

kitTemplate.setBattleStrength Infantry 2.0
kitTemplate.setBattleStrength LightArmour 8.0
kitTemplate.setBattleStrength HeavyArmour 4.0
kitTemplate.setBattleStrength NavalArmour 0.0
kitTemplate.setBattleStrength Submarine 0.0
kitTemplate.setBattleStrength Air 0.0


rem *** Assault ***

kitTemplate.create Assault Assault

kitTemplate.setStrategicStrength 0 1
kitTemplate.setStrategicStrength 1 1

kitTemplate.setBattleStrength Infantry 8.0
kitTemplate.setBattleStrength LightArmour 3.0
kitTemplate.setBattleStrength HeavyArmour 1.0
kitTemplate.setBattleStrength NavalArmour 0.0
kitTemplate.setBattleStrength Submarine 0.0
kitTemplate.setBattleStrength Air 2.0


rem *** Scout ***

kitTemplate.create Scout Scout

kitTemplate.setStrategicStrength 0 2
kitTemplate.setStrategicStrength 1 1

kitTemplate.setBattleStrength Infantry 4.0
kitTemplate.setBattleStrength LightArmour 0.0
kitTemplate.setBattleStrength HeavyArmour 0.0
kitTemplate.setBattleStrength NavalArmour 0.0
kitTemplate.setBattleStrength Submarine 0.0
kitTemplate.setBattleStrength Air 0.0

 

There are 2 things that affect which class of bots are spawned:

The battle and strategic strengths of the kitTemplates.
and
The strategic strengths of the weapons used in each of the soldier kits.

kitTemplates and weaponTemplates are both simplified forms of aiTemplates. Both are assinged to the soldier kits, kitTemplates directly and weaponsTemplates indirectly thru the weapons assigned to the kits.

For example, the British AT kit uses the AT kitTemplate for it's aiTemplate. And it has 4 weapons added to it: bazooka, colt, knifeAllies and grenadeAllies. The SAI uses all of these to determine the importance of this particular kit, in reference to it's current surrondings, when spawning a new bot.

Notice in the kitTemplates, the AT class has the highest overall strategic strength, with values of 2 for both attack and defence. One way to reduce the number of AT spawn is to lower these or raise a few of the other classes strategic strengths.

The next thing to look at is the strategic strengths of all the weapons used in the kits. Most of them are virtually useless against heavy armour, i.e. tanks. Bazookas and grenades are about the only weapons (the bots use) that have any affect against them. The land mines and expacks would work, but the bots really have no idea how to use them. I know, in real life, you could toss nades at a tiger tank all day long and not hurt it. If that were true in the game, only AT class bots and maybe a few engineers would be spawned on any map where tanks are present. I believe that's why EA coded the nades to be affective against them.

To balance the class types spawned in a map, the strategic and battle strengths of all of the weapon and kit templates needs to be examined and possibly modified. I like to do this on a per map basis so I can fine tune it for the map. I've already posted a tutorial on how to do this.