Add cinder door with hatch

Models made by @Helion4
This commit is contained in:
AirwavesMan
2020-12-04 17:50:52 +01:00
parent 3e1040ff13
commit 9400e74ec4
5 changed files with 208 additions and 9 deletions

View File

@@ -144,7 +144,7 @@ class cinder_door_frame_kit: CA_Magazine
requiretools[] = {"ItemToolbox"};
output[] = {{"cinder_door_kit",1}};
input[] = {{"cinder_door_frame_kit",1},{"ItemPole",1},{"ItemTankTrap",1}};
};
};
};
};
@@ -153,8 +153,8 @@ class cinder_door_kit: CA_Magazine
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_BLOCKDOORWAY;
descriptionShort = $STR_EPOCH_BLOCKDOORWAY_DESC;
displayName = $STR_EPOCH_BLOCKDOOR;
descriptionShort = $STR_EPOCH_BLOCKDOOR_DESC;
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
@@ -176,6 +176,15 @@ class cinder_door_kit: CA_Magazine
output[] = {{"cinder_door_kit_locked",1}};
input[] = {{"cinder_door_kit",1},{"ItemComboLock",1}};
};
class Crafting1
{
text = $STR_EPOCH_PLAYER_238_2;
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox","ItemCrowbar"};
output[] = {{"cinder_door_hatch_kit",1}};
input[] = {{"cinder_door_kit",1}};
};
};
};
@@ -201,6 +210,59 @@ class cinder_door_kit_locked: CA_Magazine
};
};
class cinder_door_hatch_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_BLOCKDOOR_HATCH;
descriptionShort = $STR_EPOCH_BLOCKDOOR_HATCH_DESC;
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
class ItemActions
{
class Build
{
text = $STR_ACTIONS_BUILD;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "CinderDoorHatch_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_239;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {{"cinder_door_hatch_kit_locked",1}};
input[] = {{"cinder_door_hatch_kit",1},{"ItemComboLock",1}};
};
};
};
class cinder_door_hatch_kit_locked: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_BLOCKDOORLOCKED_HATCH;
descriptionShort = $STR_EPOCH_BLOCKDOORWAY_HATCH_LOCKED_DESC;
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
class ItemActions
{
class Build
{
text = $STR_ACTIONS_BUILD;
script = "spawn player_build;";
require[] = {"ItemToolbox"};
create = "CinderDoorHatchLocked_DZ";
};
};
};
class cinder_garage_frame_kit: CA_Magazine
{
scope = 2;

View File

@@ -1079,6 +1079,111 @@ class CinderGarageOpenTopLocked_DZ: CinderWallDoorLocked_DZ_Base {
};
};
class CinderDoorHatch_DZ: CinderWallDoor_DZ_Base {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\cinder\cinder_door_window\cinderdoor_hatch.p3d";
displayName = $STR_EPOCH_BLOCKDOOR_HATCH;
GhostPreview = "CinderDoorHatch_Preview_DZ";
upgradeBuilding[] = {"CinderDoorHatchLocked_DZ",{},{{"ItemComboLock",1}}};
class AnimationSources
{
class Open_door
{
source = "user";
animPeriod = 4;
initPhase = 0;
};
class Open_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 ""Open_door"" < 0.5";
statement = "this animate [""Open_door"", 1];this animate [""Open_doorR"", 1];";
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
condition = "this animationPhase ""Open_door"" >= 0.5";
statement = "this animate [""Open_door"", 0];this animate [""Open_doorR"", 0];";
};
};
};
class CinderDoorHatchLocked_DZ: CinderWallDoorLocked_DZ_Base {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\cinder\cinder_door_window\cinder_door_hatch_locked.p3d";
displayName = $STR_EPOCH_BLOCKDOORLOCKED_HATCH;
GhostPreview = "CinderDoorHatch_Preview_DZ";
downgradeBuilding[] = {"CinderDoorHatch_DZ",{{"ItemComboLock",1}}};
class AnimationSources
{
class Open_door
{
source = "user";
animPeriod = 4;
initPhase = 0;
};
class Open_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 ""Open_door"" == 0) and (this animationPhase ""Open_latch"" == 1)";
statement = "this animate [""Open_door"", 1];this animate [""Open_doorR"", 1];";
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
condition = "(this animationPhase ""Open_door"" == 1) and (this animationPhase ""Open_latch"" == 1)";
statement = "this animate [""Open_door"", 0];this animate [""Open_doorR"", 0];";
};
class Lock_Door : Open_Door
{
displayName = $STR_EPOCH_DOORS_LOCK;
condition = "(this animationPhase ""Open_door"" == 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 ""Open_door"" == 0) and (this animationPhase ""Open_latch"" == 0)";
statement = "this animate [""Open_latch"", 1]";
};
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 Door_DZ: CinderWallDoor_DZ_Base {
scope = 2;
armor = 1200;
@@ -1176,6 +1281,9 @@ class DoorLocked_DZ: CinderWallDoorLocked_DZ_Base {
class DestructionEffects {};
};
/*
Vanilla DayZ buildables are defined in \dayz_buildings\configs\
Only included here to overwrite vanilla ItemPadlock with Epoch ItemComboLock

View File

@@ -161,7 +161,7 @@ class Wood_GarageOpenTop_Preview_DZ: DZE_Ghost_Previews {
};
class CinderGarageOpenTop_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "z\addons\dayz_epoch_v\base_building\cinder\CinderGaragenotop\cindergarage_notop_ghost.p3d";
model = "\z\addons\dayz_epoch_v\base_building\cinder\CinderGaragenotop\cindergarage_notop_ghost.p3d";
displayName = "Cinder Garage open top Preview";
};
class DoorFrame_Preview_DZ: DZE_Ghost_Previews {
@@ -173,4 +173,9 @@ class CinderWallWindow_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\cinder\cinder_wall_win\h4_cinder_wall_win_ghost.p3d";
displayName = "Cinder Wall Window Preview";
};
class CinderDoorHatch_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\cinder\cinder_door_window\cinder_door_frame_ghost.p3d";
displayName = "Cinder door with hatch Preview";
};