diff --git a/SQF/dayz_code/compile/player_lockVault.sqf b/SQF/dayz_code/compile/player_lockVault.sqf index e94dc46d0..d195fc8a9 100644 --- a/SQF/dayz_code/compile/player_lockVault.sqf +++ b/SQF/dayz_code/compile/player_lockVault.sqf @@ -19,9 +19,6 @@ _text = getText (configFile >> "CfgVehicles" >> _objType >> "displayName"); if (isNull _obj) exitWith {dayz_actionInProgress = false;}; -_playerNear = {isPlayer _x} count (([_obj] call FNC_GetPos) nearEntities ["CAManBase", 12]) > 1; -if (_playerNear) exitWith {dayz_actionInProgress = false; localize "str_pickup_limit_5" call dayz_rollingMessages;}; - _ownerID = _obj getVariable["CharacterID","0"]; _ComboMatch = (_ownerID == dayz_combination); if (DZE_permanentPlot) then {_ownerID = _obj getVariable["ownerPUID","0"];}; diff --git a/SQF/dayz_code/compile/player_packVault.sqf b/SQF/dayz_code/compile/player_packVault.sqf index f75fade97..d041dea9e 100644 --- a/SQF/dayz_code/compile/player_packVault.sqf +++ b/SQF/dayz_code/compile/player_packVault.sqf @@ -14,7 +14,7 @@ _text = getText (configFile >> "CfgVehicles" >> _typeOf >> "displayName"); if (isNull _obj || !(alive _obj)) exitWith {dayz_actionInProgress = false;}; -_playerNear = {isPlayer _x} count (([_obj] call FNC_GetPos) nearEntities ["CAManBase", 12]) > 1; +_playerNear = {isPlayer _x} count (([_obj] call FNC_GetPos) nearEntities ["CAManBase", 10]) > 1; if (_playerNear) exitWith {dayz_actionInProgress = false; localize "str_pickup_limit_5" call dayz_rollingMessages;}; _ownerID = _obj getVariable["CharacterID","0"]; @@ -30,9 +30,7 @@ if (_objectID == "0" && _objectUID == "0") exitWith {dayz_actionInProgress = fal if (!_ComboMatch && (_ownerID != dayz_playerUID)) exitWith {dayz_actionInProgress = false; s_player_packvault = -1; format[localize "str_epoch_player_119",_text] call dayz_rollingMessages;}; -format[localize "str_epoch_player_121",_text] call dayz_rollingMessages; - -if (!isNull _obj && {alive _obj}) exitWith {s_player_packvault = -1;dayz_actionInProgress = false;}; +if (isNull _obj && {!alive _obj}) exitWith {s_player_packvault = -1;dayz_actionInProgress = false;}; [player,"tentpack",0,false] call dayz_zombieSpeak; format[localize "str_epoch_player_121",_text] call dayz_rollingMessages; @@ -42,7 +40,7 @@ if (isNull _obj || !_finished) exitWith {s_player_packvault = -1;dayz_actionInPr (findDisplay 106) closeDisplay 0; // Close gear -_playerNear = {isPlayer _x} count (([_obj] call FNC_GetPos) nearEntities ["CAManBase", 12]) > 1; +_playerNear = {isPlayer _x} count (([_obj] call FNC_GetPos) nearEntities ["CAManBase", 10]) > 1; if (_playerNear) exitWith {dayz_actionInProgress = false; localize "str_pickup_limit_5" call dayz_rollingMessages;}; ["Working",0,[3,2,4,0]] call dayz_NutritionSystem; diff --git a/SQF/dayz_code/compile/player_unlockVault.sqf b/SQF/dayz_code/compile/player_unlockVault.sqf index c0dd36cc0..a77f1ec7f 100644 --- a/SQF/dayz_code/compile/player_unlockVault.sqf +++ b/SQF/dayz_code/compile/player_unlockVault.sqf @@ -15,15 +15,9 @@ s_player_unlockvault = 1; _obj = _this; _objType = typeOf _obj; -if !(_objType in DZE_LockedStorage) exitWith { - s_player_unlockvault = -1; - dayz_actionInProgress = false; -}; +if !(_objType in DZE_LockedStorage) exitWith {s_player_unlockvault = -1;dayz_actionInProgress = false;}; -_playerNear = {isPlayer _x} count (([_obj] call FNC_GetPos) nearEntities ["CAManBase", 12]) > 1; -if (_playerNear) exitWith {dayz_actionInProgress = false; localize "str_pickup_limit_5" call dayz_rollingMessages;}; - -if (isNull _obj || !(alive _obj)) exitWith { dayz_actionInProgress = false; }; +if (isNull _obj || !(alive _obj)) exitWith {dayz_actionInProgress = false;}; _unlockedClass = getText (configFile >> "CfgVehicles" >> _objType >> "unlockedClass"); _text = getText (configFile >> "CfgVehicles" >> _objType >> "displayName"); @@ -61,6 +55,7 @@ if (_ComboMatch || (_ownerID == dayz_playerUID)) then { [player,"repair",0,false] call dayz_zombieSpeak; [player,25,true,(getPosATL player)] spawn player_alertZombies; + if (DZE_lockablesHarderPenalty) then { dayz_lastCodeFail = (diag_tickTime + dayz_UnlockTime); dayz_UnlockTime = dayz_UnlockTime * 2;