Add a new wooden garage door version

Model made by @Helion4
This commit is contained in:
AirwavesMan
2020-11-30 11:38:49 +01:00
parent 66a7757501
commit 25c19520b5
5 changed files with 250 additions and 14 deletions

View File

@@ -83,6 +83,15 @@ class cinder_door_kit: CA_Magazine
require[] = {"ItemToolbox"};
create = "CinderWallSmallDoorway_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_239;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {{"cinder_door_kit_locked",1}};
input[] = {{"cinder_door_kit",1},{"ItemComboLock",1}};
};
};
};
@@ -127,6 +136,15 @@ class cinder_garage_kit: CA_Magazine
require[] = {"ItemToolbox"};
create = "CinderWallDoorway_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_239;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {{"cinder_garage_kit_locked",1}};
input[] = {{"cinder_garage_kit",1},{"ItemComboLock",1}};
};
};
};
@@ -194,6 +212,15 @@ class cinder_gate_kit: CA_Magazine
require[] = {"ItemToolbox"};
create = "CinderGate_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_239_1;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {{"cinder_gate_kit_locked",1}};
input[] = {{"cinder_gate_kit",1},{"ItemComboLock",1}};
};
};
};
@@ -712,8 +739,8 @@ class ItemWoodWallWithDoor: CA_Magazine
{
text = $STR_EPOCH_PLAYER_239;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
neednearby[] = {};
requiretools[] = {};
output[] = {{"ItemWoodWallWithDoorLocked",1}};
input[] = {{"ItemWoodWallWithDoor",1},{"ItemComboLock",1}};
};
@@ -763,10 +790,10 @@ class ItemWoodWallGarageDoor: CA_Magazine
};
class Crafting
{
text = $STR_EPOCH_PLAYER_240;
text = $STR_EPOCH_PLAYER_239;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
neednearby[] = {};
requiretools[] = {};
output[] = {{"ItemWoodWallGarageDoorLocked",1}};
input[] = {{"ItemWoodWallGarageDoor",1},{"ItemComboLock",1}};
};
@@ -795,6 +822,59 @@ class ItemWoodWallGarageDoorLocked: CA_Magazine
};
};
class ItemWoodOpenTopGarageDoor: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_WOODOPENTOPGARAGEDOOR;
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
descriptionShort = $STR_EPOCH_WOODOPENTOPGARAGEDOOR_DESC;
class ItemActions
{
class Build
{
text = $STR_ACTIONS_BUILD;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "Land_DZE_WoodOpenTopGarageDoor";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_239;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {{"ItemWoodOpenTopGarageDoorLocked",1}};
input[] = {{"ItemWoodOpenTopGarageDoor",1},{"ItemComboLock",1}};
};
};
};
class ItemWoodOpenTopGarageDoorLocked: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_WOODOPENTOPGARAGEDOORLOCKED;
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
descriptionShort = $STR_EPOCH_WOODOPENTOPGARAGEDOORLOCKED_DESC;
class ItemActions
{
class Build
{
text = $STR_ACTIONS_BUILD;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "Land_DZE_WoodOpenTopGarageLocked";
};
};
};
class ItemWoodWallLg: CA_Magazine
{
scope = 2;
@@ -840,6 +920,15 @@ class ItemWoodWallLg: CA_Magazine
output[] = {{"ItemWoodWallGarageDoor",1}};
input[] = {{"ItemWoodWallLg",1},{"PartWoodLumber",2}};
};
class Crafting3
{
text = $STR_EPOCH_PLAYER_240_1;
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"ItemWoodOpenTopGarageDoor",1}};
input[] = {{"ItemWoodWallLg",1},{"PartWoodLumber",2}};
};
};
};
@@ -919,8 +1008,8 @@ class ItemWoodWallWithDoorLg: CA_Magazine
{
text = $STR_EPOCH_PLAYER_239;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
neednearby[] = {};
requiretools[] = {};
output[] = {{"ItemWoodWallWithDoorLgLocked",1}};
input[] = {{"ItemWoodWallWithDoorLg",1},{"ItemComboLock",1}};
};
@@ -991,6 +1080,15 @@ class ItemWoodGate: CA_Magazine
require[] = {"ItemToolbox"};
create = "Land_DZE_WoodGate";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_239_1;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {{"ItemWoodGateLocked",1}};
input[] = {{"ItemWoodGate",1},{"ItemComboLock",1}};
};
};
};

View File

@@ -572,6 +572,111 @@ class Land_DZE_WoodGateLocked: Land_DZE_WoodDoorLocked_Base {
};
};
class Land_DZE_WoodOpenTopGarageDoor: Land_DZE_WoodDoor_Base {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\wood\garage_notop\wood_garage_notop.p3d";
displayName = $STR_EPOCH_WOODOPENTOPGARAGEDOOR;
GhostPreview = "Wood_GarageOpenTop_Preview_DZ";
upgradeBuilding[] = {"Land_DZE_WoodOpenTopGarageLocked",{},{{"ItemComboLock",1}}};
class AnimationSources
{
class doorl
{
source = "user";
animPeriod = 4;
initPhase = 0;
};
class doorR
{
source = "user";
animPeriod = 4;
initPhase = 0;
};
};
class UserActions
{
class Open_Door
{
displayName = $STR_DN_OUT_O_DOOR;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
condition = "this animationPhase ""doorl"" < 0.5";
statement = "this animate [""doorl"", 1];this animate [""doorR"", 1];";
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
condition = "this animationPhase ""doorl"" >= 0.5";
statement = "this animate [""doorl"", 0];this animate [""doorR"", 0];";
};
};
};
class Land_DZE_WoodOpenTopGarageLocked: Land_DZE_WoodDoorLocked_Base {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\wood\garage_notop\locked_wood_garage_notop.p3d";
displayName = $STR_EPOCH_WOODOPENTOPGARAGEDOORLOCKED;
GhostPreview = "Wood_GarageOpenTop_Preview_DZ";
downgradeBuilding[] = {"Land_DZE_WoodOpenTopGarageDoor",{{"ItemComboLock",1}}};
class AnimationSources
{
class doorl
{
source = "user";
animPeriod = 4;
initPhase = 0;
};
class doorR
{
source = "user";
animPeriod = 4;
initPhase = 0;
};
class Open_latch
{
source = "user";
animPeriod = 1;
initPhase = 0;
};
};
class UserActions
{
class Open_Door
{
displayName = $STR_DN_OUT_O_DOOR;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
condition = "(this animationPhase ""doorl"" == 0) and (this animationPhase ""Open_latch"" == 1)";
statement = "this animate [""doorl"", 1];this animate [""doorR"", 1];";
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
condition = "(this animationPhase ""doorl"" == 1) and (this animationPhase ""Open_latch"" == 1)";
statement = "this animate [""doorl"", 0];this animate [""doorR"", 0];";
};
class Lock_Door : Open_Door
{
displayName = $STR_EPOCH_DOORS_LOCK;
condition = "(this animationPhase ""doorl"" == 0) and (this animationPhase ""Open_latch"" == 1)";
statement = "PVDZE_handleSafeGear = [player,this,4];publicVariableServer ""PVDZE_handleSafeGear"";this animate [""Open_latch"", 0]";
};
class Unlock_Door : Open_Door
{
displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "(!keypadCancel and DZE_Lock_Door == (this getvariable['CharacterID','0'])) and (this animationPhase ""doorl"" == 0) and (this animationPhase ""Open_latch"" == 0)";
statement = "this animate [""Open_latch"", 1];PVDZE_handleSafeGear = [player,this,5,DZE_Lock_Door];publicVariableServer ""PVDZE_handleSafeGear"";";
};
class Unlock_Door_Dialog : Open_Door
{
displayName = $STR_EPOCH_DOORS_UNLOCK;
condition = "!keypadCancel and DZE_Lock_Door != (this getvariable['CharacterID','0'])";
statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};";
};
};
};
class CinderWallDoorLocked_DZ: CinderWallDoorLocked_DZ_Base {
scope = 2;
model = "\z\addons\dayz_epoch\models\steel_garage_locked.p3d";

View File

@@ -132,7 +132,7 @@ class CinderGate_Preview_DZ: DZE_Ghost_Previews {
};
class Drawbridge_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "z\addons\dayz_epoch_v\base_building\wood\draw_bridge\wood_draw_bridge_ghost.p3d";
model = "\z\addons\dayz_epoch_v\base_building\wood\draw_bridge\wood_draw_bridge_ghost.p3d";
displayName = "Metal Drawbridge Preview";
};
class Wood_Triangle_Wall_Preview_DZ: DZE_Ghost_Previews {
@@ -152,6 +152,11 @@ class Wood_Floor_Stairs_Preview_DZ: DZE_Ghost_Previews {
};
class Wood_Pillar_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "z\addons\dayz_epoch_v\base_building\wood\pillar\corner_pillar.p3d";
model = "\z\addons\dayz_epoch_v\base_building\wood\pillar\corner_pillar.p3d";
displayName = "Wood Pillar Preview";
};
};
class Wood_GarageOpenTop_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\wood\garage_notop\wood_garage_notop_frame.p3d";
displayName = "WoodGarage open top Preview";
};