mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Tool breaking is disabled by default. Also made all scripts use Epoch sledge, which is a different model from vanilla sledge. PK_DZ was a duplicate of the new PKM_DZ.
64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
class ItemSledge: ItemCore // Epoch class
|
|
{
|
|
scope = public;
|
|
|
|
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 Toolbelt
|
|
{
|
|
text=$STR_EPOCH_PLAYER_295;
|
|
script="spawn player_addToolbelt;";
|
|
use[]=
|
|
{
|
|
"ItemSledge"
|
|
};
|
|
output[]=
|
|
{
|
|
"MeleeSledge"
|
|
};
|
|
};
|
|
/* Lets take this out for now and see how it goes.
|
|
class MineOre
|
|
{
|
|
text="Mine Ore";
|
|
script="spawn player_mineOre;";
|
|
};
|
|
*/
|
|
};
|
|
};
|
|
/* //Vanilla sledge is using a different model
|
|
class ItemSledgeHammer : ItemCore
|
|
{
|
|
scope = public;
|
|
|
|
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 = public;
|
|
|
|
model = "z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.p3d";
|
|
picture = "\z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.paa";
|
|
displayName = $STR_name_ItemSledgeHammerBroken;
|
|
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
|
|
|
|
fixedTool = "ItemSledgeHammer";
|
|
|
|
class ItemActions
|
|
{
|
|
class Toolbelt
|
|
{
|
|
text = $STR_ACTIONS_FIX_SLEDGE_HAMMER;
|
|
script = "spawn player_fixHatchet;";
|
|
};
|
|
};
|
|
};
|
|
*/ |