mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Move player_fixHatchet to player_craftItem. Also add some more broken tools and some more options to repair tools.
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
class ItemPickaxe : ItemCore
|
|
{
|
|
scope = 2;
|
|
model = "z\addons\dayz_communityweapons\models\pickaxe\pickaxe.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\models\pickaxe\pickaxe.paa";
|
|
displayName = $STR_EQUIP_NAME_PICKAXE;
|
|
descriptionShort = $STR_EQUIP_DESC_PICKAXE;
|
|
|
|
class ItemActions
|
|
{
|
|
class Use
|
|
{
|
|
text = $STR_ACTIONS_MINE_STONE;
|
|
script = "spawn player_mineStone;";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ItemPickaxeBroken : ItemCore
|
|
{
|
|
scope = 2;
|
|
model = "z\addons\dayz_communityweapons\models\pickaxe\pickaxe.p3d";
|
|
picture = "\dayz_epoch_c\icons\tools\ItemPickaxeBroken.paa";
|
|
displayName = $STR_name_ItemPickaxeBroken;
|
|
descriptionShort = $STR_desc_ItemPickaxeBroken;
|
|
|
|
class ItemActions
|
|
{
|
|
class Repair
|
|
{
|
|
text = $STR_ACTIONS_FIX_PICKAXE;
|
|
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
|
|
neednearby[] = {};
|
|
requiretools[] = {};
|
|
output[] = {};
|
|
outputweapons[] = {"ItemPickaxe"};
|
|
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
|
|
inputweapons[] = {"ItemPickaxeBroken"};
|
|
};
|
|
};
|
|
}; |