mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-03-01 11:11:52 +03:00
Add many new buildable fortifications
Mady by @Victor-the-Cleaner Also change some base building baseclasses to work better with the new upcoming modular_build changes and snapping.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class ItemSandbag : CA_Magazine
|
||||
class ItemSandbag: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
@@ -47,10 +47,19 @@ class ItemSandbag : CA_Magazine
|
||||
output[] = {{"BagFenceRound_DZ_kit",1}};
|
||||
input[] = {{"ItemSandbag",1}};
|
||||
};
|
||||
class Crafting3
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_HBF; // "Craft Heavy Bag Fence"
|
||||
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemSandbagHeavy_kit",1}};
|
||||
input[] = {{"ItemSandbag",2},{"PartWoodPile",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class BagFenceRound_DZ_kit : CA_Magazine
|
||||
class BagFenceRound_DZ_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
@@ -81,7 +90,7 @@ class BagFenceRound_DZ_kit : CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class ItemSandbagLarge : CA_Magazine
|
||||
class ItemSandbagLarge: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
@@ -109,10 +118,19 @@ class ItemSandbagLarge : CA_Magazine
|
||||
output[] = {{"ItemSandbagExLarge",1}};
|
||||
input[] = {{"ItemSandbagLarge",3}};
|
||||
};
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_WBARRIER5; // "Craft 5x Warfare Barrier"
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemWarfareBarrier5x_kit",1}};
|
||||
input[] = {{"ItemSandbagLarge",5}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemSandbagExLarge : CA_Magazine
|
||||
class ItemSandbagExLarge: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
@@ -126,14 +144,14 @@ class ItemSandbagExLarge : CA_Magazine
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_273_4;
|
||||
text = $STR_EPOCH_PLAYER_273_4; // "Build 3x H-Barrier"
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool"};
|
||||
create = "Land_HBarrier3_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_273_2;
|
||||
text = $STR_EPOCH_PLAYER_273_2; // "Craft 5x H-Barrier"
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
@@ -143,7 +161,7 @@ class ItemSandbagExLarge : CA_Magazine
|
||||
};
|
||||
};
|
||||
|
||||
class ItemSandbagExLarge5x : CA_Magazine
|
||||
class ItemSandbagExLarge5x: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
@@ -157,11 +175,51 @@ class ItemSandbagExLarge5x : CA_Magazine
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_273_5;
|
||||
text = $STR_EPOCH_PLAYER_273_5; // "Build 5x H-Barrier"
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool"};
|
||||
create = "Land_HBarrier5_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_HBARRIER5CURVED; // "Craft 5x H-Barrier (Curved)"
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemSandbagExLarge5xCurved",1}};
|
||||
input[] = {{"ItemSandbagExLarge5x",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemSandbagExLarge5xCurved: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EQUIP_NAME_HBARRIER5CURVED;
|
||||
descriptionShort = $STR_EQUIP_DESC_HBARRIER5CURVED;
|
||||
model = "\dayz_equip\models\sandbags.p3d";
|
||||
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_HBARRIER5CURVED_2; // "Build 5x H-Barrier (Curved)"
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool"};
|
||||
create = "Land_HBarrier5Curved_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_273_2; // "Craft 5x H-Barrier"
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemSandbagExLarge5x",1}};
|
||||
input[] = {{"ItemSandbagExLarge5xCurved",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -184,5 +242,213 @@ class sandbag_nest_kit: CA_Magazine
|
||||
require[] = {"ItemEtool","ItemToolbox"};
|
||||
create = "SandNest_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_LARGENEST; // "Craft Large Sandbag Nest"
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"sandbag_nest_large_kit",1}};
|
||||
input[] = {{"sandbag_nest_kit",4},{"ItemSandBagHeavyCorner_kit",4}};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class sandbag_nest_large_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EQUIP_NAME_LARGENEST;
|
||||
descriptionShort = $STR_EQUIP_DESC_LARGENEST;
|
||||
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_EPOCH_PLAYER_LARGENEST_2; // "Build Large Sandbag Nest"
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool","ItemToolbox"};
|
||||
create = "SandNestLarge_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemSandbagHeavy_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EQUIP_NAME_HBF; // "Heavy Bag Fence"
|
||||
descriptionShort = $STR_EQUIP_DESC_HBF;
|
||||
model = "\dayz_equip\models\sandbags.p3d";
|
||||
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class build
|
||||
{
|
||||
text = $STR_ACTIONS_BUILD;
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool","ItemToolbox"};
|
||||
create = "HeavyBagFence_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_HBF_CORNER; // "Craft Heavy Bag Fence (Corner)"
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemSandBagHeavyCorner_kit",1}};
|
||||
input[] = {{"ItemSandbagHeavy_kit",2}};
|
||||
};
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_HBF_ROUND; // "Craft Heavy Bag Fence (Round)"
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemSandbagHeavyRound_kit",1}};
|
||||
input[] = {{"ItemSandbagHeavy_kit",3}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemSandBagHeavyCorner_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EQUIP_NAME_HBF_CORNER; // "Heavy Bag Fence (Corner)"
|
||||
descriptionShort = $STR_EQUIP_DESC_HBF_CORNER;
|
||||
model = "\dayz_equip\models\sandbags.p3d";
|
||||
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class build
|
||||
{
|
||||
text = $STR_ACTIONS_BUILD;
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool","ItemToolbox"};
|
||||
create = "HeavyBagFenceCorner_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_LARGENEST; // "Craft Large Sandbag Nest"
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"sandbag_nest_large_kit",1}};
|
||||
input[] = {{"sandbag_nest_kit",4},{"ItemSandBagHeavyCorner_kit",4}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemSandbagHeavyRound_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EQUIP_NAME_HBF_ROUND; // "Heavy Bag Fence (Round)"
|
||||
descriptionShort = $STR_EQUIP_DESC_HBF_ROUND;
|
||||
model = "\dayz_equip\models\sandbags.p3d";
|
||||
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class build
|
||||
{
|
||||
text = $STR_ACTIONS_BUILD;
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool","ItemToolbox"};
|
||||
create = "HeavyBagFenceRound_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemWarfareBarrier5x_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EQUIP_NAME_WBARRIER5;
|
||||
descriptionShort = $STR_EQUIP_DESC_WBARRIER5;
|
||||
model = "\dayz_equip\models\sandbags.p3d";
|
||||
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_WBARRIER5_2; // "Build 5x Warfare Barrier"
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool"};
|
||||
create = "Land_WarfareBarrier5x_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_WBARRIER10; // "Craft 10x Warfare Barrier"
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemWarfareBarrier10x_kit",1}};
|
||||
input[] = {{"ItemWarfareBarrier5x_kit",2}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemWarfareBarrier10x_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EQUIP_NAME_WBARRIER10;
|
||||
descriptionShort = $STR_EQUIP_DESC_WBARRIER10;
|
||||
model = "\dayz_equip\models\sandbags.p3d";
|
||||
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_WBARRIER10_2; // "Build 10x Warfare Barrier"
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool"};
|
||||
create = "Land_WarfareBarrier10x_DZ";
|
||||
};
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_WBARRIER10TALL; // "Craft 10x Warfare Barrier (Tall)"
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemWarfareBarrier10xTall_kit",1}};
|
||||
input[] = {{"ItemWarfareBarrier10x_kit",3}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemWarfareBarrier10xTall_kit: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EQUIP_NAME_WBARRIER10TALL;
|
||||
descriptionShort = $STR_EQUIP_DESC_WBARRIER10TALL;
|
||||
model = "\dayz_equip\models\sandbags.p3d";
|
||||
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Build
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_WBARRIER10TALL_2; // "Build 10x Warfare Barrier (Tall)"
|
||||
script = "spawn player_build;";
|
||||
require[] = {"ItemEtool"};
|
||||
create = "Land_WarfareBarrier10xTall_DZ";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user