mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
- All dayz mod recipe were moved to epoch crafting. - This disables the craft dialog in the diary too. - The player_craftitem got updated and can handle all dayz mod recipes now. - A few wooden recipes got updated with an need nails now. - player_craftitem shows all items that are needed for crafting now, no longer only one missing part. - Add a systemchat text for missing tools, so it can be checked later in the chat.
151 lines
4.8 KiB
C++
151 lines
4.8 KiB
C++
class PartGeneric : CA_Magazine
|
|
{
|
|
scope = public;
|
|
count = 1;
|
|
type = WeaponSlotItem;
|
|
|
|
model = "\dayz_equip\models\genericparts.p3d";
|
|
picture = "\dayz_equip\textures\equip_genericparts_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_10;
|
|
descriptionShort = $STR_EQUIP_DESC_10;
|
|
class ItemActions {
|
|
class Crafting {
|
|
text = $STR_EPOCH_PLAYER_213;
|
|
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"fire"};
|
|
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
|
output[] = {{"ItemPole",1}};
|
|
input[] = {{"PartGeneric",2}};
|
|
};
|
|
class Crafting1 {
|
|
text = $STR_CRAFTING_NAILS;
|
|
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"fire"};
|
|
requiretools[] = {"ItemToolbox"};
|
|
output[] = {{"equip_nails",4}};
|
|
input[] = {{"PartGeneric",2}};
|
|
};
|
|
};
|
|
};
|
|
|
|
class ItemPole: CA_Magazine
|
|
{
|
|
scope = public;
|
|
count = 1;
|
|
type = 256;
|
|
displayName = $STR_EPOCH_METALPOLE;
|
|
model = "\z\addons\dayz_epoch\models\pipe.p3d";
|
|
picture = "\z\addons\dayz_epoch\pictures\equip_pipe_CA.paa";
|
|
descriptionShort = $STR_EPOCH_METALPOLE_DESC;
|
|
class ItemActions
|
|
{
|
|
class Crafting
|
|
{
|
|
text = $STR_EPOCH_PLAYER_218;
|
|
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"fire"};
|
|
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
|
output[] = {{"ItemCorrugated",1}};
|
|
input[] = {{"ItemPole",2},{"ItemTankTrap",2},{"PartWoodLumber",2}};
|
|
};
|
|
class Crafting1
|
|
{
|
|
text = $STR_EPOCH_PLAYER_219;
|
|
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"workshop"};
|
|
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
|
output[] = {{"rusty_gate_kit",1}};
|
|
input[] = {{"ItemPole",3},{"ItemTankTrap",1}};
|
|
};
|
|
class Crafting2
|
|
{
|
|
text = $STR_EPOCH_PLAYER_220;
|
|
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"workshop"};
|
|
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
|
output[] = {{"metal_panel_kit",1}};
|
|
input[] = {{"ItemPole",4},{"ItemTankTrap",4}};
|
|
};
|
|
class Crafting3
|
|
{
|
|
text = $STR_EPOCH_PLAYER_305;
|
|
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"workshop"};
|
|
requiretools[] = {"ItemToolbox","ItemCrowbar"};
|
|
output[] = {{"ItemScaffoldingKit",1}};
|
|
input[] = {{"ItemPole",4},{"ItemTankTrap",2},{"PartWoodLumber",4}};
|
|
};
|
|
};
|
|
};
|
|
|
|
class ItemMetalSheet: CA_Magazine //Construection,farm,indestrial,castle
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = 256;
|
|
displayName = $STR_BLD_name_ItemMetalSheet;//"Corrugated Sheet"
|
|
picture = "\z\addons\dayz_buildings\equip\item_sheetmetal.paa";
|
|
model = "z\addons\dayz_buildings\models\sheet_metal.p3d";
|
|
descriptionShort = $STR_BLD_desc_ItemMetalSheet;//"Metal Sheeting"
|
|
};
|
|
|
|
class equip_metal_sheet : CA_Magazine {
|
|
scope = public;
|
|
count = 1;
|
|
displayName = $STR_ITEM_NAME_equip_metal_sheet;
|
|
descriptionShort = $STR_ITEM_DESC_equip_metal_sheet;
|
|
model = "\z\addons\dayz_communityassets\models\metal_sheet_clean.p3d";
|
|
picture = "\z\addons\dayz_communityassets\CraftingPlaceholders\equip_metal_sheet.paa";
|
|
type = 256;
|
|
};
|
|
|
|
class equip_metal_sheet_rusted : CA_Magazine {
|
|
scope = public;
|
|
count = 1;
|
|
displayName = $STR_ITEM_NAME_equip_metal_sheet_rusted;
|
|
descriptionShort = $STR_ITEM_DESC_equip_metal_sheet_rusted;
|
|
model = "\z\addons\dayz_communityassets\models\metal_sheet_rusted.p3d";
|
|
picture = "\z\addons\dayz_communityassets\CraftingPlaceholders\equip_metal_sheet_rusted.paa";
|
|
type = 256;
|
|
};
|
|
|
|
class ItemRSJ: CA_Magazine //Construection,farm,indestrial,castle
|
|
{
|
|
scope = 2;
|
|
count = 1;
|
|
type = 256;
|
|
displayName = $STR_BLD_name_ItemRSJ;//"Steel Beam"
|
|
picture = "\z\addons\dayz_buildings\equip\item_rsj.paa";
|
|
model = "z\addons\dayz_buildings\models\rsj.p3d";
|
|
descriptionShort = $STR_BLD_desc_ItemRSJ;//"Steel RSJ Support Beam"
|
|
};
|
|
|
|
class equip_1inch_metal_pipe : CA_Magazine {
|
|
scope = public;
|
|
count = 1;
|
|
displayName = $STR_ITEM_NAME_equip_1inch_metal_pipe;
|
|
descriptionShort = $STR_ITEM_DESC_equip_1inch_metal_pipe;
|
|
model = "\z\addons\dayz_communityassets\models\1in_pipe.p3d";
|
|
picture = "\z\addons\dayz_communityassets\pictures\equip_1inch_metal_pipe_ca.paa";
|
|
type = 256;
|
|
};
|
|
|
|
class equip_2inch_metal_pipe : CA_Magazine {
|
|
scope = public;
|
|
count = 1;
|
|
displayName = $STR_ITEM_NAME_equip_2inch_metal_pipe;
|
|
descriptionShort = $STR_ITEM_DESC_equip_2inch_metal_pipe;
|
|
model = "\z\addons\dayz_communityassets\models\2in_pipe.p3d";
|
|
picture = "\z\addons\dayz_communityassets\pictures\equip_2inch_metal_pipe.paa";
|
|
type = 256;
|
|
};
|
|
|
|
class equip_tent_poles : CA_Magazine {
|
|
scope = public;
|
|
count = 1;
|
|
displayName = $STR_ITEM_NAME_equip_tent_poles;
|
|
descriptionShort = $STR_ITEM_DESC_equip_tent_poles;
|
|
model = "z\addons\dayz_communityassets\models\1m_pole_6.p3d";
|
|
picture = "\z\addons\dayz_communityassets\pictures\equip_1m_pole_6_ca.paa";
|
|
type = 256;
|
|
}; |