mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
This got discussed earlier. Since epoch got merged with DayZ Mod we have a different name for the scope and type of configs. A proper config should use numbers for those entries. This is the same how arma configs are written. The basicDefines.hpp has all the needed information stored. Also, this removes the weight entries from the magazines since we have them in a separate folder, so admins can edit them.
66 lines
1.8 KiB
C++
66 lines
1.8 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 = "\z\addons\dayz_epoch\pictures\equip_sledge_CA.paa";
|
|
displayName = $STR_name_ItemSledgeHammerBroken;
|
|
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
|
|
};
|
|
|
|
//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 = "\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;";
|
|
};
|
|
};
|
|
}; |