mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
CFG WEAPONS DONE
This commit is contained in:
79
SQF/dayz_code/Configs/CfgWeapons/Tools/Hatchet.hpp
Normal file
79
SQF/dayz_code/Configs/CfgWeapons/Tools/Hatchet.hpp
Normal file
@@ -0,0 +1,79 @@
|
||||
class ItemHatchet : ItemCore
|
||||
{
|
||||
scope = public;
|
||||
|
||||
model = "\dayz_equip\models\hatchet.p3d";
|
||||
picture = "\dayz_equip\textures\equip_hatchet_CA.paa";
|
||||
displayName = $STR_EQUIP_NAME_HATCHET;
|
||||
descriptionShort = $STR_EQUIP_DESC_HATCHET;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Use
|
||||
{
|
||||
text = $STR_ACTIONS_CHOPWOOD;
|
||||
script = "spawn player_chopWood;";
|
||||
};
|
||||
|
||||
class ToBack
|
||||
{
|
||||
text = $STR_ACTIONS_2BACK;
|
||||
script = "spawn player_addtoBack;";
|
||||
use[] = {"ItemHatchet"};
|
||||
output[] = {"MeleeHatchet"};
|
||||
};
|
||||
|
||||
class Toolbelt
|
||||
{
|
||||
text = "Remove from Toolbelt";
|
||||
script = "spawn player_addToolbelt;";
|
||||
use[] = {"ItemHatchet"};
|
||||
output[] = {"MeleeHatchet"};
|
||||
};
|
||||
};
|
||||
};
|
||||
class ItemHatchet_DZE : ItemCore {
|
||||
scope = 2;
|
||||
displayName = $STR_EQUIP_NAME_41;
|
||||
model = "\dayz_equip\models\hatchet.p3d";
|
||||
picture = "\dayz_equip\textures\equip_hatchet_CA.paa";
|
||||
descriptionShort = $STR_EQUIP_DESC_41;
|
||||
class ItemActions
|
||||
{
|
||||
class ToBack
|
||||
{
|
||||
text = $STR_ACTIONS_2BACK;
|
||||
script = "spawn player_addtoBack;";
|
||||
use[] = {"ItemHatchet_DZE"};
|
||||
output[] = {"MeleeHatchet_DZE"};
|
||||
};
|
||||
|
||||
class Toolbelt
|
||||
{
|
||||
text = "Remove from Toolbelt";
|
||||
script = "spawn player_addToolbelt;";
|
||||
use[] = {"ItemHatchet_DZE"};
|
||||
output[] = {"MeleeHatchet_DZE"};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemHatchetBroken : ItemCore
|
||||
{
|
||||
scope = public;
|
||||
|
||||
picture = "\dayz_equip\textures\equip_hatchet_CA.paa";
|
||||
displayName = $STR_name_ItemHatchetBroken;
|
||||
descriptionShort = $STR_desc_ItemHatchetBroken;
|
||||
|
||||
fixedTool = "ItemHatchet";
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Repair
|
||||
{
|
||||
text = "Fix Hatchet"; //TODO: move to stringtable
|
||||
script="spawn player_fixHatchet;";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user