Update weapon switch hotkey for DZE_TwoPrimaries=2

Also forgot new dropped class for SledgeHammer
This commit is contained in:
ebaydayz
2016-04-27 16:11:40 -04:00
parent 7753ae2859
commit 244b84e74b
4 changed files with 14 additions and 5 deletions

View File

@@ -160,8 +160,8 @@ dz_fn_switchWeapon =
//Current weapon is primary
if (IS_PRIMARY(_current)) exitWith
{
//if current is rifle and on back is melee
if (!IS_MELEE(_current) && { IS_MELEE(dayz_onBack) }) then
//if current is rifle and on back is melee OR two rifles are allowed
if ((!IS_MELEE(_current) && { IS_MELEE(dayz_onBack) }) or (DZE_TwoPrimaries > 1)) then
{
if (dayz_quickSwitch) then
{