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.
33 lines
724 B
C++
33 lines
724 B
C++
class MeleeMachete: MeleeWeapon
|
|
{
|
|
scope = 2;
|
|
model = "\z\addons\dayz_communityassets\models\machete_weaponized.p3d";
|
|
picture = "\z\addons\dayz_communityassets\pictures\equip_machete_CA.paa";
|
|
displayName = $STR_EQUIP_NAME_MACHETE;
|
|
descriptionShort = $STR_EQUIP_DESC_MACHETE;
|
|
magazines[] = {"Machete_Swing"};
|
|
droppeditem = "MeleeMachete";
|
|
|
|
class ItemActions
|
|
{
|
|
class Toolbelt
|
|
{
|
|
text = $STR_ACTIONS_2TB;
|
|
script = "spawn player_addToolbelt;";
|
|
use[] = {"MeleeMachete"};
|
|
output[] = {"ItemMachete"};
|
|
};
|
|
|
|
class Drop
|
|
{
|
|
text = $STR_ACTIONS_DROP;
|
|
script = "spawn player_dropWeapon;";
|
|
use[] = {"Machete_Swing"};
|
|
};
|
|
};
|
|
|
|
class Library
|
|
{
|
|
libTextDesc = $STR_EQUIP_DESC_MACHETE;
|
|
};
|
|
};
|