mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Also streamlining the names of certain items like fuel cans, fish, meat with a status indicator behind the name. Fix some wrong description strings. Add blunt hatchet and wet matches.
59 lines
1.4 KiB
C++
59 lines
1.4 KiB
C++
class ItemSodaEmpty : HandGrenade
|
|
{
|
|
scope = 2;
|
|
model = "\dayz_equip\models\soda_coke_e.p3d";
|
|
picture = "\dayz_equip\textures\equip_soda_empty_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_EMPTY_SODA_CAN;
|
|
descriptionShort = $STR_EQUIP_DESC_EMPTY_SODA_CAN;
|
|
ammo = "SodaCan";
|
|
|
|
class ItemActions
|
|
{
|
|
class Drink
|
|
{
|
|
text = $STR_ACTIONS_DRINK2;
|
|
script = ";[_id] spawn player_fillWater;";
|
|
};
|
|
class Crafting
|
|
{
|
|
text = $STR_EPOCH_MELT_BARS;
|
|
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"fire"};
|
|
requiretools[] = {"ItemToolbox"};
|
|
output[] = {{"ItemAluminumBar",1}};
|
|
input[] = {{"ItemSodaEmpty",6}};
|
|
};
|
|
};
|
|
};
|
|
|
|
class TrashTinCan : HandGrenade
|
|
{
|
|
scope = 2;
|
|
model = "\dayz_equip\models\trash_tincan.p3d";
|
|
picture = "\dayz_equip\textures\equip_tincan_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_EMPTY_TIN_CAN;
|
|
descriptionShort = $STR_EQUIP_DESC_EMPTY_TIN_CAN;
|
|
ammo = "TinCan";
|
|
|
|
class ItemActions
|
|
{
|
|
class Drink
|
|
{
|
|
text = $STR_ACTIONS_DRINK2;
|
|
script = ";[_id] spawn player_fillWater;";
|
|
};
|
|
class Crafting
|
|
{
|
|
text = $STR_EPOCH_MELT_BARS;
|
|
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
|
neednearby[] = {"fire"};
|
|
requiretools[] = {"ItemToolbox"};
|
|
output[] = {{"ItemTinBar",1}};
|
|
input[] = {{"TrashTinCan",6}};
|
|
};
|
|
};
|
|
};
|
|
|
|
#include "SodaCan.hpp"
|
|
#include "TinCan.hpp"
|
|
#include "Misc.hpp" |