mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Re-build DayZ_SafeObjects to handle all objects
This is a complete re-build of DayZ_SafeObjects. It was necessary to remove all the duplicated entries. DayZ_SafeObjects gets defined by multiple arrays now. This makes it much easier to update. Also every building with gear gets maintained now. Every single buildable epoch building is included within the maintain array and DayZ_SafeObjects.
This commit is contained in:
@@ -11,7 +11,7 @@ class ItemToolbox : ItemCore
|
|||||||
class RemoveNet
|
class RemoveNet
|
||||||
{
|
{
|
||||||
text= $STR_EQUIP_TOOLBOX_ACTION_1;
|
text= $STR_EQUIP_TOOLBOX_ACTION_1;
|
||||||
script=";[['DesertCamoNet_DZ','ForestCamoNet_DZ','WinterCamoNet_DZ','DesertLargeCamoNet_DZ','ForestLargeCamoNet_DZ','WinterLargeCamoNet_DZ'],10,'str_epoch_player_8'] call player_removeNearby;";
|
script=";[DZE_CamoNets,10,'str_epoch_player_8'] call player_removeNearby;";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ if (isNull _door) exitWith {dayz_actionInProgress = false; systemChat localize "
|
|||||||
s_player_gdoor_opener_ctrl = 1;
|
s_player_gdoor_opener_ctrl = 1;
|
||||||
|
|
||||||
call {
|
call {
|
||||||
if (_typeof in ["WoodenGate_1_DZ","WoodenGate_2_DZ","WoodenGate_3_DZ","WoodenGate_4_DZ"]) exitwith {
|
if (_typeof in DZE_LockedGates) exitwith {
|
||||||
if (_door animationPhase "DoorR" == 0) then {
|
if (_door animationPhase "DoorR" == 0) then {
|
||||||
systemChat localize "STR_CL_GDO_DOOR_OPEN";
|
systemChat localize "STR_CL_GDO_DOOR_OPEN";
|
||||||
_door animate ["DoorR",1];
|
_door animate ["DoorR",1];
|
||||||
|
|||||||
@@ -1499,7 +1499,7 @@ if (_canBuild) then {
|
|||||||
} else {
|
} else {
|
||||||
_combination = DZE_Lock_Door;
|
_combination = DZE_Lock_Door;
|
||||||
};
|
};
|
||||||
if (_classname in ["WoodenGate_1_DZ","WoodenGate_2_DZ","WoodenGate_3_DZ","WoodenGate_4_DZ"]) then {
|
if (_classname in DZE_LockedGates) then {
|
||||||
GateMethod = DZE_Lock_Door;
|
GateMethod = DZE_Lock_Door;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ if (_obj getVariable ["GeneratorRunning", false]) exitWith {
|
|||||||
local _objType = typeOf _obj; // object's classname
|
local _objType = typeOf _obj; // object's classname
|
||||||
local _bbObject = boundingBox _obj select 1; // positive x,y dimensions
|
local _bbObject = boundingBox _obj select 1; // positive x,y dimensions
|
||||||
|
|
||||||
if (_objType in DZE_DoorsLocked && !(_objType in ["WoodenGate_1_DZ","WoodenGate_2_DZ","WoodenGate_3_DZ","WoodenGate_4_DZ"])) exitWith {
|
if (_objType in DZE_DoorsLocked && !(_objType in DZE_LockedGates)) exitWith {
|
||||||
dayz_actionInProgress = false;
|
dayz_actionInProgress = false;
|
||||||
localize "STR_EPOCH_ACTIONS_20" call dayz_rollingMessages; // You must remove the lock to delete this item!
|
localize "STR_EPOCH_ACTIONS_20" call dayz_rollingMessages; // You must remove the lock to delete this item!
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ if (!isNull dayz_selectedDoor) then {
|
|||||||
|
|
||||||
_code = [DZE_Lock_Door,format ["%1 - EYESCAN",_objectCharacterID]] select (_doorMethod == "EYE");
|
_code = [DZE_Lock_Door,format ["%1 - EYESCAN",_objectCharacterID]] select (_doorMethod == "EYE");
|
||||||
|
|
||||||
if !(typeof _obj in ["WoodenGate_1_DZ","WoodenGate_2_DZ","WoodenGate_3_DZ","WoodenGate_4_DZ"]) then {
|
if !(typeof _obj in DZE_LockedGates) then {
|
||||||
[player,"combo_unlock",0,false] call dayz_zombieSpeak;
|
[player,"combo_unlock",0,false] call dayz_zombieSpeak;
|
||||||
|
|
||||||
if (_obj animationPhase "Open_hinge" == 0) then {
|
if (_obj animationPhase "Open_hinge" == 0) then {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user