Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgMagazines/Buildings/Sandbag.hpp
A Man d744d995ef 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.
2021-12-23 16:42:04 +01:00

455 lines
12 KiB
C++

class ItemSandbag: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
model = "\dayz_equip\models\sandbags.p3d";
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
displayName = $STR_EQUIP_NAME_SANDBAGS;
descriptionShort = $STR_EQUIP_DESC_SANDBAGS;
class ItemActions
{
class Build
{
text = $STR_ACTION_BUILD;
script = "spawn player_build;";
require[] = {"ItemEtool"};
consume[] = {"ItemSandbag"};
create = "Sandbag1_DZ";
//bypass RoadCheck
byPass = "byPassRoadCheck";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_273;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemEtool","ItemToolbox"};
output[] = {{"ItemSandbagLarge",1}};
input[] = {{"ItemSandbag",3},{"ItemWire",1},{"ItemTankTrap",1}};
};
class Crafting1
{
text = $STR_EPOCH_PLAYER_274;
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemEtool","ItemToolbox"};
output[] = {{"sandbag_nest_kit",1}};
input[] = {{"ItemSandbag",4},{"PartWoodPlywood",2},{"PartWoodLumber",4}};
};
class Crafting2
{
text = $STR_EPOCH_PLAYER_298;
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {"workshop"};
requiretools[] = {"ItemEtool","ItemToolbox"};
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
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EQUIP_NAME_21_ROUND;
descriptionShort = $STR_EQUIP_DESC_21;
model = "\dayz_equip\models\sandbags.p3d";
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
class ItemActions
{
class Build
{
text = $STR_EPOCH_PLAYER_299;
script = "spawn player_build;";
require[] = {"ItemEtool"};
create = "BagFenceRound_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_195;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemEtool","ItemToolbox"};
output[] = {{"ItemSandbag",1}};
input[] = {{"BagFenceRound_DZ_kit",1}};
};
};
};
class ItemSandbagLarge: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EQUIP_NAME_21_HBARRIER;
descriptionShort = $STR_EQUIP_DESC_21_HBARRIER;
model = "\dayz_equip\models\sandbags.p3d"; // TODO model
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
class ItemActions
{
class Build
{
text = $STR_EPOCH_PLAYER_273_3;
script = "spawn player_build;";
require[] = {"ItemEtool"};
create = "Land_HBarrier1_DZ";
};
class Crafting
{
text = $STR_EPOCH_PLAYER_273_1;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemEtool","ItemToolbox"};
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
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EQUIP_NAME_21_3XHBARRIER;
descriptionShort = $STR_EQUIP_DESC_21_HBARRIER;
model = "\dayz_equip\models\sandbags.p3d"; // TODO model
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
class ItemActions
{
class Build
{
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; // "Craft 5x H-Barrier"
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemEtool","ItemToolbox"};
output[] = {{"ItemSandbagExLarge5x",1}};
input[] = {{"ItemSandbagExLarge",1},{"ItemSandbagLarge",2}};
};
};
};
class ItemSandbagExLarge5x: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EQUIP_NAME_21_5XHBARRIER;
descriptionShort = $STR_EQUIP_DESC_21_HBARRIER;
model = "\dayz_equip\models\sandbags.p3d"; // TODO model
picture = "\dayz_equip\textures\equip_sandbag_ca.paa";
class ItemActions
{
class Build
{
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}};
};
};
};
class sandbag_nest_kit: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EQUIP_NAME_21_NEST;
descriptionShort = $STR_EQUIP_DESC_21_NEST;
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[] = {"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";
};
};
};