Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Melee/Hatchet.hpp
ebaydayz 796c607173 Fix vanilla chop wood error
Players can now chop wood either with hatchet in their hands (faster) or
via right click on toolbelt (slower).
2016-04-21 12:28:00 -04:00

42 lines
820 B
C++

class MeleeHatchet : MeleeWeapon
{
scope = public;
model = "\dayz_weapons\models\Hatchet_weaponized";
picture = "\dayz_equip\textures\equip_hatchet_CA.paa";
displayName = $STR_EQUIP_NAME_HATCHET;
descriptionShort = $STR_EQUIP_DESC_HATCHET;
magazines[] = {"Hatchet_Swing"};
droppeditem = "ItemHatchet";
class ItemActions
{
class Use
{
text = $STR_ACTIONS_CHOPWOOD;
script = "spawn player_chopWood";
};
class Toolbelt
{
text = $STR_ACTIONS_2TB;
script = "spawn player_addToolbelt";
use[] = {"MeleeHatchet"};
output[] = {"ItemHatchet"};
};
class Drop
{
text = $STR_ACTIONS_DROP;
script = "spawn player_dropWeapon; r_action_count = r_action_count + 1;";
use[] = {"Hatchet_Swing"};
};
};
class Library
{
libTextDesc = $STR_EQUIP_DESC_HATCHET;
};
};