Add metal pillar

Model made by @Helion4
This commit is contained in:
AirwavesMan
2020-12-04 19:44:18 +01:00
parent 9400e74ec4
commit 10ce6cb2cc
7 changed files with 128 additions and 4 deletions

View File

@@ -20,6 +20,28 @@ class metal_floor_kit: CA_Magazine
};
};
class metal_pillar_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_METALPILLAR;
descriptionShort = $STR_EPOCH_METALPILLAR_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 = "MetalPillar_DZ";
};
};
};
class half_cinder_wall_kit: CA_Magazine
{
scope = 2;
@@ -1477,3 +1499,4 @@ class door_locked_kit: CA_Magazine
};
};

View File

@@ -118,6 +118,16 @@ class ItemMetalSheet: CA_Magazine
picture = "\z\addons\dayz_buildings\equip\item_sheetmetal.paa";
model = "z\addons\dayz_buildings\models\sheet_metal.p3d";
descriptionShort = $STR_BLD_desc_ItemMetalSheet;//"Metal Sheeting"
class Crafting
{
text = $STR_EPOCH_PLAYER_218;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"fire"};
requiretools[] = {"ItemToolbox","ItemCrowbar"};
output[] = {{"ItemCorrugated",1}};
input[] = {{"ItemPole",2},{"ItemMetalSheet",2},{"PartWoodLumber",2}};
};
};
class equip_metal_sheet : CA_Magazine
@@ -129,6 +139,16 @@ class equip_metal_sheet : CA_Magazine
model = "\z\addons\dayz_communityassets\models\metal_sheet_clean.p3d";
picture = "\z\addons\dayz_communityassets\CraftingPlaceholders\equip_metal_sheet.paa";
type = 256;
class Crafting
{
text = $STR_EPOCH_PLAYER_213_1;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"fire"};
requiretools[] = {"ItemToolbox","ItemCrowbar"};
output[] = {{"metal_pillar_kit",2}};
input[] = {{"ItemPole",2},{"equip_metal_sheet",4}};
};
};
class equip_metal_sheet_rusted : CA_Magazine

View File

@@ -245,4 +245,54 @@ class CinderGarageOpenTopFrame_DZ: ModularItems {
lifeTime = 1;
};
};
};
};
/* Model not finshed
class HeliNest_DZ: ModularItems {
scope = 2;
armor = 7000;
model = "\z\addons\dayz_epoch_v\base_building\floors\helinest\all_heli_shop.p3d";
displayName = "Helinest";
GhostPreview = "Helinest_Preview_DZ";
class AnimationSources
{
class door1
{
source = "user";
animPeriod = 2;
initPhase = 0;
};
class door2: door1{};
class door3: door1{};
class door4: door1{};
class door5: door1{};
class door6: door1{};
class door7: door1{};
class door8: door1{};
class door9: door1{};
class door10: door1{};
};
class UserActions
{
class Open_Door
{
displayName = $STR_DN_OUT_O_DOOR;
onlyforplayer = true;
position = "Door_knopf";
radius = 3;
condition = "(this animationPhase ""door1"" == 0)";
statement = "this animate [""door1"", 1];this animate [""door2"", 1];this animate [""door3"", 1];this animate [""door4"", 1];this animate [""door5"", 1];this animate [""door6"", 1];this animate [""door7"", 1];this animate [""door8"", 1];this animate [""door9"", 1]; this animate [""door10"", 1];";
};
class Close_Door : Open_Door
{
displayName = $STR_DN_OUT_C_DOOR;
condition = "(this animationPhase ""door1"" == 1)";
// statement = "this animate [""door1"", 0];this animate [""Open_doorR"", 0];";
statement = "this animate [""door1"", 0];this animate [""door2"", 0];this animate [""door3"", 0];this animate [""door4"", 0];this animate [""door5"", 0];this animate [""door6"", 0];this animate [""door7"", 0];this animate [""door8"", 0];this animate [""door9"", 0]; this animate [""door10"", 0];";
};
};
};
*/

View File

@@ -28,3 +28,12 @@ class DoorFrame_DZ: ModularItems {
upgradeBuilding[] = {"Door_DZ",{"ItemToolbox"},{{"ItemPole",1},{"ItemTankTrap",1}}};
};
class MetalPillar_DZ: ModularItems {
scope = 2;
offset[] = {0,2,0};
model = "\z\addons\dayz_epoch_v\base_building\cinder\pillar\metal_cornerpillar.p3d";
armor = 3400;
displayName = $STR_EPOCH_METALPILLAR;
maintainBuilding[] = {{"PartGeneric",1}};
GhostPreview = "MetalPillar_Preview_DZ";
};

View File

@@ -178,4 +178,14 @@ 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";
};
class Helinest_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\floors\helinest\all_heli_shop_ghost.p3d";
displayName = "Helinest Preview";
};
class MetalPillar_Preview_DZ: DZE_Ghost_Previews {
scope = 2;
model = "\z\addons\dayz_epoch_v\base_building\cinder\pillar\metal_cornerpillar.p3d";
displayName = "Metal Pillar Preview";
};