I get kinda the same thing, but it works the way I want it too. This is the code from the Maus in Blitz2. It first both the cannon(not all the time though) and the flamethrower against infantry and buildings...but only uses the cannon on other types of things.
Code:
WeaponSet
Conditions = None
Weapon = PRIMARY 128mmgunG
Weapon = SECONDARY 75mmAPgunG
PreferredAgainst = SECONDARY INFANTRY STRUCTURE VEHICLE
; AutoChooseSources = PRIMARY FROM_SCRIPT FROM_AI ;NONE ; FROM_SCRIPT FROM_AI
; AutoChooseSources = SECONDARY FROM_SCRIPT FROM_AI ;NONE
End
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY 128mmgunG
Weapon = SECONDARY AlliedVehicleStuartFlamethrower
PreferredAgainst = SECONDARY INFANTRY STRUCTURE
End