diff --git a/SQF/dayz_code/Configs/CfgMagazines.hpp b/SQF/dayz_code/Configs/CfgMagazines.hpp index 6caf3a1c9..74f30c898 100644 --- a/SQF/dayz_code/Configs/CfgMagazines.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines.hpp @@ -1308,7 +1308,38 @@ class CfgMagazines { displayName = "Fuel Barrel (Empty)"; picture = "\z\addons\dayz_epoch\pictures\equip_oildrum_e_CA.paa"; descriptionShort = "210 litres of fuel per barrel (Empty)"; + class ItemActions { + class Crafting + { + text = "$STR_EPOCH_PLAYER_276"; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"fire"}; + requiretools[] = {"ItemToolbox","ItemHatchet"}; + output[] = {{"ItemFireBarrel_kit",1}}; + input[] = {{"ItemFuelBarrelEmpty",1},{"ItemJerryCan",1},{"PartWoodLumber",4}}; + }; }; + class ItemFireBarrel_kit: CA_Magazine + { + scope = 2; + count = 1; + type = 256; + displayName = "Fire Barrel Kit"; + descriptionShort = "Fire Barrel"; + model = "\z\addons\dayz_epoch\models\supply_crate.p3d"; + picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa"; + weight = 25; + class ItemActions + { + class Build + { + text = "$STR_ACTIONS_BUILD"; + script = "spawn player_build;"; + require[] = {"ItemToolbox"}; + create = "FireBarrel_DZ"; + }; + }; + }; class ItemJerrycan: CA_Magazine { scope = 2; diff --git a/SQF/dayz_code/Configs/cfgVehicles.hpp b/SQF/dayz_code/Configs/cfgVehicles.hpp index 61f294d35..61ee1be35 100644 --- a/SQF/dayz_code/Configs/cfgVehicles.hpp +++ b/SQF/dayz_code/Configs/cfgVehicles.hpp @@ -1926,7 +1926,22 @@ class CfgVehicles { }; }; }; - + class Land_Fire_barrel; + class FireBarrel_DZ: Land_Fire_barrel + { + scope = 2; + destrType = "DestructNo"; + cost = 100; + model = "\z\addons\dayz_epoch\models\oil_drum_model.p3d"; + icon = "\ca\data\data\Unknown_object.paa"; + offset[] = {0,1.5,0.5}; + mapSize = 2; + armor = 400; + displayName = "Fire Barrel"; + vehicleClass = "Fortifications"; + constructioncount = 3; + removeoutput[] = {{"ItemFuelBarrelEmpty",1}}; + }; // modular class MetalFloor_DZ: ModularItems @@ -2935,6 +2950,7 @@ class CfgVehicles { offset[] = {0,2.5,0}; displayName = "Light Pole"; vehicleClass = "Fortifications"; + maintainBuilding[] = {{"ItemPole",1}}; }; class WoodGate_DZ: BuiltItems { diff --git a/SQF/dayz_epoch_b/stringtable.xml b/SQF/dayz_epoch_b/stringtable.xml index 9d29dfda8..e59f8b526 100644 --- a/SQF/dayz_epoch_b/stringtable.xml +++ b/SQF/dayz_epoch_b/stringtable.xml @@ -5284,5 +5284,15 @@ + + Craft Fire Barrel + Craft Fire Barrel + + + + + + +