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.
37 lines
932 B
C++
37 lines
932 B
C++
class NVGoggles: Binocular
|
|
{
|
|
model = "\dayz_epoch_c\items\nvg\nvg_dzn.p3d";
|
|
};
|
|
|
|
class NVGoggles_DZE: NVGoggles
|
|
{
|
|
displayName = "NVG (Full Screen)";
|
|
modelOptics = "";
|
|
descriptionShort = "Full Screen Night Vision Goggles";
|
|
model = "\dayz_epoch_c\items\nvg\nvg_dzn.p3d";
|
|
};
|
|
|
|
class ItemNVGBroken_DZE : Default
|
|
{
|
|
scope = 2;
|
|
type = 4096;
|
|
displayName = $STR_EQUIP_BROKEN_NV;
|
|
model = "\dayz_epoch_c\items\nvg\nvg_dzn.p3d";
|
|
picture = "\dayz_epoch_c\icons\tools\ItemNightVisionBroken.paa";
|
|
descriptionShort = $STR_EQUIP_BROKEN_NV_DESC;
|
|
|
|
class ItemActions
|
|
{
|
|
class Repair
|
|
{
|
|
text = $STR_ACTIONS_FIX_NIGHTVISION;
|
|
script = ";['Repair','CfgWeapons', _id] spawn player_craftItem;";
|
|
neednearby[] = {};
|
|
requiretools[] = {"ItemSolder_DZE"};
|
|
output[] = {};
|
|
outputweapons[] = {"NVGoggles"};
|
|
input[] = {{"equip_floppywire",1},{"equip_scrapelectronics",1}};
|
|
inputweapons[] = {"ItemNVGBroken_DZE"};
|
|
};
|
|
};
|
|
}; |