Use dayz_actionInProgress variable to prevent errors when players spam the weapon switching hotkeys. Thanks to @AirwavesMan for noticing the issue.
Add check for "Throw" as current weapon to prevent animation if 3 key is pressed with no available primary or on-back weapon.
Fix this file so that hotkey 3 works to switch to "onBack" primary weapon when DZE_TwoPrimaries == 2. Add optimizations and rework function dz_fn_switchWeapon_swapSecure. Remove mutex. It was not doing anything.
The addAction click was doing an animation without switching when the
player had a primary or melee on back but nothing in hands.
Probably present in vanilla too, will check later.