From 17cc619d065982938128063b44ec49b516859bde Mon Sep 17 00:00:00 2001 From: looter809 Date: Fri, 30 Jul 2021 22:44:47 -0700 Subject: [PATCH 1/2] Update fn_selfActions.sqf Fix players not being able to lock a safe that they do not have the combination for. --- SQF/dayz_code/compile/fn_selfActions.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index 43de6709b..d8f4912ed 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -616,7 +616,7 @@ if (!isNull _cursorTarget && {!_inVehicle && !_isPZombie && _canDo && player dis }; //Allow owner to unlock vault - if (_isClose && !keypadCancel && {(_typeOfCursorTarget in DZE_LockedStorage) && {_characterID != "0"}}) then { + if (_isClose && !keypadCancel && {_characterID != "0"}) then { if (s_player_unlockvault < 0) then { local _combi = []; if (_typeOfCursorTarget in DZE_LockedStorage) then { @@ -1110,4 +1110,4 @@ if (_dogHandle > 0) then { }; //Monitor -player setVariable ["selfActions", diag_ticktime, false]; \ No newline at end of file +player setVariable ["selfActions", diag_ticktime, false]; From 831ad4b006a700eece130dac128f88bd026bcfdf Mon Sep 17 00:00:00 2001 From: looter809 Date: Mon, 2 Aug 2021 09:39:16 -0700 Subject: [PATCH 2/2] Update fn_selfActions.sqf --- SQF/dayz_code/compile/fn_selfActions.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index d8f4912ed..878098c88 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -616,7 +616,7 @@ if (!isNull _cursorTarget && {!_inVehicle && !_isPZombie && _canDo && player dis }; //Allow owner to unlock vault - if (_isClose && !keypadCancel && {_characterID != "0"}) then { + if (_isClose && !keypadCancel && {(_typeOfCursorTarget in (DZE_LockedStorage + DZE_UnLockedStorage)) && {_characterID != "0"}}) then { if (s_player_unlockvault < 0) then { local _combi = []; if (_typeOfCursorTarget in DZE_LockedStorage) then {