Add cinder wall with window

Model made by @Helion4
This commit is contained in:
AirwavesMan
2020-12-04 14:21:59 +01:00
parent fb407679f8
commit 3e1040ff13
7 changed files with 232 additions and 14 deletions

View File

@@ -64,6 +64,59 @@ class full_cinder_wall_kit: CA_Magazine
};
};
class cinderwall_window_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_CINDERBLOCKWALLWINDOW;
descriptionShort = $STR_EPOCH_CINDERBLOCKWALLWINDOW_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 = "CinderWallWindow_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_239_1_2;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {{"cinderwall_window_locked_kit",1}};
input[] = {{"cinderwall_window_kit",1},{"ItemComboLock",1}};
};
};
};
class cinderwall_window_locked_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_CINDERBLOCKWALLWINDOW_LOCKED;
descriptionShort = $STR_EPOCH_CINDERBLOCKWALLWINDOW_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 = "CinderWallWindowLocked_DZ";
};
};
};
class cinder_door_frame_kit: CA_Magazine
{
scope = 2;
@@ -1360,4 +1413,5 @@ class door_locked_kit: CA_Magazine
create = "DoorLocked_DZ";
};
};
};
};

View File

@@ -83,35 +83,44 @@ class CinderBlocks: CA_Magazine
};
class Crafting2
{
text = $STR_EPOCH_PLAYER_234;
text = $STR_EPOCH_PLAYER_239_1_3;
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"cinderwall_window_kit",1}};
input[] = {{"CinderBlocks",5},{"MortarBucket",1},{"ItemTankTrap",1},{"ItemPole",1}};
};
class Crafting3
{
text = $STR_EPOCH_PLAYER_234;
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"cinder_door_frame_kit",1}};
input[] = {{"CinderBlocks",4},{"MortarBucket",1},{"ItemTankTrap",1}};
};
class Crafting3
class Crafting4
{
text = $STR_EPOCH_PLAYER_253;
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
script = ";['Crafting4','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"cinder_garage_frame_kit",1}};
input[] = {{"CinderBlocks",3},{"MortarBucket",1},{"ItemTankTrap",1}};
};
class Crafting4
class Crafting5
{
text = $STR_EPOCH_PLAYER_253_1_1;
script = ";['Crafting4','CfgMagazines', _id] spawn player_craftItem;";
script = ";['Crafting5','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"cinder_garage_top_open_frame_kit",1}};
input[] = {{"CinderBlocks",4},{"MortarBucket",1}};
};
class Crafting5
class Crafting6
{
text = $STR_EPOCH_PLAYER_253_1;
script = ";['Crafting5','CfgMagazines', _id] spawn player_craftItem;";
script = ";['Crafting6','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemToolbox"};
output[] = {{"cinder_gate_frame_kit",1}};

View File

@@ -39,6 +39,128 @@ class CinderWall_DZ: ModularItems {
};
};
class CinderWallWindow_DZ: ModularItems {
scope = 2;
offset[] = {0,2,0};
armor = 3400;
model = "\z\addons\dayz_epoch_v\base_building\cinder\cinder_wall_win\h4_cinder_wall_win.p3d";
displayName = $STR_EPOCH_CINDERBLOCKWALLWINDOW;
GhostPreview = "CinderWallWindow_Preview_DZ";
upgradeBuilding[] = {"CinderWallWindowLocked_DZ",{},{{"ItemComboLock",1}}};
maintainBuilding[] = {{"MortarBucket",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 DestructionEffects : DestructionEffects {
class Ruin1 {
simulation = "ruin";
type = "\z\addons\dayz_epoch\models\wreck_cinder.p3d";
position = "";
intensity = 1;
interval = 1;
lifeTime = 1;
};
};
};
class CinderWallWindowLocked_DZ: CinderWallDoorLocked_DZ_Base {
scope = 2;
offset[] = {0,2,0};
armor = 3400;
model = "\z\addons\dayz_epoch_v\base_building\cinder\cinder_wall_win\h4_cinder_wall_win_locked.p3d";
displayName = $STR_EPOCH_CINDERBLOCKWALLWINDOW_LOCKED;
GhostPreview = "CinderWallWindow_Preview_DZ";
downgradeBuilding[] = {"CinderWallWindow_DZ",{{"ItemComboLock",1}}};
maintainBuilding[] = {{"MortarBucket",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 CinderWallDoorway_DZ: ModularItems {
scope = 2;
offset[] = {0,2,0};

View File

@@ -255,7 +255,7 @@ class WoodFloorStairs_DZ: ModularItems {
offset[] = {0,4,0};
model = "\z\addons\dayz_epoch_v\base_building\floors\wood_floor_stairs.p3d";
armor = 1000;
displayName = "Wood floor w/Stairs";
displayName = $STR_EPOCH_WOODFLOORSTAIRS;
maintainBuilding[] = {{"PartWoodLumber",4}};
GhostPreview = "Wood_Floor_Stairs_Preview_DZ";
};

View File

@@ -168,4 +168,9 @@ class DoorFrame_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "\z\addons\dayz_epoch\models\Steel_door_frame_single_ghost.p3d";
displayName = "Door Frame Preview";
};
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";
};