Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgMagazines/Consumables/Canteen.hpp
ebaydayz 4b9d6df0bb Finish localization support
Vanilla development commit:

33c6cafbcb
2016-04-28 22:13:48 -04:00

54 lines
929 B
C++

class ItemCanteen : FoodDrink
{
scope = public;
model = "\dayz_equip\models\waterbottle_gear.p3d";
picture = "\dayz_equip\textures\equip_waterbottle_ca.paa";
displayName = $STR_ITEM_CANTEEN_NAME;
descriptionShort = $STR_ITEM_CANTEEN_DESC;
Nutrition[] = {0,0,1000,0};
infectionChance = 0.3;
consumeOutput = "ItemCanteenEmpty";
containerEmpty = "ItemCanteenEmpty";
class ItemActions : ItemActions
{
class Consume : Consume
{
};
class Empty
{
text = $STR_ITEM_CANTEEN_EMPTY;
script = "spawn player_emptyContainer";
};
};
};
class ItemCanteenInfected : ItemCanteen
{
infectionChance = 1;
};
class ItemCanteenSafe : ItemCanteen
{
infectionChance = 0;
};
class ItemCanteenBoiled : ItemCanteen
{
displayName = $STR_ITEM_CANTEEN_BOILED_NAME;
infectionChance = 0;
};
class ItemCanteenHerbal : ItemCanteen
{
displayName = $STR_ITEM_CANTEEN_HERBAL_NAME;
infectionChance = -0.5;
};