Move fix tool to epoch crafting

Move player_fixHatchet to player_craftItem. Also add some more broken tools and some more options to repair tools.
This commit is contained in:
AirwavesMan
2020-06-10 14:00:32 +02:00
parent a69948d546
commit 1b412ab599
15 changed files with 234 additions and 15 deletions

View File

@@ -303,6 +303,7 @@ class CfgWeapons
#include "Tools\Binocular.hpp"
#include "Tools\NVG.hpp"
#include "Tools\BinocularVector.hpp"
#include "Tools\Chainsaw.hpp"
#include "Tools\Map.hpp"

View File

@@ -1,4 +1,14 @@
class Binocular : Default
{
modelOptics = "z\addons\dayz_communityweapons\binocular\2dscope_binocular.p3d";
};
class BinocularBroken : Default
{
scope = 2;
type = 4096;
displayName = $STR_EQUIP_BROKEN_BINOCULAR;
descriptionShort = $STR_EQUIP_BROKEN_BINOCULAR_DESC;
model = "\ca\weapons\dalekohled_proxy";
picture = "\dayz_epoch_c\icons\tools\ItemBinocularBroken.paa";
};

View File

@@ -0,0 +1,24 @@
class Binocular_VectorBroken : Default
{
scope = 2;
type = 4096;
displayName = $STR_EQUIP_BROKEN_BINOCULARVECTOR;
descriptionShort = $STR_EQUIP_BROKEN_BINOCULARVECTOR_DESC;
model = "\ca\weapons_E\vector\vector21dt";
picture = "\dayz_epoch_c\icons\tools\ItemBinocularVectorBroken.paa";
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_BIONCULARVECTOR;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemSolder_DZE"};
output[] = {};
outputweapons[] = {"Binocular_Vector"};
input[] = {{"equip_floppywire",1},{"equip_scrapelectronics",1}};
inputweapons[] = {"Binocular_VectorBroken"};
};
};
};

View File

@@ -45,4 +45,19 @@ class ItemCrowbarBent : ItemCore
picture = "\dayz_epoch_c\icons\tools\ItemCrowbarBroken.paa";
displayName = $STR_EQUIP_NAME_CROWBARBENT;
descriptionShort = $STR_EQUIP_DESC_CROWBARBENT;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_CROWBAR;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {"fire"};
requiretools[] = {"ItemToolbox"};
output[] = {};
outputweapons[] = {"ItemCrowbar"};
input[] = {{"PartGeneric",1}};
inputweapons[] = {"ItemCrowbarBent"};
};
};
};

View File

@@ -14,4 +14,19 @@ class ItemEtoolBroken : ItemCore
picture = "\dayz_epoch_c\icons\tools\ItemEtoolBroken.paa";
displayName = $STR_EQUIP_NAME_1_BROKEN;
descriptionShort = $STR_EQUIP_DESC_1_BROKEN;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_ETOOL;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {};
outputweapons[] = {"ItemEtool"};
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
inputweapons[] = {"ItemEtoolBroken"};
};
};
};

View File

@@ -45,4 +45,19 @@ class ItemFishingPoleBroken : ItemCore
picture = "\dayz_epoch_c\icons\tools\ItemFishingpoleBroken.paa";
displayName = $STR_ITEM_NAME_FISHINGPOLEBROKEN;
descriptionShort = $STR_ITEM_DESC_FISHINGPOLE_BROKEN;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_FISHINGPOLE;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {};
outputweapons[] = {"ItemFishingPole"};
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
inputweapons[] = {"ItemFishingPoleBroken"};
};
};
};

View File

@@ -10,4 +10,19 @@ class ItemGPSBroken_DZE : ItemCore
model = "z\addons\dayz_communityassets\models\gps.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemGPSBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_GPS_DESC;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_GPS;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemSolder_DZE"};
output[] = {};
outputweapons[] = {"ItemGPS"};
input[] = {{"equip_floppywire",1},{"equip_scrapelectronics",1}};
inputweapons[] = {"ItemGPSBroken_DZE"};
};
};
};

View File

@@ -33,14 +33,19 @@ class ItemHatchetBroken : ItemCore
model = "\dayz_equip\models\hatchet.p3d";
displayName = $STR_name_ItemHatchetBroken;
descriptionShort = $STR_desc_ItemHatchetBroken;
fixedTool = "ItemHatchet";
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_HATCHET;
script="spawn player_fixHatchet;";
};
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {};
outputweapons[] = {"ItemHatchet"};
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
inputweapons[] = {"ItemHatchetBroken"};
};
};
};

View File

@@ -11,11 +11,27 @@ class NVGoggles_DZE: NVGoggles
model = "\dayz_epoch_c\items\nvg\nvg_dzn.p3d";
};
class ItemNVGBroken_DZE : ItemCore
class ItemNVGBroken_DZE : Default
{
scope = 2;
type = 4096;
displayName = $STR_EQUIP_BROKEN_NV;
model = "\dayz_epoch_c\items\nvg\nvg_dzn.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemNightVisionBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_NV_DESC;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_NIGHTVISION;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemSolder_DZE"};
output[] = {};
outputweapons[] = {"NVGoggles"};
input[] = {{"equip_floppywire",1},{"equip_scrapelectronics",1}};
inputweapons[] = {"ItemNVGBroken_DZE"};
};
};
};

View File

@@ -23,14 +23,19 @@ class ItemPickaxeBroken : ItemCore
picture = "\dayz_epoch_c\icons\tools\ItemPickaxeBroken.paa";
displayName = $STR_name_ItemPickaxeBroken;
descriptionShort = $STR_desc_ItemPickaxeBroken;
fixedTool = "ItemPickaxe";
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_PICKAXE;
script = "spawn player_fixHatchet;";
};
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {};
outputweapons[] = {"ItemPickaxe"};
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
inputweapons[] = {"ItemPickaxeBroken"};
};
};
};

View File

@@ -18,4 +18,19 @@ class ItemRadioBroken_DZE : ItemCore
model = "\nst\ns_dayz\items\radio\radio_dzn.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemRadioBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_RADIO_DESC;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_RADIO;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemSolder_DZE"};
output[] = {};
outputweapons[] = {"ItemRadio"};
input[] = {{"equip_floppywire",1},{"equip_scrapelectronics",1}};
inputweapons[] = {"ItemRadioBroken_DZE"};
};
};
};

View File

@@ -14,4 +14,19 @@ class ItemShovelBroken : ItemCore
picture = "\dayz_epoch_c\icons\tools\ItemShovelBroken.paa";
displayName = $STR_EQUIP_NAME_1b_BROKEN;
descriptionShort = $STR_EQUIP_DESC_1b_BROKEN;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_SHOVEL;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {};
outputweapons[] = {"ItemShovel"};
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
inputweapons[] = {"ItemShovelBroken"};
};
};
};

View File

@@ -33,6 +33,21 @@ class ItemSledgeBroken: ItemCore
picture = "\dayz_epoch_c\icons\tools\ItemSledge1Broken.paa";
displayName = $STR_name_ItemSledgeHammerBroken;
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_SLEDGE_HAMMER;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {};
outputweapons[] = {"ItemSledge"};
input[] = {{"equip_duct_tape",1},{"ItemSledgeHandle",1}};
inputweapons[] = {"ItemSledgeBroken"};
};
};
};
//Vanilla sledge is using a different model.
@@ -53,14 +68,19 @@ class ItemSledgeHammerBroken : ItemCore
picture = "\dayz_epoch_c\icons\tools\ItemSledge2Broken.paa";
displayName = $STR_name_ItemSledgeHammerBroken;
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
fixedTool = "ItemSledgeHammer";
class ItemActions
{
class Toolbelt
class Repair
{
text = $STR_ACTIONS_FIX_SLEDGE_HAMMER;
script = "spawn player_fixHatchet;";
};
};
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {};
outputweapons[] = {"ItemSledgeHammer"};
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
inputweapons[] = {"ItemSledgeHammerBroken"};
};
};
};