mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix gear menu bypass mistake from 89078d1
This commit is contained in:
@@ -47,8 +47,8 @@ if ((vehicle player) == player) then {
|
||||
//direct gear to cursorTarget
|
||||
[_lastSave, _startTime, _ctType, _cTarget] spawn {
|
||||
waitUntil {((_this select 0) != dayz_lastSave) || {diag_tickTime >= ((_this select 1) + 1)}}; //waiting is required otherwise player_forceSave will reset DZE_GearCheckBypass
|
||||
DZE_GearCheckBypass = true;
|
||||
if (!dialog) then {
|
||||
DZE_GearCheckBypass = true;
|
||||
if ((((_this select 2) in DZE_isNewStorage) || {(_this select 2) == "LockboxStorage"} || {(_this select 2) isKindOf "Land_A_tent"} || {(_this select 2) isKindOf "WeaponHolder"} || {((!alive (_this select 3)) && {(_this select 2) isKindOf "Man"})}) && {!(locked (_this select 3))}) then {
|
||||
Player action ["GEAR", (_this select 3)];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user