diff --git a/SQF/dayz_code/Configs/CfgMagazines/Buildings/Misc.hpp b/SQF/dayz_code/Configs/CfgMagazines/Buildings/Misc.hpp index 9187cdd9b..6a92b3e80 100644 --- a/SQF/dayz_code/Configs/CfgMagazines/Buildings/Misc.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines/Buildings/Misc.hpp @@ -908,3 +908,406 @@ class cctv_kit: CA_Magazine }; }; }; + +class concrete_barrier_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_CNC_BARRIER; + descriptionShort = $STR_EQUIP_DESC_CNC_BARRIER; + 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_ACTION_BUILD_CNC_BARRIER; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "ConcreteBarrier_DZ"; + }; + class Crafting + { + text = $STR_EPOCH_ACTION_CRAFT_CNC_BARRIER_STRIPED; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"concrete_barrier_striped_kit",1}}; + input[] = {{"concrete_barrier_kit",1}}; + }; + class Crafting1 + { + text = $STR_EPOCH_ACTION_CRAFT_CONCRETE_WALL; + script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"workshop"}; + requiretools[] = {"ItemToolbox","ItemSledge"}; + output[] = {{"concrete_wall_kit",1}}; + input[] = {{"concrete_barrier_kit",5},{"CementBag",2}}; + }; + class Crafting2 + { + text = $STR_EPOCH_ACTION_CRAFT_CONCRETE_PIPE; + script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"workshop"}; + requiretools[] = {"ItemToolbox","ItemSledge"}; + output[] = {{"concrete_pipe_kit",1}}; + input[] = {{"concrete_barrier_kit",6},{"CementBag",2}}; + }; + }; +}; + +class concrete_barrier_striped_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_CNC_BARRIER_STRIPED; + descriptionShort = $STR_EQUIP_DESC_CNC_BARRIER_STRIPED; + 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_ACTION_BUILD_CNC_BARRIER_STRIPED; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "ConcreteBarrierStriped_DZ"; + }; + class Crafting + { + text = $STR_EPOCH_ACTION_CRAFT_CNC_BARRIER; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"concrete_barrier_kit",1}}; + input[] = {{"concrete_barrier_striped_kit",1}}; + }; + }; +}; + +class concrete_wall_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_CONCRETE_WALL; + descriptionShort = $STR_EQUIP_DESC_CONCRETE_WALL; + 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_ACTION_BUILD_CONCRETE_WALL; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "ConcreteWall_DZ"; + }; + class Crafting + { + text = $STR_EPOCH_ACTION_CRAFT_DRAGONTEETH; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"workshop"}; + requiretools[] = {"ItemToolbox","ItemSledge"}; + output[] = {{"dragonteeth_kit",1}}; + input[] = {{"concrete_wall_kit",1},{"ItemStone",6},{"CementBag",4}}; + }; + }; +}; + +class concrete_pipe_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_CONCRETE_PIPE; + descriptionShort = $STR_EQUIP_DESC_CONCRETE_PIPE; + 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_ACTION_BUILD_CONCRETE_PIPE; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "ConcretePipe_DZ"; + }; + }; +}; + +class dragonteeth_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_DRAGONTEETH; + descriptionShort = $STR_EQUIP_DESC_DRAGONTEETH; + 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_ACTION_BUILD_DRAGONTEETH; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "DragonTeeth_DZ"; + }; + class Crafting + { + text = $STR_EPOCH_ACTION_CRAFT_DRAGONTEETH_BIG; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"workshop"}; + requiretools[] = {"ItemToolbox","ItemSledge"}; + output[] = {{"dragonteeth_big_kit",1}}; + input[] = {{"dragonteeth_kit",1},{"ItemStone",6},{"CementBag",4}}; + }; + }; +}; + +class dragonteeth_big_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_DRAGONTEETH_BIG; + descriptionShort = $STR_EQUIP_DESC_DRAGONTEETH_BIG; + 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_ACTION_BUILD_DRAGONTEETH_BIG; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "DragonTeethBig_DZ"; + }; + }; +}; + +class simple_footbridge_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_SIMPLE_FOOTBRIDGE; + descriptionShort = $STR_EQUIP_DESC_SIMPLE_FOOTBRIDGE; + 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_ACTION_BUILD_SIMPLE_FOOTBRIDGE; + script = "spawn player_build;"; + require[] = {}; + create = "SimpleFootbridge_DZ"; + }; + }; +}; + +class wooden_footbridge_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_WOODEN_FOOTBRIDGE; + descriptionShort = $STR_EQUIP_DESC_WOODEN_FOOTBRIDGE; + 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_ACTION_BUILD_WOODEN_FOOTBRIDGE; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "WoodenFootbridge_DZ"; + }; + }; +}; + +class windbreak_kit: CA_Magazine +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_WINDBREAK; + descriptionShort = $STR_EQUIP_DESC_WINDBREAK; + 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_ACTION_BUILD_WINDBREAK; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "Windbreak_DZ"; + }; + }; +}; + +class metal_container_1a_kit: CA_Magazine // red +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1A; + descriptionShort = $STR_EQUIP_DESC_METAL_CONTAINER_1A; + 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_ACTION_BUILD_METAL_CONTAINER_1A; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "MetalContainer1A_DZ"; + }; + class Crafting + { + text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1B; // craft green + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"metal_container_1b_kit",1}}; + input[] = {{"metal_container_1a_kit",1}}; + }; + class Crafting1 + { + text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1G; // craft white + script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"metal_container_1g_kit",1}}; + input[] = {{"metal_container_1a_kit",1}}; + }; + class Crafting2 + { + text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_2D; // craft 2x red + script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {"ItemToolbox"}; + output[] = {{"metal_container_2d_kit",1}}; + input[] = {{"metal_container_1a_kit",2}}; + }; + }; +}; + +class metal_container_1b_kit: CA_Magazine // green +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1B; + descriptionShort = $STR_EQUIP_DESC_METAL_CONTAINER_1B; + 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_ACTION_BUILD_METAL_CONTAINER_1B; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "MetalContainer1B_DZ"; + }; + class Crafting + { + text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1A; // craft red + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"metal_container_1a_kit",1}}; + input[] = {{"metal_container_1b_kit",1}}; + }; + class Crafting1 + { + text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1G; // craft white + script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"metal_container_1g_kit",1}}; + input[] = {{"metal_container_1b_kit",1}}; + }; + }; +}; + +class metal_container_1g_kit: CA_Magazine // white +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1G; + descriptionShort = $STR_EQUIP_DESC_METAL_CONTAINER_1G; + 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_ACTION_BUILD_METAL_CONTAINER_1G; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "MetalContainer1G_DZ"; + }; + class Crafting + { + text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1A; // craft red + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"metal_container_1a_kit",1}}; + input[] = {{"metal_container_1g_kit",1}}; + }; + class Crafting1 + { + text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1B; // craft green + script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"metal_container_1b_kit",1}}; + input[] = {{"metal_container_1g_kit",1}}; + }; + }; +}; + +class metal_container_2d_kit: CA_Magazine // 2x red +{ + scope = 2; + count = 1; + type = 256; + displayName = $STR_EQUIP_NAME_METAL_CONTAINER_2D; + descriptionShort = $STR_EQUIP_DESC_METAL_CONTAINER_2D; + 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_ACTION_BUILD_METAL_CONTAINER_2D; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "MetalContainer2D_DZ"; + }; + }; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgMagazines/Buildings/ModularBuilding.hpp b/SQF/dayz_code/Configs/CfgMagazines/Buildings/ModularBuilding.hpp index 0718f0eb7..5ee08c69a 100644 --- a/SQF/dayz_code/Configs/CfgMagazines/Buildings/ModularBuilding.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines/Buildings/ModularBuilding.hpp @@ -835,192 +835,6 @@ class cinder_bunker_kit_locked: CA_Magazine }; }; -class concrete_barrier_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_CNC_BARRIER; - descriptionShort = $STR_EQUIP_DESC_CNC_BARRIER; - 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_ACTION_BUILD_CNC_BARRIER; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "ConcreteBarrier_DZ"; - }; - class Crafting - { - text = $STR_EPOCH_ACTION_CRAFT_CNC_BARRIER_STRIPED; - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {}; - output[] = {{"concrete_barrier_striped_kit",1}}; - input[] = {{"concrete_barrier_kit",1}}; - }; - class Crafting1 - { - text = $STR_EPOCH_ACTION_CRAFT_CONCRETE_WALL; - script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"workshop"}; - requiretools[] = {"ItemToolbox","ItemSledge"}; - output[] = {{"concrete_wall_kit",1}}; - input[] = {{"concrete_barrier_kit",5},{"CementBag",2}}; - }; - class Crafting2 - { - text = $STR_EPOCH_ACTION_CRAFT_CONCRETE_PIPE; - script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"workshop"}; - requiretools[] = {"ItemToolbox","ItemSledge"}; - output[] = {{"concrete_pipe_kit",1}}; - input[] = {{"concrete_barrier_kit",6},{"CementBag",2}}; - }; - }; -}; - -class concrete_barrier_striped_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_CNC_BARRIER_STRIPED; - descriptionShort = $STR_EQUIP_DESC_CNC_BARRIER_STRIPED; - 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_ACTION_BUILD_CNC_BARRIER_STRIPED; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "ConcreteBarrierStriped_DZ"; - }; - class Crafting - { - text = $STR_EPOCH_ACTION_CRAFT_CNC_BARRIER; - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {}; - output[] = {{"concrete_barrier_kit",1}}; - input[] = {{"concrete_barrier_striped_kit",1}}; - }; - }; -}; - -class concrete_wall_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_CONCRETE_WALL; - descriptionShort = $STR_EQUIP_DESC_CONCRETE_WALL; - 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_ACTION_BUILD_CONCRETE_WALL; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "ConcreteWall_DZ"; - }; - class Crafting - { - text = $STR_EPOCH_ACTION_CRAFT_DRAGONTEETH; - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"workshop"}; - requiretools[] = {"ItemToolbox","ItemSledge"}; - output[] = {{"dragonteeth_kit",1}}; - input[] = {{"concrete_wall_kit",1},{"ItemStone",6},{"CementBag",4}}; - }; - }; -}; - -class concrete_pipe_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_CONCRETE_PIPE; - descriptionShort = $STR_EQUIP_DESC_CONCRETE_PIPE; - 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_ACTION_BUILD_CONCRETE_PIPE; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "ConcretePipe_DZ"; - }; - }; -}; - -class dragonteeth_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_DRAGONTEETH; - descriptionShort = $STR_EQUIP_DESC_DRAGONTEETH; - 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_ACTION_BUILD_DRAGONTEETH; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "DragonTeeth_DZ"; - }; - class Crafting - { - text = $STR_EPOCH_ACTION_CRAFT_DRAGONTEETH_BIG; - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"workshop"}; - requiretools[] = {"ItemToolbox","ItemSledge"}; - output[] = {{"dragonteeth_big_kit",1}}; - input[] = {{"dragonteeth_kit",1},{"ItemStone",6},{"CementBag",4}}; - }; - }; -}; - -class dragonteeth_big_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_DRAGONTEETH_BIG; - descriptionShort = $STR_EQUIP_DESC_DRAGONTEETH_BIG; - 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_ACTION_BUILD_DRAGONTEETH_BIG; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "DragonTeethBig_DZ"; - }; - }; -}; - class metal_drawbridge_kit: CA_Magazine { scope = 2; @@ -1981,223 +1795,6 @@ class ItemWoodGateLocked: CA_Magazine }; }; -class simple_footbridge_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_SIMPLE_FOOTBRIDGE; - descriptionShort = $STR_EQUIP_DESC_SIMPLE_FOOTBRIDGE; - 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_ACTION_BUILD_SIMPLE_FOOTBRIDGE; - script = "spawn player_build;"; - require[] = {}; - create = "SimpleFootbridge_DZ"; - }; - }; -}; - -class wooden_footbridge_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_WOODEN_FOOTBRIDGE; - descriptionShort = $STR_EQUIP_DESC_WOODEN_FOOTBRIDGE; - 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_ACTION_BUILD_WOODEN_FOOTBRIDGE; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "WoodenFootbridge_DZ"; - }; - }; -}; - -class windbreak_kit: CA_Magazine -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_WINDBREAK; - descriptionShort = $STR_EQUIP_DESC_WINDBREAK; - 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_ACTION_BUILD_WINDBREAK; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "Windbreak_DZ"; - }; - }; -}; - -class metal_container_1a_kit: CA_Magazine // red -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1A; - descriptionShort = $STR_EQUIP_DESC_METAL_CONTAINER_1A; - 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_ACTION_BUILD_METAL_CONTAINER_1A; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "MetalContainer1A_DZ"; - }; - class Crafting - { - text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1B; // craft green - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {}; - output[] = {{"metal_container_1b_kit",1}}; - input[] = {{"metal_container_1a_kit",1}}; - }; - class Crafting1 - { - text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1G; // craft white - script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {}; - output[] = {{"metal_container_1g_kit",1}}; - input[] = {{"metal_container_1a_kit",1}}; - }; - class Crafting2 - { - text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_2D; // craft 2x red - script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {"ItemToolbox"}; - output[] = {{"metal_container_2d_kit",1}}; - input[] = {{"metal_container_1a_kit",2}}; - }; - }; -}; - -class metal_container_1b_kit: CA_Magazine // green -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1B; - descriptionShort = $STR_EQUIP_DESC_METAL_CONTAINER_1A; // re-use red 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_EPOCH_ACTION_BUILD_METAL_CONTAINER_1B; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "MetalContainer1B_DZ"; - }; - class Crafting - { - text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1A; // craft red - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {}; - output[] = {{"metal_container_1a_kit",1}}; - input[] = {{"metal_container_1b_kit",1}}; - }; - class Crafting1 - { - text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1G; // craft white - script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {}; - output[] = {{"metal_container_1g_kit",1}}; - input[] = {{"metal_container_1b_kit",1}}; - }; - }; -}; - -class metal_container_1g_kit: CA_Magazine // white -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1G; - descriptionShort = $STR_EQUIP_DESC_METAL_CONTAINER_1A; // re-use red 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_EPOCH_ACTION_BUILD_METAL_CONTAINER_1G; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "MetalContainer1G_DZ"; - }; - class Crafting - { - text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1A; // craft red - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {}; - output[] = {{"metal_container_1a_kit",1}}; - input[] = {{"metal_container_1g_kit",1}}; - }; - class Crafting1 - { - text = $STR_EPOCH_ACTION_CRAFT_METAL_CONTAINER_1B; // craft green - script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {}; - requiretools[] = {}; - output[] = {{"metal_container_1b_kit",1}}; - input[] = {{"metal_container_1g_kit",1}}; - }; - }; -}; - -class metal_container_2d_kit: CA_Magazine // 2x red -{ - scope = 2; - count = 1; - type = 256; - displayName = $STR_EQUIP_NAME_METAL_CONTAINER_2D; - descriptionShort = $STR_EQUIP_DESC_METAL_CONTAINER_2D; - 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_ACTION_BUILD_METAL_CONTAINER_2D; - script = "spawn player_build;"; - require[] = {"ItemToolbox"}; - create = "MetalContainer2D_DZ"; - }; - }; -}; - class door_frame_kit: CA_Magazine { scope = 2; diff --git a/SQF/dayz_code/Configs/CfgMagazines/Items/Metal.hpp b/SQF/dayz_code/Configs/CfgMagazines/Items/Metal.hpp index 1ca378969..714ba58d9 100644 --- a/SQF/dayz_code/Configs/CfgMagazines/Items/Metal.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines/Items/Metal.hpp @@ -207,7 +207,7 @@ class equip_metal_sheet_rusted: CA_Magazine { class Crafting { - text = $STR_EPOCH_ACTION_CRAFT_METAL_SHEET; + text = $STR_CRAFTING_METALSHEET; script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; neednearby[] = {"workshop","fire"}; requiretools[] = {"ItemToolbox","ItemSledge"}; diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildables/Misc.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildables/Misc.hpp index 174fcf0ca..b4f017af4 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Buildables/Misc.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildables/Misc.hpp @@ -251,6 +251,47 @@ class FortifiedWire_DZ : ModularItems { nounderground = 0; }; +class BarbedGate_DZ: ModularItems { + scope = 2; + offset[] = {0,4,0}; + model = "ca\misc2\BarbGate.p3d"; + armor = 3000; + displayName = $STR_EQUIP_NAME_BARBED_GATE; + destrType = "DestructBuilding"; + maintainBuilding[] = {{"ItemWire",1}}; + constructioncount = 2; + + class AnimationSources + { + class Door01 { + source = "User"; + animPeriod = 1; + initPhase = 0; + }; + }; + class UserActions + { + class CloseDoor + { + position = ""; + displayName = "Close Door"; + radius = 1.5; + onlyForPlayer = 0; + condition = "this animationPhase 'Door01' == 1"; + statement = "this animate ['Door01', 0];"; + }; + class OpenDoor + { + position = ""; + displayName = "Open Door"; + radius = 1.5; + onlyForPlayer = 0; + condition = "this animationPhase 'Door01' == 0"; + statement = "this animate ['Door01', 1];"; + }; + }; +}; + class WoodGate_DZ: BuiltItems { scope = 2; @@ -294,6 +335,155 @@ class WoodGate_DZ: BuiltItems }; }; +class ConcreteBarrier_DZ: ModularItems { + scope = 2; + offset[] = {0,2,-0.05}; + model = "\ca\misc3\CncBlock.p3d"; + armor = 4000; + vehicleClass = "DayZ Epoch Buildables"; + displayName = $STR_EQUIP_NAME_CNC_BARRIER; + maintainBuilding[] = {{"CementBag",1}}; + destrType = "DestructBuilding"; + constructioncount = 1; + nounderground = 0; +}; + +class ConcreteBarrierStriped_DZ: ModularItems { + scope = 2; + offset[] = {0,2,-0.05}; + model = "\ca\misc3\CncBlock_stripes.p3d"; + armor = 4000; + vehicleClass = "DayZ Epoch Buildables"; + displayName = $STR_EQUIP_NAME_CNC_BARRIER_STRIPED; + maintainBuilding[] = {{"CementBag",1}}; + destrType = "DestructBuilding"; + constructioncount = 1; + nounderground = 0; +}; + +class ConcreteWall_DZ: ModularItems { + scope = 2; + offset[] = {0,3,0}; + model = "\ca\mp_armory\misc\concrete_wall\concrete_wall.p3d"; + armor = 10000; + vehicleClass = "DayZ Epoch Buildables"; + displayName = $STR_EQUIP_NAME_CONCRETE_WALL; + maintainBuilding[] = {{"CementBag",1}}; + destrType = "DestructBuilding"; + constructioncount = 3; +}; + +class ConcretePipe_DZ: ModularItems { + scope = 2; + offset[] = {0,3,0}; + model = "\ca\structures_e\misc\misc_construction\misc_concpipeline_ep1.p3d"; + armor = 10000; + vehicleClass = "DayZ Epoch Buildables"; + displayName = $STR_EQUIP_NAME_CONCRETE_PIPE; + maintainBuilding[] = {{"CementBag",1}}; + destrType = "DestructBuilding"; + constructioncount = 3; +}; + +class DragonTeeth_DZ: ModularItems { + scope = 2; + offset[] = {0,5.5,0}; + model = "\ca\misc3\dragonTeeth\dragonTeeth.p3d"; + armor = 10000; + vehicleClass = "DayZ Epoch Buildables"; + displayName = $STR_EQUIP_NAME_DRAGONTEETH; + maintainBuilding[] = {{"CementBag",1}}; + destrType = "DestructBuilding"; + constructioncount = 3; +}; + +class DragonTeethBig_DZ: ModularItems { + scope = 2; + offset[] = {0,5.5,0}; + model = "\ca\misc3\dragonTeeth\dragonTeethBig.p3d"; + armor = 10000; + vehicleClass = "DayZ Epoch Buildables"; + displayName = $STR_EQUIP_NAME_DRAGONTEETH_BIG; + maintainBuilding[] = {{"CementBag",1}}; + destrType = "DestructBuilding"; + constructioncount = 3; +}; +class SimpleFootbridge_DZ: ModularItems { + scope = 2; + offset[] = {0,4,0.05}; + useModelCenter = 1; + model = "mbg_killhouses\m\MBG_Woodplanks.p3d"; + armor = 200; + nounderground = 0; + displayName = $STR_EQUIP_NAME_SIMPLE_FOOTBRIDGE; + maintainBuilding[] = {{"ItemPlank",1}}; +}; + +class WoodenFootbridge_DZ: ModularItems { + scope = 2; + offset[] = {0,3.5,0}; + useModelCenter = 1; + model = "ca\misc_acr\scaffoldingsmall\misc_crossing0st.p3d"; + armor = 200; + nounderground = 0; + displayName = $STR_EQUIP_NAME_WOODEN_FOOTBRIDGE; + maintainBuilding[] = {{"ItemPlank",1}}; +}; + +class Windbreak_DZ: ModularItems { + scope = 2; + offset[] = {0,3,-0.1}; + model = "ca\structures\Misc\Misc_WindBreak\Misc_WindBreak.p3d"; + armor = 1000; + nounderground = 0; + displayName = $STR_EQUIP_NAME_WINDBREAK; + maintainBuilding[] = {{"ItemPlank",1}}; +}; + +class MetalContainer1A_DZ: ModularItems { + scope = 2; + offset[] = {0,5,0}; + model = "ca\buildings2\Misc_Cargo\Misc_Cargo1A.p3d"; // red + armor = 20000; + displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1A; + destrType = "DestructBuilding"; + maintainBuilding[] = {{"equip_metal_sheet",2}}; + constructioncount = 3; +}; + +class MetalContainer1B_DZ: ModularItems { + scope = 2; + offset[] = {0,5,0}; + model = "ca\buildings2\Misc_Cargo\Misc_Cargo1B.p3d"; // green + armor = 20000; + displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1B; + destrType = "DestructBuilding"; + maintainBuilding[] = {{"equip_metal_sheet",2}}; + constructioncount = 3; +}; + +class MetalContainer1G_DZ: ModularItems { + scope = 2; + offset[] = {0,5,0}; + model = "ca\buildings2\Misc_Cargo\Misc_Cargo1G.p3d"; // white + armor = 20000; + displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1G; + destrType = "DestructBuilding"; + maintainBuilding[] = {{"equip_metal_sheet",2}}; + constructioncount = 3; +}; + +class MetalContainer2D_DZ: ModularItems { + scope = 2; + offset[] = {0,5,0}; + model = "ca\buildings2\Misc_Cargo\Misc_Cargo2D.p3d"; // 2x red + armor = 40000; + displayName = $STR_EQUIP_NAME_METAL_CONTAINER_2D; + destrType = "DestructBuilding"; + maintainBuilding[] = {{"equip_metal_sheet",4}}; + constructioncount = 5; +}; + class Notebook; class Notebook_DZ: Notebook { diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildCinder.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildCinder.hpp index b70db7025..fd6f24d31 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildCinder.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildCinder.hpp @@ -374,80 +374,4 @@ class Concrete_Bunker_Locked_DZ: CinderWallDoorLocked_DZ_Base { statement = "dayz_selectedDoor = this;DZE_topCombo = 0;DZE_midCombo = 0;DZE_botCombo = 0;if(DZE_doorManagement) then {createdialog ""DoorAccess"";} else {createdialog ""ComboLockUI"";};"; }; }; -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// - -class ConcreteBarrier_DZ: ModularItems { - scope = 2; - offset[] = {0,2,-0.05}; - model = "\ca\misc3\CncBlock.p3d"; - armor = 4000; - vehicleClass = "DayZ Epoch Buildables"; - displayName = $STR_EQUIP_NAME_CNC_BARRIER; - maintainBuilding[] = {{"CementBag",1}}; - destrType = "DestructBuilding"; - constructioncount = 1; - nounderground = 0; -}; - -class ConcreteBarrierStriped_DZ: ModularItems { - scope = 2; - offset[] = {0,2,-0.05}; - model = "\ca\misc3\CncBlock_stripes.p3d"; - armor = 4000; - vehicleClass = "DayZ Epoch Buildables"; - displayName = $STR_EQUIP_NAME_CNC_BARRIER_STRIPED; - maintainBuilding[] = {{"CementBag",1}}; - destrType = "DestructBuilding"; - constructioncount = 1; - nounderground = 0; -}; - -class ConcreteWall_DZ: ModularItems { - scope = 2; - offset[] = {0,3,0}; - model = "\ca\mp_armory\misc\concrete_wall\concrete_wall.p3d"; - armor = 10000; - vehicleClass = "DayZ Epoch Buildables"; - displayName = $STR_EQUIP_NAME_CONCRETE_WALL; - maintainBuilding[] = {{"CementBag",1}}; - destrType = "DestructBuilding"; - constructioncount = 3; -}; - -class ConcretePipe_DZ: ModularItems { - scope = 2; - offset[] = {0,3,0}; - model = "\ca\structures_e\misc\misc_construction\misc_concpipeline_ep1.p3d"; - armor = 10000; - vehicleClass = "DayZ Epoch Buildables"; - displayName = $STR_EQUIP_NAME_CONCRETE_PIPE; - maintainBuilding[] = {{"CementBag",1}}; - destrType = "DestructBuilding"; - constructioncount = 3; -}; - -class DragonTeeth_DZ: ModularItems { - scope = 2; - offset[] = {0,5.5,0}; - model = "\ca\misc3\dragonTeeth\dragonTeeth.p3d"; - armor = 10000; - vehicleClass = "DayZ Epoch Buildables"; - displayName = $STR_EQUIP_NAME_DRAGONTEETH; - maintainBuilding[] = {{"CementBag",1}}; - destrType = "DestructBuilding"; - constructioncount = 3; -}; - -class DragonTeethBig_DZ: ModularItems { - scope = 2; - offset[] = {0,5.5,0}; - model = "\ca\misc3\dragonTeeth\dragonTeethBig.p3d"; - armor = 10000; - vehicleClass = "DayZ Epoch Buildables"; - displayName = $STR_EQUIP_NAME_DRAGONTEETH_BIG; - maintainBuilding[] = {{"CementBag",1}}; - destrType = "DestructBuilding"; - constructioncount = 3; -}; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildMetal.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildMetal.hpp index 5c68d3f83..b2a169084 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildMetal.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildMetal.hpp @@ -103,91 +103,4 @@ class GlassFloor_Quarter_DZ: ModularItems { displayName = $STR_EPOCH_GLASSFLOORQUARTER; maintainBuilding[] = {{"PartGlass",1}}; GhostPreview = "GlassFloor_Quarter_Preview_DZ"; -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// - -class MetalContainer1A_DZ: ModularItems { - scope = 2; - offset[] = {0,5,0}; - model = "ca\buildings2\Misc_Cargo\Misc_Cargo1A.p3d"; // red - armor = 20000; - displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1A; - destrType = "DestructBuilding"; - maintainBuilding[] = {{"equip_metal_sheet",2}}; - constructioncount = 3; -}; - -class MetalContainer1B_DZ: ModularItems { - scope = 2; - offset[] = {0,5,0}; - model = "ca\buildings2\Misc_Cargo\Misc_Cargo1B.p3d"; // green - armor = 20000; - displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1B; - destrType = "DestructBuilding"; - maintainBuilding[] = {{"equip_metal_sheet",2}}; - constructioncount = 3; -}; - -class MetalContainer1G_DZ: ModularItems { - scope = 2; - offset[] = {0,5,0}; - model = "ca\buildings2\Misc_Cargo\Misc_Cargo1G.p3d"; // white - armor = 20000; - displayName = $STR_EQUIP_NAME_METAL_CONTAINER_1G; - destrType = "DestructBuilding"; - maintainBuilding[] = {{"equip_metal_sheet",2}}; - constructioncount = 3; -}; - -class MetalContainer2D_DZ: ModularItems { - scope = 2; - offset[] = {0,5,0}; - model = "ca\buildings2\Misc_Cargo\Misc_Cargo2D.p3d"; // 2x red - armor = 40000; - displayName = $STR_EQUIP_NAME_METAL_CONTAINER_2D; - destrType = "DestructBuilding"; - maintainBuilding[] = {{"equip_metal_sheet",4}}; - constructioncount = 5; -}; - -class BarbedGate_DZ: ModularItems { - scope = 2; - offset[] = {0,4,0}; - model = "ca\misc2\BarbGate.p3d"; - armor = 3000; - displayName = $STR_EQUIP_NAME_BARBED_GATE; - destrType = "DestructBuilding"; - maintainBuilding[] = {{"ItemWire",1}}; - constructioncount = 2; - - class AnimationSources - { - class Door01 { - source = "User"; - animPeriod = 1; - initPhase = 0; - }; - }; - class UserActions - { - class CloseDoor - { - position = ""; - displayName = "Close Door"; - radius = 1.5; - onlyForPlayer = 0; - condition = "this animationPhase 'Door01' == 1"; - statement = "this animate ['Door01', 0];"; - }; - class OpenDoor - { - position = ""; - displayName = "Open Door"; - radius = 1.5; - onlyForPlayer = 0; - condition = "this animationPhase 'Door01' == 0"; - statement = "this animate ['Door01', 1];"; - }; - }; -}; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildWood.hpp b/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildWood.hpp index eda4be389..b2b29e4aa 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildWood.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Buildables/ModularBuildWood.hpp @@ -366,38 +366,4 @@ class WoodPillar_DZ: ModularItems { displayName = $STR_EPOCH_WOODPILLAR; maintainBuilding[] = {{"PartWoodLumber",1}}; GhostPreview = "Wood_Pillar_Preview_DZ"; -}; - -/////////////////////////////////////////////////////////////////////////////////////////////////// - -class SimpleFootbridge_DZ: ModularItems { - scope = 2; - offset[] = {0,4,0.05}; - useModelCenter = 1; - model = "mbg_killhouses\m\MBG_Woodplanks.p3d"; - armor = 200; - nounderground = 0; - displayName = $STR_EQUIP_NAME_SIMPLE_FOOTBRIDGE; - maintainBuilding[] = {{"ItemPlank",1}}; -}; - -class WoodenFootbridge_DZ: ModularItems { - scope = 2; - offset[] = {0,3.5,0}; - useModelCenter = 1; - model = "ca\misc_acr\scaffoldingsmall\misc_crossing0st.p3d"; - armor = 200; - nounderground = 0; - displayName = $STR_EQUIP_NAME_WOODEN_FOOTBRIDGE; - maintainBuilding[] = {{"ItemPlank",1}}; -}; - -class Windbreak_DZ: ModularItems { - scope = 2; - offset[] = {0,3,-0.1}; - model = "ca\structures\Misc\Misc_WindBreak\Misc_WindBreak.p3d"; - armor = 1000; - nounderground = 0; - displayName = $STR_EQUIP_NAME_WINDBREAK; - maintainBuilding[] = {{"ItemPlank",1}}; -}; +}; \ No newline at end of file