mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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.
36 lines
691 B
C++
36 lines
691 B
C++
class MeleeCrowbar : MeleeWeapon
|
|
{
|
|
scope = public;
|
|
|
|
model = "\dayz_weapons\models\crowbar_weaponized";
|
|
picture = "\dayz_weapons\textures\equip_crowbar_CA.paa";
|
|
displayName = $STR_EQUIP_NAME_CROWBAR;
|
|
descriptionShort = $STR_EQUIP_DESC_CROWBAR;
|
|
|
|
magazines[] = {"Crowbar_Swing"};
|
|
|
|
droppeditem = "ItemCrowbar";
|
|
|
|
class ItemActions
|
|
{
|
|
class Toolbelt
|
|
{
|
|
text = $STR_ACTIONS_2TB;
|
|
script = "spawn player_addToolbelt";
|
|
use[] = {"MeleeCrowbar"};
|
|
output[] = {"ItemCrowbar"};
|
|
};
|
|
|
|
class Drop
|
|
{
|
|
text = $STR_ACTIONS_DROP;
|
|
script = "spawn player_dropWeapon;";
|
|
use[] = {"Crowbar_Swing"};
|
|
};
|
|
};
|
|
|
|
class Library
|
|
{
|
|
libTextDesc = $STR_EQUIP_DESC_CROWBAR;
|
|
};
|
|
}; |