Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Tools/FishingPole.hpp
AirwavesMan 1b412ab599 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.
2020-06-10 14:00:32 +02:00

63 lines
1.3 KiB
C++

class ItemFishingPole : ItemCore
{
scope = 2;
model = "\z\addons\dayz_communityassets\models\fishing_rod_loot_item.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_fishingpole_CA.paa";
displayName = $STR_ITEM_NAME_FISHINGPOLE;
descriptionShort = $STR_ITEM_DESC_FISHINGPOLE;
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_RFROMTB;
script = "spawn player_addToolbelt;";
use[] =
{
"ItemFishingPole"
};
output[] =
{
"MeleeFishingPole"
};
};
class ToBack
{
text = $STR_ACTIONS_2BACK;
script = "spawn player_addtoBack;";
use[] =
{
"ItemFishingPole"
};
output[] =
{
"MeleeFishingPole"
};
};
};
};
class ItemFishingPoleBroken : ItemCore
{
scope = 2;
model = "\z\addons\dayz_communityassets\models\fishing_rod_loot_item.p3d";
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"};
};
};
};