mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
90 lines
1.7 KiB
C++
90 lines
1.7 KiB
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;
|
|
};
|
|
};
|
|
|
|
class MeleeHatchet_DZE: MeleeWeapon
|
|
{
|
|
scope=2;
|
|
|
|
model="\dayz_weapons\models\Hatchet_weaponized";
|
|
picture="\dayz_equip\textures\equip_hatchet_CA.paa";
|
|
displayName=$STR_EQUIP_NAME_41;
|
|
droppeditem= "ItemHatchet_DZE";
|
|
magazines[]=
|
|
{
|
|
"Hatchet_Swing"
|
|
};
|
|
handAnim[]=
|
|
{
|
|
"OFP2_ManSkeleton",
|
|
"\dayz_weapons\anim\melee_hatchet_holding.rtm"
|
|
};
|
|
class ItemActions
|
|
{
|
|
class Use
|
|
{
|
|
text = $STR_ACTIONS_CHOPWOOD;
|
|
script = "spawn player_chopWood";
|
|
};
|
|
|
|
class Toolbelt
|
|
{
|
|
text = $STR_ACTIONS_2TB;
|
|
script = "spawn player_addToolbelt";
|
|
use[] = {"MeleeHatchet_DZE"};
|
|
output[] = {"ItemHatchet_DZE"};
|
|
};
|
|
|
|
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_41;
|
|
};
|
|
descriptionShort=$STR_EQUIP_DESC_41;
|
|
};
|