Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Melee/MeleeSledgehammer.hpp
ebaydayz c2b16f0828 Consolidate DZE_ActionInProgress and r_action_count to one variable
There is no point in having two variables for the same purpose.

It is also pointless to keep an action count tally like r_action_count
was doing, since it is only ever checked for being 0 or 1. Any count
higher or lower than that is irrelevant.

I will make this change in vanilla too.
2016-08-25 15:38:27 -04:00

36 lines
708 B
C++

class MeleeSledge: MeleeWeapon
{
scope = public;
model = "\z\addons\dayz_epoch\models\sledge_weaponized";
picture = "\z\addons\dayz_epoch\pictures\equip_sledge_CA.paa"; // todo icon
displayName = $STR_EQUIP_NAME_SledgeHammer;
descriptionShort = $STR_EQUIP_SLEDGE_DESC;
magazines[] = {"Sledge_Swing"};
droppeditem = "ItemSledge";
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_2TB;
script = "spawn player_addToolbelt;";
use[] = {"MeleeSledge"};
output[] = {"ItemSledge"};
};
class Drop
{
text = $STR_ACTIONS_DROP;
script = "spawn player_dropWeapon;";
use[] = {"Sledge_Swing"};
};
};
class Library
{
libTextDesc=$STR_EQUIP_SLEDGE_DESC;
};
};