diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildables/Storage.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildables/Storage.hpp index 4aff01b63..c607060b4 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Buildables/Storage.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildables/Storage.hpp @@ -91,6 +91,28 @@ class StorageShed_DZ: Land_Shed_M01 constructioncount = 6; GhostPreview = "StorageShed_Preview_DZ"; + class UserActions + { + class CloseDoor + { + position = ""; + displayName = $STR_DN_OUT_C_DOOR; + radius = 4; + onlyForPlayer = 1; + condition = "this animationPhase 'open' == 1"; + statement = "this animate ['open', 0];"; + }; + class OpenDoor + { + position = ""; + displayName = $STR_DN_OUT_O_DOOR; + radius = 4; + onlyForPlayer = 1; + condition = "this animationPhase 'open' == 0"; + statement = "this animate ['open', 1];"; + }; + }; + upgradeBuilding[] = {"StorageShed2_DZ",{"ItemToolbox","ItemCrowbar","ItemSledge"},{{"equip_metal_sheet",4},{"ItemMetalSheet",2},{"ItemScrews",2}}}; }; class StorageShed2_DZ: Land_Shed_M01 @@ -105,6 +127,28 @@ class StorageShed2_DZ: Land_Shed_M01 transportMaxBackpacks = 30; constructioncount = 12; GhostPreview = "StorageShed_Preview_DZ"; + + class UserActions + { + class CloseDoor + { + position = ""; + displayName = $STR_DN_OUT_C_DOOR; + radius = 4; + onlyForPlayer = 1; + condition = "this animationPhase 'open' == 1"; + statement = "this animate ['open', 0];"; + }; + class OpenDoor + { + position = ""; + displayName = $STR_DN_OUT_O_DOOR; + radius = 4; + onlyForPlayer = 1; + condition = "this animationPhase 'open' == 0"; + statement = "this animate ['open', 1];"; + }; + }; }; class Land_kulna; diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildings/Land_Shed_M01.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildings/Land_Shed_M01.hpp index f663257cd..50709da60 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Buildings/Land_Shed_M01.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildings/Land_Shed_M01.hpp @@ -31,7 +31,7 @@ class Land_Shed_M01: House { { position = ""; displayName = $STR_DN_OUT_C_DOOR; - radius = 2; + radius = 3; onlyForPlayer = 0; condition = "this animationPhase 'open' == 1"; statement = "this animate ['open', 0];"; @@ -40,7 +40,7 @@ class Land_Shed_M01: House { { position = ""; displayName = $STR_DN_OUT_O_DOOR; - radius = 2; + radius = 3; onlyForPlayer = 0; condition = "this animationPhase 'open' == 0"; statement = "this animate ['open', 1];";