mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Add drop weapon action to MeleeSledge
This commit is contained in:
@@ -2,29 +2,30 @@ 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;
|
||||
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"};
|
||||
magazines[] = {"Sledge_Swing"};
|
||||
|
||||
droppeditem= "ItemSledge";
|
||||
droppeditem = "ItemSledge";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Toolbelt
|
||||
{
|
||||
text=$STR_ACTIONS_2TB;
|
||||
script="spawn player_addToolbelt;";
|
||||
use[]=
|
||||
{
|
||||
"MeleeSledge"
|
||||
};
|
||||
output[]=
|
||||
{
|
||||
"ItemSledge"
|
||||
};
|
||||
text = $STR_ACTIONS_2TB;
|
||||
script = "spawn player_addToolbelt;";
|
||||
use[] = {"MeleeSledge"};
|
||||
output[] = {"ItemSledge"};
|
||||
};
|
||||
|
||||
class Drop
|
||||
{
|
||||
text = $STR_ACTIONS_DROP;
|
||||
script = "spawn player_dropWeapon; r_action_count = r_action_count + 1;";
|
||||
use[] = {"Sledge_Swing"};
|
||||
};
|
||||
};
|
||||
class Library
|
||||
|
||||
@@ -6,6 +6,7 @@ class ItemSledge: ItemCore // Epoch class
|
||||
picture="\z\addons\dayz_epoch\pictures\equip_sledge_CA.paa";
|
||||
displayName=$STR_EQUIP_NAME_SledgeHammer;
|
||||
descriptionShort=$STR_EQUIP_SLEDGE_DESC;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class ToBack
|
||||
|
||||
Reference in New Issue
Block a user