mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix Dayz Mod Gates could not be removed
This commit is contained in:
@@ -78,6 +78,7 @@ class WoodenGate_1_DZ: DZE_Housebase
|
||||
};
|
||||
|
||||
lockable = 3;
|
||||
removeoutput[] = {{"ItemComboLock",1}};
|
||||
};
|
||||
|
||||
class WoodenGate_2_DZ: DZE_Housebase
|
||||
@@ -139,6 +140,7 @@ class WoodenGate_2_DZ: DZE_Housebase
|
||||
};
|
||||
|
||||
lockable = 3;
|
||||
removeoutput[] = {{"ItemComboLock",1}};
|
||||
};
|
||||
|
||||
class WoodenGate_3_DZ: DZE_Housebase
|
||||
@@ -200,6 +202,7 @@ class WoodenGate_3_DZ: DZE_Housebase
|
||||
};
|
||||
|
||||
lockable = 3;
|
||||
removeoutput[] = {{"ItemComboLock",1}};
|
||||
};
|
||||
|
||||
class WoodenGate_4_DZ: DZE_Housebase
|
||||
@@ -260,4 +263,5 @@ class WoodenGate_4_DZ: DZE_Housebase
|
||||
};
|
||||
|
||||
lockable = 3;
|
||||
removeoutput[] = {{"ItemComboLock",1}};
|
||||
};
|
||||
@@ -33,7 +33,7 @@ _objectUID = _obj getVariable ["ObjectUID","0"];
|
||||
_isOk = true;
|
||||
_proceed = false;
|
||||
_objType = typeOf _obj;
|
||||
if (_objType in DZE_DoorsLocked) exitWith {dayz_actionInProgress = false; localize "STR_EPOCH_ACTIONS_20" call dayz_rollingMessages;};
|
||||
if (_objType in DZE_DoorsLocked && !(_objType in ["WoodenGate_1_DZ","WoodenGate_2_DZ","WoodenGate_3_DZ","WoodenGate_4_DZ"])) exitWith {dayz_actionInProgress = false; localize "STR_EPOCH_ACTIONS_20" call dayz_rollingMessages;};
|
||||
|
||||
// Chance to break tools
|
||||
_isDestructable = _obj isKindOf "BuiltItems";
|
||||
@@ -77,7 +77,7 @@ _nameVehicle = getText(configFile >> "CfgVehicles" >> _objType >> "displayName")
|
||||
format[localize "str_epoch_player_162",_nameVehicle] call dayz_rollingMessages;
|
||||
|
||||
if (_isModular && {_objType in _x} count DZE_modularConfig == 0) then {
|
||||
localize "STR_EPOCH_ACTIONS_21" call dayz_rollingMessages;
|
||||
localize "STR_EPOCH_ACTIONS_21" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
// Alert zombies once.
|
||||
|
||||
Reference in New Issue
Block a user