mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Move player_fixHatchet to player_craftItem. Also add some more broken tools and some more options to repair tools.
86 lines
2.4 KiB
C++
86 lines
2.4 KiB
C++
class ItemSledge: ItemCore // Epoch class
|
|
{
|
|
scope = 2;
|
|
model = "\z\addons\dayz_epoch\models\sledge_mag.p3d";
|
|
picture = "\z\addons\dayz_epoch\pictures\equip_sledge_CA.paa";
|
|
displayName = $STR_EQUIP_NAME_SledgeHammer;
|
|
descriptionShort = $STR_EQUIP_SLEDGE_DESC;
|
|
|
|
class ItemActions
|
|
{
|
|
class ToBack
|
|
{
|
|
text = $STR_ACTIONS_2BACK;
|
|
script = "spawn player_addtoBack;";
|
|
use[] = {"ItemSledge"};
|
|
output[] = {"MeleeSledge"};
|
|
};
|
|
|
|
class Toolbelt
|
|
{
|
|
text = $STR_ACTIONS_RFROMTB;
|
|
script = "spawn player_addToolbelt;";
|
|
use[] = {"ItemSledge"};
|
|
output[] = {"MeleeSledge"};
|
|
};
|
|
};
|
|
};
|
|
|
|
class ItemSledgeBroken: ItemCore
|
|
{
|
|
scope = 2;
|
|
model = "\z\addons\dayz_epoch\models\sledge_mag.p3d";
|
|
picture = "\dayz_epoch_c\icons\tools\ItemSledge1Broken.paa";
|
|
displayName = $STR_name_ItemSledgeHammerBroken;
|
|
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
|
|
|
|
class ItemActions
|
|
{
|
|
class Repair
|
|
{
|
|
text = $STR_ACTIONS_FIX_SLEDGE_HAMMER;
|
|
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
|
|
neednearby[] = {};
|
|
requiretools[] = {};
|
|
output[] = {};
|
|
outputweapons[] = {"ItemSledge"};
|
|
input[] = {{"equip_duct_tape",1},{"ItemSledgeHandle",1}};
|
|
inputweapons[] = {"ItemSledgeBroken"};
|
|
};
|
|
};
|
|
};
|
|
|
|
//Vanilla sledge is using a different model.
|
|
//All scripts have been changed to use Epoch ItemSledge, but leave this defined in case admins want to use it for something.
|
|
class ItemSledgeHammer : ItemCore
|
|
{
|
|
scope = 2;
|
|
model = "z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.paa";
|
|
displayName = $STR_EQUIP_NAME_SledgeHammer;
|
|
descriptionShort = $STR_EQUIP_DESC_SledgeHammer;
|
|
};
|
|
|
|
class ItemSledgeHammerBroken : ItemCore
|
|
{
|
|
scope = 2;
|
|
model = "z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.p3d";
|
|
picture = "\dayz_epoch_c\icons\tools\ItemSledge2Broken.paa";
|
|
displayName = $STR_name_ItemSledgeHammerBroken;
|
|
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
|
|
|
|
class ItemActions
|
|
{
|
|
class Repair
|
|
{
|
|
text = $STR_ACTIONS_FIX_SLEDGE_HAMMER;
|
|
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
|
|
neednearby[] = {};
|
|
requiretools[] = {};
|
|
output[] = {};
|
|
outputweapons[] = {"ItemSledgeHammer"};
|
|
input[] = {{"equip_duct_tape",1},{"equip_lever",1}};
|
|
inputweapons[] = {"ItemSledgeHammerBroken"};
|
|
};
|
|
};
|
|
}; |