From ad8ca46482e5d508ea1ec448fea5391831db3fee Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Thu, 29 Oct 2020 15:02:44 +0100 Subject: [PATCH] Add enterable model for the storage shed Model made by @Helion4 All map buildings and buildables will be replaced with the new model. Land_Shed_M01 still needs some loot positions. --- .../CfgVehicles/Buildings/Land_Shed_M01.hpp | 49 +++++++++++++++++++ .../Configs/CfgVehicles/CfgVehicles.hpp | 1 + 2 files changed, 50 insertions(+) create mode 100644 SQF/dayz_code/Configs/CfgVehicles/Buildings/Land_Shed_M01.hpp diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildings/Land_Shed_M01.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildings/Land_Shed_M01.hpp new file mode 100644 index 000000000..f663257cd --- /dev/null +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildings/Land_Shed_M01.hpp @@ -0,0 +1,49 @@ +class Land_Shed_M01: House { + + scope = 2; + armor = 30; + model = "\z\addons\dayz_epoch_v\base_building\storage\Shed_M01.p3d"; + class DestructionEffects: DestructionEffects + { + class Ruin1 + { + simulation = "ruin"; + type = "\ca\Buildings2\Shed_small\Shed_M01_ruins"; + position = ""; + intensity = 1; + interval = 1; + lifeTime = 1; + }; + }; + + class AnimationSources + { + class open//DoorR + { + source = "User"; + animPeriod = 1; + initPhase = 0; + }; + }; + class UserActions + { + class CloseDoor + { + position = ""; + displayName = $STR_DN_OUT_C_DOOR; + radius = 2; + onlyForPlayer = 0; + condition = "this animationPhase 'open' == 1"; + statement = "this animate ['open', 0];"; + }; + class OpenDoor + { + position = ""; + displayName = $STR_DN_OUT_O_DOOR; + radius = 2; + onlyForPlayer = 0; + condition = "this animationPhase 'open' == 0"; + statement = "this animate ['open', 1];"; + }; + }; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp b/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp index cfd403206..1f2abbcce 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp @@ -447,6 +447,7 @@ class CfgVehicles #include "Buildings\Land_Ind_Oil_Pump_EP1_DZE.hpp" //Oil Pump without sound #include "Buildings\Fuelstations.hpp" #include "Buildings\land_ibr_hangar.hpp" //Works only if Lingor is loaded + #include "Buildings\Land_Shed_M01.hpp" // Animated door and interior, made by Helion4 #include "Land_Fire.hpp" #include "WaterSources.hpp"