Weaponswitch exists for both player and userdef structure members. The player structure controls whenever the action will be made, while the userdef controls the options selected in the menu.
1 = switch to weapon on pickup
2 = switch away when out of ammo
Setting the variable to zero will disable all automatic weapon switching.