diff --git a/SQF/dayz_code/Configs/CfgMagazines.hpp b/SQF/dayz_code/Configs/CfgMagazines.hpp index d2c27e862..8f2d7e2e1 100644 --- a/SQF/dayz_code/Configs/CfgMagazines.hpp +++ b/SQF/dayz_code/Configs/CfgMagazines.hpp @@ -7,6 +7,7 @@ class CfgMagazines { // Gems #include "CfgMagazines\DZE\Gems.hpp" + #include "CfgMagazines\DZE\Ores.hpp" // Items #include "CfgMagazines\DZE\Items.hpp" #include "CfgMagazines\DZE\Bulk.hpp" @@ -1268,72 +1269,6 @@ class CfgMagazines { }; }; - class PartOre: CA_Magazine - { - scope = 2; - count = 1; - type = 256; - displayName = "Iron Ore"; - model = "\z\addons\dayz_epoch\models\iron_ore.p3d"; - picture="\z\addons\dayz_epoch\pictures\equip_iron_ore_CA.paa"; - descriptionShort = "Used for crafting scrap metal. Can be mined from rocks using a sledgehammer."; - weight = 1; - class ItemActions { - class Crafting - { - text = $STR_EPOCH_PLAYER_265; - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"fire"}; - requiretools[] = {"ItemSledge"}; - output[] = {{"PartGeneric",1},{"ItemWaterbottleUnfilled",1}}; - input[] = {{"PartOre",4},{"ItemWaterbottle",1}}; - }; - }; - }; - class PartOreSilver: CA_Magazine - { - scope = 2; - count = 1; - type = 256; - displayName = "Silver Ore"; - model = "\z\addons\dayz_epoch\models\silver_ore.p3d"; - picture="\z\addons\dayz_epoch\pictures\equip_silver_ore_CA.paa"; - descriptionShort = "Can be mined from rocks using a sledgehammer."; - weight = 1; - class ItemActions { - class Crafting - { - text = $STR_EPOCH_PLAYER_266; - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"fire"}; - requiretools[] = {"ItemSledge"}; - output[] = {{"ItemSilverBar",1},{"ItemWaterbottleUnfilled",1}}; - input[] = {{"PartOreSilver",1},{"ItemWaterbottle",1}}; - }; - }; - }; - class PartOreGold: CA_Magazine - { - scope = 2; - count = 1; - type = 256; - displayName = "Gold Ore"; - model = "\z\addons\dayz_epoch\models\gold_ore.p3d"; - picture="\z\addons\dayz_epoch\pictures\equip_gold_ore_CA.paa"; - descriptionShort = "Can be mined from rocks using a sledgehammer."; - weight = 1; - class ItemActions { - class Crafting - { - text = $STR_EPOCH_PLAYER_267; - script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; - neednearby[] = {"fire"}; - requiretools[] = {"ItemSledge"}; - output[] = {{"ItemGoldBar",1},{"ItemWaterbottleUnfilled",1}}; - input[] = {{"PartOreGold",1},{"ItemWaterbottle",1}}; - }; - }; - }; class PartVRotor: CA_Magazine { scope = 2; diff --git a/SQF/dayz_code/Configs/CfgMagazines/DZE/Ores.hpp b/SQF/dayz_code/Configs/CfgMagazines/DZE/Ores.hpp new file mode 100644 index 000000000..9ce692aa1 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgMagazines/DZE/Ores.hpp @@ -0,0 +1,60 @@ +class PartOre: CA_Magazine { + scope = 2; + count = 1; + type = 256; + displayName = "Iron Ore"; + model = "\z\addons\dayz_epoch\models\iron_ore.p3d"; + picture="\z\addons\dayz_epoch\pictures\equip_iron_ore_CA.paa"; + descriptionShort = "Used for crafting scrap metal. Can be mined from rocks using a sledgehammer."; + weight = 1; + class ItemActions { + class Crafting { + text = $STR_EPOCH_PLAYER_265; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"fire"}; + requiretools[] = {"ItemSledge"}; + output[] = {{"PartGeneric",1},{"ItemWaterbottleUnfilled",1}}; + input[] = {{"PartOre",4},{"ItemWaterbottle",1}}; + }; + }; +}; +class PartOreSilver: CA_Magazine { + scope = 2; + count = 1; + type = 256; + displayName = "Silver Ore"; + model = "\z\addons\dayz_epoch\models\silver_ore.p3d"; + picture="\z\addons\dayz_epoch\pictures\equip_silver_ore_CA.paa"; + descriptionShort = "Can be mined from rocks using a sledgehammer."; + weight = 1; + class ItemActions { + class Crafting { + text = $STR_EPOCH_PLAYER_266; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"fire"}; + requiretools[] = {"ItemSledge"}; + output[] = {{"ItemSilverBar",1},{"ItemWaterbottleUnfilled",1}}; + input[] = {{"PartOreSilver",1},{"ItemWaterbottle",1}}; + }; + }; +}; +class PartOreGold: CA_Magazine { + scope = 2; + count = 1; + type = 256; + displayName = "Gold Ore"; + model = "\z\addons\dayz_epoch\models\gold_ore.p3d"; + picture="\z\addons\dayz_epoch\pictures\equip_gold_ore_CA.paa"; + descriptionShort = "Can be mined from rocks using a sledgehammer."; + weight = 1; + class ItemActions { + class Crafting { + text = $STR_EPOCH_PLAYER_267; + script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; + neednearby[] = {"fire"}; + requiretools[] = {"ItemSledge"}; + output[] = {{"ItemGoldBar",1},{"ItemWaterbottleUnfilled",1}}; + input[] = {{"PartOreGold",1},{"ItemWaterbottle",1}}; + }; + }; +}; \ No newline at end of file