cg_emptyswitch
With cg_emptyswitch you can set on or off the automatically weapon change to the next weapon when it goes empty.
Usage:
/seta cg_emptyswitch 1
Values: “1” or “0”
Note:
Set it to “0” if you want to change your weapon (after it went empty) to another weapon than the next weapon in the inventory. For example if you play as Allies and you run out of ammo of Thompson with “1” it changes to pistol automatically.