Add a tall safe

This safe is the biggest version in-game. The safe is not in by default. It is up to the server admins to use it.

Model made by @Helion4
This commit is contained in:
AirwavesMan
2020-12-05 14:52:15 +01:00
parent 5d02283af8
commit 021f22bf0e
8 changed files with 77 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ private ["_backupCode","_badCode","_cursorTarget","_dialog","_dir","_doorFriends
_cursorTarget = _this select 3;
_typeOf = typeOf (_cursorTarget);
_isSafe = _typeOf in ["VaultStorage","VaultStorage2"];
_isSafe = _typeOf in ["VaultStorage","VaultStorage2","TallSafe"];
_isLockBox = _typeOf in ["LockBoxStorage","LockBoxStorage2","LockBoxStorageWinter","LockBoxStorageWinter2"];
_isStorage = (_isSafe || _isLockBox);
_isDoor = _typeOf in DZE_DoorsLocked;

View File

@@ -10,7 +10,7 @@ if (dayz_lastCodeFail > diag_tickTime) exitWith {
};
if (!isNull dayz_selectedVault) then {
if ((typeOf dayz_selectedVault) in ["VaultStorageLocked","VaultStorage","VaultStorage2Locked","VaultStorage2"]) then {
if ((typeOf dayz_selectedVault) in ["VaultStorageLocked","VaultStorage","VaultStorage2Locked","VaultStorage2","TallSafe","TallSafeLocked"]) then {
createDialog "SafeKeyPad";
} else {
createDialog "KeypadUI";