Update player_switchWeapon.sqf (#2032)

* Update player_switchWeapon.sqf

It is forbidden to change weapons, when player swimming.

* Update player_switchWeapon.sqf
This commit is contained in:
F507DMT
2019-03-11 15:44:33 +06:00
committed by oiad
parent fcae42a7f8
commit ca7a77e2ad

View File

@@ -27,6 +27,7 @@ dz_fn_switchWeapon =
if (vehicle player != player) exitWith {};
if Player_IsOnLadder() exitWith {};
if (dayz_autoRun) then {call dayz_autoRunOff;};
if (dayz_isSwimming) exitWith {};
private ["_current","_primary","_secondary","_swapWeapons"];
@@ -289,4 +290,4 @@ dz_fn_switchWeapon_animDone =
if (IS_MELEE(primaryWeapon player)) then
{ call dayz_meleeMagazineCheck; };
#endif
};
};