mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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:
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user