mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +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 (vehicle player != player) exitWith {};
|
||||||
if Player_IsOnLadder() exitWith {};
|
if Player_IsOnLadder() exitWith {};
|
||||||
if (dayz_autoRun) then {call dayz_autoRunOff;};
|
if (dayz_autoRun) then {call dayz_autoRunOff;};
|
||||||
|
if (dayz_isSwimming) exitWith {};
|
||||||
|
|
||||||
private ["_current","_primary","_secondary","_swapWeapons"];
|
private ["_current","_primary","_secondary","_swapWeapons"];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user