mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-20 23:20:50 +03:00
Remove DayZ Mod crafting and replace it with epoch crafting
- 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.
This commit is contained in:
@@ -7,6 +7,7 @@ class ItemCanvas: CA_Magazine
|
||||
model = "\z\addons\dayz_epoch\models\canvas.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_canvas_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_CANVAS_DESC;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
@@ -56,6 +57,7 @@ class ItemCanvas: CA_Magazine
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemBurlap: CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
@@ -65,13 +67,14 @@ class ItemBurlap: CA_Magazine
|
||||
model = "\z\addons\dayz_epoch\models\burlap.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_burlap_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_BURLAP_DESC;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_195;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"sand"}; // todo add sand requirement
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemEtool","ItemToolbox"};
|
||||
output[] = {{"ItemSandbag",1}};
|
||||
input[] = {{"ItemBurlap",3}};
|
||||
@@ -87,6 +90,20 @@ class equip_rag : CA_Magazine {
|
||||
model = "\z\addons\dayz_communityassets\models\rag_clean.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_rag_clean_ca.paa";
|
||||
type = 256;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_269;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemKnife"};
|
||||
output[] = {{"ItemBandage",2}};
|
||||
outputweapons[] = {};
|
||||
input[] = {{"equip_gauze",2},{"equip_rag",1},{"equip_string",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class equip_string : CA_Magazine {
|
||||
@@ -94,9 +111,59 @@ class equip_string : CA_Magazine {
|
||||
count = 1;
|
||||
displayName = $STR_ITEM_NAME_equip_string;
|
||||
descriptionShort = $STR_ITEM_DESC_equip_string;
|
||||
model = "\z\addons\dayz_communityassets\models\string.p3d";
|
||||
model = "\z\addons\dayz_communityassets\models\string.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_string_ca.paa";
|
||||
type = 256;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_269;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemKnife"};
|
||||
output[] = {{"ItemBandage",2}};
|
||||
outputweapons[] = {};
|
||||
input[] = {{"equip_gauze",2},{"equip_rag",1},{"equip_string",1}};
|
||||
};
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_ITEM_NAME_TRIPWIRE_CANS;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"ItemTrapTripwireCans",1}};
|
||||
input[] = {{"equip_string",1},{"TrashTinCan",1},{"PartWoodPile",1},{"equip_duct_tape",1}};
|
||||
};
|
||||
class Crafting2
|
||||
{
|
||||
text = $STR_ITEM_NAME_TRIPWIRE_FLARE;
|
||||
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"ItemTrapTripwireFlare",1}};
|
||||
input[] = {{"equip_string",1},{"HandRoadFlare",1},{"PartWoodPile",1},{"equip_duct_tape",1}};
|
||||
};
|
||||
class Crafting3
|
||||
{
|
||||
text = $STR_ITEM_NAME_TRIPWIRE_GRENADE;
|
||||
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"ItemTrapTripwireGrenade",1}};
|
||||
input[] = {{"equip_string",1},{"HandGrenade_West",1},{"PartWoodPile",1},{"equip_duct_tape",1}};
|
||||
};
|
||||
class Crafting4
|
||||
{
|
||||
text = $STR_ITEM_NAME_TRIPWIRE_SMOKE;
|
||||
script = ";['Crafting4','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox"};
|
||||
output[] = {{"ItemTrapTripwireSmoke",1}};
|
||||
input[] = {{"equip_string",1},{"SmokeShell",1},{"PartWoodPile",1},{"equip_duct_tape",1}};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class equip_rope : CA_Magazine {
|
||||
@@ -107,6 +174,7 @@ class equip_rope : CA_Magazine {
|
||||
model = "\z\addons\dayz_communityassets\models\rope.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_rope_ca.paa";
|
||||
type = 256;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
|
||||
Reference in New Issue
Block a user