diff --git a/SQF/dayz_code/Configs/CfgMagazines.hpp b/SQF/dayz_code/Configs/CfgMagazines.hpp index 36c99d8bb..1e542f3e8 100644 --- a/SQF/dayz_code/Configs/CfgMagazines.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines.hpp @@ -119,9 +119,9 @@ class CfgMagazines { { text = "Mix Chainsaw Gas"; // TODO: localize script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"workshop"}; - requiretools[] = {"ItemToolbox"}; - output[] = {{"CSGAS",1},{"ItemJerrycanEmpty",1}}; + neednearby[] = {}; + requiretools[] = {}; + output[] = {{"ItemJerryMixed",1}}; input[] = {{"ItemMixOil",1},{"ItemJerrycan",1}}; }; }; @@ -1497,6 +1497,117 @@ class CfgMagazines { picture = "\dayz_equip\textures\equip_jerrycan_ca.paa"; descriptionShort = $STR_EQUIP_DESC_19; }; + class ItemJerryMixed: CA_Magazine + { + scope = 2; + count = 1; + type = 256; + displayName = "Mixed Gas Full"; + model = "\dayz_equip\models\jerrycan.p3d"; + picture = "\dayz_equip\textures\equip_jerrycan_ca.paa"; + descriptionShort = "20 liters of Mixed Gas."; + class ItemActions + { + class Crafting + { + text = "Fill Chainsaw"; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {"ItemToolbox"}; + output[] = {{"CSGAS",1},{"ItemJerryMixed4",1}}; + input[] = {{"ItemJerryMixed",1}}; + }; + }; + }; + class ItemJerryMixed4: CA_Magazine + { + scope = 2; + count = 1; + type = 256; + displayName = "Mixed Gas 16l"; + model = "\dayz_equip\models\jerrycan.p3d"; + picture = "\dayz_equip\textures\equip_jerrycan_ca.paa"; + descriptionShort = "16 liters of Mixed Gas."; + class ItemActions + { + class Crafting + { + text = "Fill Chainsaw"; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {"ItemToolbox"}; + output[] = {{"CSGAS",1},{"ItemJerryMixed2",1}}; + input[] = {{"ItemJerryMixed3",1}}; + }; + }; + }; + class ItemJerryMixed3: CA_Magazine + { + scope = 2; + count = 1; + type = 256; + displayName = "Mixed Gas 12l"; + model = "\dayz_equip\models\jerrycan.p3d"; + picture = "\dayz_equip\textures\equip_jerrycan_ca.paa"; + descriptionShort = "12 liters of Mixed Gas."; + class ItemActions + { + class Crafting + { + text = "Fill Chainsaw"; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {"ItemToolbox"}; + output[] = {{"CSGAS",1},{"ItemJerryMixed2",1}}; + input[] = {{"ItemJerryMixed3",1}}; + }; + }; + }; + class ItemJerryMixed2: CA_Magazine + { + scope = 2; + count = 1; + type = 256; + displayName = "Mixed Gas 8l"; + model = "\dayz_equip\models\jerrycan.p3d"; + picture = "\dayz_equip\textures\equip_jerrycan_ca.paa"; + descriptionShort = "8 liters of Mixed Gas."; + class ItemActions + { + class Crafting + { + text = "Fill Chainsaw"; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {"ItemToolbox"}; + output[] = {{"CSGAS",1},{"ItemJerryMixed1",1}}; + input[] = {{"ItemJerryMixed2",1}}; + }; + }; + }; + class ItemJerryMixed1: CA_Magazine + { + scope = 2; + count = 1; + type = 256; + displayName = "Mixed Gas 4l"; + model = "\dayz_equip\models\jerrycan.p3d"; + picture = "\dayz_equip\textures\equip_jerrycan_ca.paa"; + descriptionShort = "4 liters of Mixed Gas."; + class ItemActions + { + class Crafting + { + text = "Fill Chainsaw"; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {}; + requiretools[] = {"ItemToolbox"}; + output[] = {{"CSGAS",1},{"ItemJerrycanEmpty",1}}; + input[] = {{"ItemJerryMixed1",1}}; + }; + }; + }; + class ItemJerrycanEmpty: ItemJerrycan { fuelQuantity = 0;