Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Tools/Hatchet.hpp
A Man 69408ab39f Clean up, change strings for better mod compatibility
Also streamlining the names of certain items like fuel cans, fish, meat with a status indicator behind the name.

Fix some wrong description strings.

Add blunt hatchet and wet matches.
2021-05-12 19:13:02 +02:00

69 lines
1.6 KiB
C++

class ItemHatchet : ItemCore
{
scope = 2;
model = "\dayz_equip\models\hatchet.p3d";
picture = "\dayz_equip\textures\equip_hatchet_CA.paa";
displayName = $STR_EQUIP_NAME_HATCHET;
descriptionShort = $STR_EQUIP_DESC_HATCHET;
class ItemActions
{
class ToBack
{
text = $STR_ACTIONS_2BACK;
script = "spawn player_addtoBack;";
use[] = {"ItemHatchet"};
output[] = {"MeleeHatchet"};
};
class Toolbelt
{
text = $STR_ACTIONS_RFROMTB;
script = "spawn player_addToolbelt;";
use[] = {"ItemHatchet"};
output[] = {"MeleeHatchet"};
};
};
};
class ItemHatchetBroken : ItemCore
{
scope = 2;
picture = "\dayz_epoch_c\icons\tools\ItemHatchetBroken.paa";
model = "\dayz_equip\models\hatchet.p3d";
displayName = $STR_name_ItemHatchetBroken;
descriptionShort = $STR_desc_ItemHatchetBroken;
class ItemActions
{
class Repair
{
text = $STR_ACTIONS_FIX_HATCHET;
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {};
output[] = {};
outputweapons[] = {"ItemHatchet"};
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
inputweapons[] = {"ItemHatchetBroken"};
};
};
};
class ItemHatchetBlunt : ItemCore
{
scope = 2;
picture = "\dayz_epoch_c\icons\tools\ItemHatchetBroken.paa";
model = "\dayz_equip\models\hatchet.p3d";
displayName = $STR_EQUIP_NAME_HATCHET_DULL;
descriptionShort = $STR_EQUIP_DESC_HATCHET_DULL;
class ItemActions
{
class SharpenHatchet
{
text = $STR_ACTIONS_SHARPEN_HATCHET;
script = "; ['ItemHatchetBlunt','ItemHatchet'] spawn player_sharpen;";
};
};
};