Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CfgVehicles {
- class InventoryBase; // External class reference
- class FoodItemBase : InventoryBase {
- scope = 0;
- handheld = 1;
- armAction = "Disarm";
- rotateDropped = 1;
- rotateAlways = 0;
- spawnOffset = 0;
- trashItem = "";
- storeVariables[] = {"quantity", "modifiers", "lifetime"};
- synchronizedVariables[] = {"quantity", 1, "temperature", 0.2};
- class Melee {
- range = 0.8;
- swingTime = 0.5;
- action = "MeleeAttack2";
- ammo = "MeleeFist";
- useCursor = 1;
- };
- stackedMax = 1;http://www.londonlofts.net/property/warehouse-shell/
- stackedUnit = "g";
- quantity = "format ['%1%%', round((quantity _this / maxQuantity _this) * 100)]";
- tooltip = "_text = _this call fnc_generateTooltip;_text";
- class UserActions {
- class Eat : ActionOnSelf {
- displayNameDefault = $STR_USERACTIONS_EAT;
- displayName = $STR_USERACTIONS_EAT;
- sound = "eating_soft";
- action = "playerEat";
- trashItem = "";
- interactionWeight = 1;
- messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten some %1", "colorAction"};
- };
- class ForceFeed : ActionOnTarget {
- displayNameDefault = "Feed";
- displayName = "Force feed";
- sound = "";
- action = "ItemUseShort";
- radius = 2;
- onStart = "";
- onComplete = "";
- useQuantity = 1;
- trashItem = "";
- interactionWeight = 0.25;
- messages[] = {"One cannot force feed a dead person", "colorStatusChannel", "%1 starts force feeding you", "colorFriendly", "I start force feeding %1", "colorAction", "%1 moved and force feeding failed", "colorImportant", "%1 has successfully force fed you", "colorFriendly", "I have successfully force fed %1", "colorAction"};
- };
- class CancelAction : DefaultAction {
- displayNameDefault = "Cancel current action";
- displayName = "Cancel current action";
- priority = 0;
- position = "action";
- radius = 2;
- onlyForPlayer = 0;
- showInHands = 1;
- condition = "_person getVariable ['isUsingSomething',0] == 1";
- statement = "_person setVariable ['inUseItem',objNull]; _person setVariable ['isUsingSomething',0]; _person setVariable ['wasCanceled',1]; [_person,'Current action was cancelled',''] call fnc_playerMessage; _person playAction 'CancelAction';";
- interactionWeight = 0;
- };
- };
- };
- class BoxCerealBase : FoodItemBase {
- scope = 0;
- model = "\dz\gear\food\BoxCereal.p3d";
- descriptionShort = $STR_ITEMS_CEREAL_DESC;
- hiddenSelections[] = {"camoGround"};
- itemSize[] = {2, 2};
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\box_cereal.rtm"};
- hiddenSelectionsTextures[] = {};
- class Nutrition {
- totalVolume = 250;
- energy = 930;
- water = -250;
- nutritionalIndex = 105;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_FORCEFEED_RAWCEREAL;
- sound = "eating_crunchy";
- useQuantity = 0.201;
- };
- class EatAll : Eat {
- displayNameDefault = $STR_USERACTIONS_EATALL;
- displayName = $STR_USERACTIONS_EATALL;
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "PlayerEatAll";
- useQuantity = 1;
- messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
- };
- class ForceFeed : ForceFeed {
- useQuantity = 0.201;
- };
- };
- };
- class Food_BoxCerealCrunchin : BoxCerealBase {
- scope = 2;
- displayName = $STR_ITEMS_CEREAL;
- rotateDropped = 1;
- absorbency = 0.7;
- class Damage {
- tex[] = {};
- mat[] = {"DZ\gear\food\data\Cereal_box.rvmat", "DZ\gear\food\data\Cereal_box_damage.rvmat", "DZ\gear\food\data\Cereal_box_destruct.rvmat"};
- };
- hiddenSelectionsTextures[] = {"\dz\gear\food\Data\CerealBox_01_CO.paa"};
- };
- class Food_PowderedMilk : FoodItemBase {
- scope = 2;
- displayName = $STR_ITEMS_POWDEREDMILK;
- descriptionShort = $STR_ITEMS_POWDEREDMILK_DESC;
- model = "\dz\gear\food\PowderedMilk.p3d";
- rotateDropped = 1;
- rotateAlways = 1;
- absorbency = 0.9;
- class Damage {
- tex[] = {};
- mat[] = {"DZ\gear\food\data\powdered_milk.rvmat", "DZ\gear\food\data\powdered_milk_damage.rvmat", "DZ\gear\food\data\powdered_milk_destruct.rvmat"};
- };
- itemSize[] = {1, 1};
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\powdered_milk.rtm"};
- class Nutrition {
- totalVolume = 200;
- energy = 992;
- water = -400;
- nutritionalIndex = 84;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_POWDEREDMILK;
- useQuantity = 0.1;
- };
- class EatAll : Eat {
- displayNameDefault = $STR_USERACTIONS_EATALL;
- displayName = $STR_USERACTIONS_EATALL;
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "PlayerEatAll";
- useQuantity = 1;
- messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_POWDEREDMILK;
- useQuantity = 0.1;
- };
- };
- };
- class Food_SmallGuts : FoodItemBase {
- scope = 1;
- displayName = "Small Pile of Guts";
- descriptionShort = "Small pile of guts.";
- model = "\dz\gear\food\animal_smallguts.p3d";
- rotateDropped = 1;
- rotateAlways = 1;
- absorbency = 0;
- class Damage {
- tex[] = {};
- mat[] = {"DZ\gear\food\data\powdered_milk.rvmat", "DZ\gear\food\data\powdered_milk_damage.rvmat", "DZ\gear\food\data\powdered_milk_destruct.rvmat"};
- };
- itemSize[] = {1, 1};
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\tools\pen.rtm"};
- storeVariables[] = {"internalenergy", "ison", "lifetime", "temperature", "quantity"};
- synchronizedVariables[] = {"quantity", 1, "temperature", 0.2};
- internalResources[] = {{"internalenergy", 0.1}};
- class Melee : Melee {
- ammo = "MeleeSoft";
- };
- class Nutrition {
- totalVolume = 200;
- energy = 992;
- water = -400;
- nutritionalIndex = 84;
- };
- class EventHandlers {
- Init = "(_this select 0) setVariable ['internalenergy', 25];(_this select 0) setTemperature 20;(_this select 0) powerOn true;";
- Restore = "_temp = (_this select 0) getVariable ['temperature',20];(_this select 0) setTemperature _temp;";
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat";
- useQuantity = 0.1;
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.55) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};if (_poisonChance < 0.15) then {[0,_person,'Salmonellosis'] call event_modifier;};";
- };
- class EatAll : Eat {
- displayNameDefault = "Eat All";
- displayName = "Eat All";
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "PlayerEatAll";
- useQuantity = 1;
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.75) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};if (_poisonChance < 0.15) then {[0,_person,'Salmonellosis'] call event_modifier;};";
- messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_POWDEREDMILK;
- useQuantity = 0.1;
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.55) then {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.15) then {[0,_target,'Salmonellosis'] call event_modifier;};";
- };
- };
- };
- class Food_Guts : Food_SmallGuts {
- displayName = "Pile of Guts";
- descriptionShort = "Pile of guts.";
- model = "\dz\gear\food\animal_guts.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\containers\first_aid_kit.rtm"};
- itemSize[] = {2, 1};
- class EventHandlers {
- Init = "(_this select 0) setVariable ['internalenergy', 50];(_this select 0) setTemperature 40;(_this select 0) powerOn true;";
- };
- };
- class Food_Rice : FoodItemBase {
- scope = 2;
- displayName = $STR_ITEMS_RICE;
- descriptionShort = $STR_ITEMS_RICE_DESC;
- model = "\dz\gear\food\Rice.p3d";
- rotateDropped = 1;
- absorbency = 0.9;
- class Damage {
- tex[] = {};
- mat[] = {"DZ\gear\food\data\rice.rvmat", "DZ\gear\food\data\rice_damage.rvmat", "DZ\gear\food\data\rice_destruct.rvmat"};
- };
- itemSize[] = {1, 2};
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\rice.rtm"};
- class Nutrition {
- totalVolume = 1000;
- energy = 3740;
- water = -1000;
- nutritionalIndex = 500;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_RAWRICE;
- sound = "eating_crunchy";
- useQuantity = 0.1;
- };
- class EatAll : Eat {
- displayNameDefault = $STR_USERACTIONS_EATALL;
- displayName = $STR_USERACTIONS_EATALL;
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "playerEatAll";
- useQuantity = 1;
- messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
- };
- class ForceFeed : ForceFeed {
- useQuantity = 0.1;
- };
- };
- };
- class FoodCanned : FoodItemBase {
- rotateDropped = 1;
- model = "\dz\gear\food\food_can_open.p3d";
- hiddenSelections[] = {"camoGround"};
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\baked_beans.rtm"};
- itemSize[] = {1, 1};
- class Damage {
- tex[] = {};
- mat[] = {"DZ\gear\food\data\food_can.rvmat", "DZ\gear\food\data\food_can_damage.rvmat", "DZ\gear\food\data\food_can_destruct.rvmat"};
- };
- class Melee {
- range = 0.8;
- swingTime = 0.5;
- action = "MeleeAttack2";
- ammo = "MeleeBlunt";
- useCursor = 1;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- useQuantity = 0.25;
- };
- class EatAll : Eat {
- displayNameDefault = $STR_USERACTIONS_EATALL;
- displayName = $STR_USERACTIONS_EATALL;
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "PlayerEatAll";
- useQuantity = 1;
- messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Force Feed";
- displayName = "Force Feed";
- useQuantity = 0.25;
- };
- };
- };
- class FoodCanned_Closed : FoodCanned {
- model = "\dz\gear\food\food_can.p3d";
- stackedMax = 0;
- quantity = "";
- class UserActions {};
- class Nutrition {};
- };
- class Food_CanBakedBeans : FoodCanned_Closed {
- scope = 2;
- displayName = $STR_ITEMS_CANNEDBAKEDBEANS;
- descriptionShort = $STR_ITEMS_CANNEDBAKEDBEANS_DESC;
- model = "\dz\gear\food\food_can.p3d";
- hiddenSelectionsTextures[] = {"dz\gear\food\data\deez_beans_co.paa"};
- };
- class Food_CanBakedBeans_Open : FoodCanned {
- scope = 2;
- displayName = $STR_ITEMS_CANNEDBAKEDBEANS;
- descriptionShort = $STR_ITEMS_CANNEDBAKEDBEANS_DESC;
- model = "\dz\gear\food\food_can_open.p3d";
- hiddenSelectionsTextures[] = {"dz\gear\food\data\deez_beans_co.paa"};
- class Nutrition {
- totalVolume = 440;
- energy = 462;
- water = 330;
- nutritionalIndex = 299;
- };
- };
- class Food_CanPeaches : FoodCanned_Closed {
- scope = 2;
- displayName = $STR_ITEMS_PEACHESCANNED;
- descriptionShort = $STR_ITEMS_PEACHESCANNED_DESC;
- model = "\dz\gear\food\food_can.p3d";
- hiddenSelectionsTextures[] = {"dz\gear\food\data\canned_peaches_co.paa"};
- };
- class Food_CanPeaches_Open : FoodCanned {
- scope = 2;
- displayName = $STR_ITEMS_PEACHESCANNED;
- descriptionShort = $STR_ITEMS_PEACHESCANNED_DESC;
- model = "\dz\gear\food\food_can_open.p3d";
- hiddenSelectionsTextures[] = {"dz\gear\food\data\canned_peaches_co.paa"};
- class Nutrition {
- totalVolume = 440;
- energy = 1359.6;
- water = 350;
- nutritionalIndex = 238;
- };
- };
- class Food_CanTacticalBacon : FoodCanned_Closed {
- scope = 2;
- displayName = $STR_ITEMS_TACTICALBACON;
- descriptionShort = $STR_ITEMS_TACTICALBACON_DESC;
- model = "\dz\gear\food\food_can.p3d";
- hiddenSelectionsTextures[] = {"dz\gear\food\data\tactical_bacon_co.paa"};
- };
- class Food_CanTacticalBacon_Open : FoodCanned {
- scope = 2;
- displayName = $STR_ITEMS_TACTICALBACON;
- descriptionShort = $STR_ITEMS_TACTICALBACON_DESC;
- model = "\dz\gear\food\food_can_open.p3d";
- hiddenSelectionsTextures[] = {"dz\gear\food\data\tactical_bacon_co.paa"};
- class Nutrition {
- totalVolume = 255;
- energy = 107;
- water = 3;
- nutritionalIndex = 612;
- };
- };
- class Food_CanSpaghetti : FoodCanned_Closed {
- scope = 2;
- displayName = $STR_ITEMS_CANNEDSPAGHETTI;
- descriptionShort = $STR_ITEMS_CANNEDSPAGHETTI_DESC;
- model = "\dz\gear\food\food_can.p3d";
- hiddenSelectionsTextures[] = {"dz\gear\food\data\canned_spaghetti_co.paa"};
- };
- class Food_CanSpaghetti_Open : FoodCanned {
- scope = 2;
- displayName = $STR_ITEMS_CANNEDSPAGHETTI;
- descriptionShort = $STR_ITEMS_CANNEDSPAGHETTI_DESC;
- model = "\dz\gear\food\food_can_open.p3d";
- hiddenSelectionsTextures[] = {"dz\gear\food\data\canned_spaghetti_co.paa"};
- class Nutrition {
- totalVolume = 400;
- energy = 300;
- water = 324;
- nutritionalIndex = 192;
- };
- };
- class Food_CanSardines : FoodCanned_Closed {
- scope = 2;
- model = "\dz\gear\food\Sardines.p3d";
- displayName = $STR_ITEMS_CANNEDSARDINES;
- descriptionShort = $STR_ITEMS_CANNEDSARDINES_DESC2;
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\sardines.rtm"};
- class Damage {
- tex[] = {};
- mat[] = {"DZ\gear\food\data\Sardines.rvmat", "DZ\gear\food\data\Sardines_damage.rvmat", "DZ\gear\food\data\Sardines_destruct.rvmat"};
- };
- hiddenSelectionsTextures[] = {"dz\gear\food\data\sardines_CO.paa"};
- };
- class Food_CanSardines_Open : FoodCanned {
- scope = 2;
- model = "\dz\gear\food\sardines_open.p3d";
- displayName = $STR_ITEMS_CANNEDSARDINES;
- descriptionShort = $STR_ITEMS_CANNEDSARDINES_DESC2;
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\sardines.rtm"};
- class Damage {
- tex[] = {};
- mat[] = {"DZ\gear\food\data\Sardines.rvmat", "DZ\gear\food\data\Sardines_damage.rvmat", "DZ\gear\food\data\Sardines_destruct.rvmat"};
- };
- hiddenSelectionsTextures[] = {"dz\gear\food\data\sardines_CO.paa"};
- class Nutrition {
- totalVolume = 160;
- energy = 333;
- water = 96;
- nutritionalIndex = 86;
- };
- };
- class Food_CanTuna_Open : FoodCanned {
- scope = 2;
- model = "\dz\gear\food\tuna_open.p3d";
- displayName = $STR_ITEMS_CANNEDTUNA;
- descriptionShort = $STR_ITEMS_CANNEDTUNA_DESC;
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\tuna.rtm"};
- class Damage {
- tex[] = {};
- mat[] = {"DZ\gear\food\data\tuna.rvmat", "DZ\gear\food\data\tuna_damage.rvmat", "DZ\gear\food\data\tuna_destruct.rvmat"};
- };
- rotateDropped = 0;
- hiddenSelectionsTextures[] = {"dz\gear\food\data\tuna_CO.paa"};
- class Nutrition {
- totalVolume = 240;
- energy = 475;
- water = 144;
- nutritionalIndex = 153;
- };
- };
- class Food_CanTuna : Food_CanTuna_Open {
- model = "\dz\gear\food\Tuna.p3d";
- stackedMax = 0;
- quantity = "";
- class UserActions {};
- class Nutrition {};
- };
- class FruitBase : FoodItemBase {
- rotateDropped = 0;
- rotateAlways = 0;
- itemSize[] = {1, 1};
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\baked_beans.rtm"};
- quantity = "";
- stackedMax = 0;
- stackedUnit = "";
- storeVariables[] = {"modifiers", "lifetime"};
- synchronizedVariables[] = {"temperature", 0.2};
- class Melee {
- range = 0.8;
- swingTime = 0.5;
- action = "MeleeAttack2";
- ammo = "MeleeFist";
- useCursor = 1;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- useQuantity = 0;
- unlimited = 1;
- keepEmpty = 0;
- };
- class ForceFeed : ForceFeed {
- useQuantity = 0;
- unlimited = 1;
- keepEmpty = 0;
- };
- };
- };
- class Fruit_AppleFresh : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_APPLE;
- descriptionShort = $STR_ITEMS_APPLE_DESC;
- model = "\dz\gear\food\apple_fresh.p3d";
- absorbency = 0.2;
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\apple.rtm"};
- class Nutrition {
- totalVolume = 130;
- energy = 69;
- water = 172;
- nutritionalIndex = 70;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_APPLE;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "$STR_USERACTIONS_FEED_APPLE ";
- };
- };
- };
- class Fruit_AppleRotten : Fruit_AppleFresh {
- displayName = $STR_ITEMS_ROTTENAPPLE;
- descriptionShort = $STR_ITEMS_ROTTENAPPLE_DESC;
- model = "\dz\gear\food\apple_rotten.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 100;
- energy = 20;
- water = 40;
- nutritionalIndex = 10;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_ROTTENAPPLE;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_ROTTENAPPLE;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- };
- };
- class Fruit_BananaFresh : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_BANANA;
- descriptionShort = $STR_ITEMS_BANANA_DESC;
- model = "\dz\gear\food\banana_fresh.p3d";
- absorbency = 0.2;
- rotateDropped = 1;
- rotateAlways = 1;
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\banana.rtm"};
- class Nutrition {
- totalVolume = 170;
- energy = 151;
- water = 128;
- nutritionalIndex = 95;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_BANANA;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_BANANA;
- };
- };
- };
- class Fruit_BananaRotten : Fruit_BananaFresh {
- scope = 2;
- displayName = $STR_ITEMS_ROTTENBANANA;
- descriptionShort = $STR_ITEMS_ROTTENBANANA_DESC;
- model = "\dz\gear\food\banana_rottem.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 130;
- energy = 52;
- water = 65;
- nutritionalIndex = 13;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_ROTTENBANANA;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_ROTTENBANANA;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- };
- };
- class Fruit_OrangeFresh : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_ORANGE;
- descriptionShort = $STR_ITEMS_ORANGE_DESC;
- model = "\dz\gear\food\orange_fresh.p3d";
- absorbency = 0.2;
- class Nutrition {
- totalVolume = 150;
- energy = 71;
- water = 131;
- nutritionalIndex = 117;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_ORANGE;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_ORANGE;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\orange.rtm"};
- };
- class Fruit_OrangeRotten : Fruit_OrangeFresh {
- scope = 2;
- displayName = $STR_ITEMS_ROTTENORANGE;
- descriptionShort = $STR_ITEMS_ROTTENORANGE_DESC;
- model = "\dz\gear\food\orange_rotten.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 120;
- energy = 24;
- water = 48;
- nutritionalIndex = 12;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_ROTTENORANGE;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_ROTTENORANGE;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- };
- };
- class Fruit_TomatoFresh : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_TOMATO;
- descriptionShort = $STR_ITEMS_TOMATO_DESC;
- model = "\dz\gear\food\tomato_fresh.p3d";
- absorbency = 0.2;
- seeds[] = {2, 5};
- class Nutrition {
- totalVolume = 111;
- energy = 18;
- water = 105;
- nutritionalIndex = 11;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_TOMATO;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_TOMATO;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\tomato_fresh.rtm"};
- };
- class Fruit_TomatoRotten : Fruit_TomatoFresh {
- scope = 2;
- displayName = $STR_ITEMS_ROTTENTOMATO;
- descriptionShort = $STR_ITEMS_TOMATO_DESC;
- model = "\dz\gear\food\tomato_rotten.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 111;
- energy = 8;
- water = 105;
- nutritionalIndex = 4;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_ROTTENOTOMATO;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_ROTTENTOMATO;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- };
- };
- class Fruit_GreenBellPepperFresh : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_GREENBELLPEPPER;
- descriptionShort = $STR_ITEMS_GREENBELLPEPPER_DESC;
- model = "\dz\gear\food\pepper_green_fresh.p3d";
- absorbency = 0.2;
- class Nutrition {
- totalVolume = 164;
- energy = 33;
- water = 154;
- nutritionalIndex = 16.4;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_GREENBELLPEPPER;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_GREENBELLPEPPER;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\pepper_green_fresh.rtm"};
- };
- class Fruit_GreenBellPepperRotten : Fruit_GreenBellPepperFresh {
- scope = 2;
- displayName = $STR_ITEMS_GREENBELLPEPPER_ROTTEN;
- descriptionShort = $STR_ITEMS_GREENBELLPEPPER_DESC;
- model = "\dz\gear\food\pepper_green_rotten.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 164;
- energy = 15;
- water = 154;
- nutritionalIndex = 8;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_GREENBELLPEPPER_ROTTEN;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_GREENBELLPEPPER_ROTTEN;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- };
- };
- class Fruit_ZucchiniFresh : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_ZUCCHINIFRESH;
- descriptionShort = $STR_ITEMS_ZUCCHINIFRESH_DESC;
- model = "\dz\gear\food\zucchini_fresh.p3d";
- rotateDropped = 1;
- rotateAlways = 1;
- rotateZ = 1;
- itemSize[] = {1, 2};
- absorbency = 0.2;
- stackedMax = 1;
- stackedUnit = "g";
- quantity = "format ['%1%%', round((quantity _this / maxQuantity _this) * 100)]";
- storeVariables[] = {"quantity", "modifiers", "lifetime"};
- synchronizedVariables[] = {"quantity", 1, "temperature", 0.2};
- class Nutrition {
- totalVolume = 323;
- energy = 51;
- water = 306;
- nutritionalIndex = 32.3;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_ZUCCHINIFRESH;
- useQuantity = 0.5;
- keepEmpty = 0;
- unlimited = 0;
- };
- class EatAll : Eat {
- displayNameDefault = $STR_USERACTIONS_EATALL;
- displayName = $STR_USERACTIONS_EATALL;
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "playerEatAll";
- messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_ZUCCHINIFRESH;
- useQuantity = 0.5;
- keepEmpty = 0;
- unlimited = 0;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\zucchini_fresh.rtm"};
- };
- class Fruit_ZucchiniRotten : Fruit_ZucchiniFresh {
- scope = 2;
- displayName = $STR_ITEMS_ZUCCHINIROTTEN;
- descriptionShort = $STR_ITEMS_ZUCCHINIFRESH_DESC;
- model = "\dz\gear\food\zucchini_rotten.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 323;
- energy = 10;
- water = 306;
- nutritionalIndex = 10;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_ZUCCHINI_ROTTEN;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- keepEmpty = 0;
- unlimited = 0;
- };
- class EatAll : Eat {
- displayNameDefault = $STR_USERACTIONS_EATALL;
- displayName = $STR_USERACTIONS_EATALL;
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "playerEatAll";
- messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_ZUCCHINI_ROTTEN;
- useQuantity = 0.5;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- keepEmpty = 0;
- unlimited = 0;
- };
- };
- };
- class Fruit_PumpkinFresh : FruitBase {
- scope = 2;
- displayName = "Pumpkin";
- descriptionShort = "Pumpkin";
- model = "\dz\gear\food\Pumpkin_fresh.p3d";
- rotateDropped = 0;
- rotateAlways = 0;
- rotateZ = 1;
- itemSize[] = {2, 2};
- absorbency = 0.2;
- stackedMax = 1;
- stackedUnit = "g";
- quantity = "format ['%1%%', round((quantity _this / maxQuantity _this) * 100)]";
- storeVariables[] = {"quantity", "modifiers", "lifetime"};
- synchronizedVariables[] = {"quantity", 1, "temperature", 0.2};
- class Nutrition {
- totalVolume = 2000;
- energy = 2000;
- water = 400;
- nutritionalIndex = 80;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat";
- displayName = "Eat";
- useQuantity = 0.335;
- keepEmpty = 0;
- unlimited = 0;
- };
- class EatAll : Eat {
- displayNameDefault = "Eat all";
- displayName = "Eat all";
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.5) then {_action = 'PlayerEat';};";
- action = "playerEatAll";
- messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Force feed the pumpkin";
- useQuantity = 0.335;
- keepEmpty = 0;
- unlimited = 0;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\comsumables\stone.rtm"};
- };
- class Fruit_PumpkinRotten : Fruit_PumpkinFresh {
- scope = 2;
- displayName = "Rotten pumpkin";
- descriptionShort = "Rotten pumpkin";
- model = "\dz\gear\food\pumpkin_rotten.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 1950;
- energy = 250;
- water = 150;
- nutritionalIndex = 10;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat";
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- keepEmpty = 0;
- unlimited = 0;
- };
- class EatAll : Eat {
- displayNameDefault = "Eat all";
- displayName = "Eat all";
- onStart = "if (_quantity <= 0.5) then {_action = 'PlayerEat';};";
- action = "playerEatAll";
- messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Force feed the pumpkin";
- useQuantity = 0.335;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- keepEmpty = 0;
- unlimited = 0;
- };
- };
- };
- class Fruit_PotatoFresh : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_POTATO;
- descriptionShort = $STR_ITEMS_POTATO_DESC;
- model = "\dz\gear\food\potato_fresh.p3d";
- absorbency = 0.2;
- class Nutrition {
- totalVolume = 369;
- energy = 284;
- water = 293;
- nutritionalIndex = 30;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_POTATO;
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_POTATO;
- useQuantity = 1;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\potato_fresh.rtm"};
- };
- class Fruit_PotatoRotten : Fruit_PotatoFresh {
- scope = 2;
- displayName = $STR_ITEMS_POTATO_ROTTEN;
- descriptionShort = $STR_ITEMS_POTATO_DESC;
- model = "\dz\gear\food\potato_rotten.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 396;
- energy = 100;
- water = 293;
- nutritionalIndex = 10;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_POTATO_ROTTEN;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_POTATO_ROTTEN;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- };
- };
- class BerryBase : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_BERRIES;
- descriptionShort = $STR_ITEMS_BERRIES;
- model = "\dz\gear\food\blueberries.p3d";
- absorbency = 0.4;
- class Nutrition {
- totalVolume = 40;
- energy = 70;
- water = 4;
- nutritionalIndex = 32;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_BERRIES;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_BERRIES;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\blueberries.rtm"};
- };
- class Berry_Sambucus : BerryBase {
- displayName = "Blue-coloured berries";
- descriptionShort = "Some kind of berries. Small and blue, but it's impossible to tell whether they are edible or not. Do you still remember your boyscout days?";
- class UserActions : UserActions {
- class Eat : Eat {
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.85): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- class ForceFeed : ForceFeed {
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.85): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- };
- };
- class Berry_Canina : BerryBase {
- displayName = "Red-coloured berries";
- descriptionShort = "Some kind of berries. Small and red, but it's impossible to tell whether they are edible or not. Do you still remember your boyscout days?";
- model = "\dz\gear\food\Poisonousberries.p3d";
- };
- class Fruit_KiwiFresh : FruitBase {
- scope = 2;
- displayName = $STR_ITEMS_KIWI;
- descriptionShort = $STR_ITEMS_KIWI_DESC;
- model = "\dz\gear\food\kiwi_fresh.p3d";
- absorbency = 0.2;
- rotateDropped = 1;
- rotateAlways = 1;
- class Nutrition {
- totalVolume = 70;
- energy = 42;
- water = 59;
- nutritionalIndex = 56;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_KIWI;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_KIWI;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\kiwi.rtm"};
- };
- class Fruit_KiwiRotten : Fruit_KiwiFresh {
- scope = 2;
- displayName = $STR_ITEMS_ROTTENKIWI;
- descriptionShort = $STR_ITEMS_ROTTENKIWI_DESC;
- model = "\dz\gear\food\kiwi_rotten.p3d";
- absorbency = 0.2;
- class Nutrition {
- totalVolume = 50;
- energy = 15;
- water = 20;
- nutritionalIndex = 10;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = $STR_USERACTIONS_EAT_ROTTENKIWI;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = $STR_USERACTIONS_FEED_ROTTENKIWI;
- onComplete = "_poisonChance = random 1; switch true do {case (_poisonChance < 0.05): {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;}; case (_poisonChance < 0.5): {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};};";
- };
- };
- };
- class IngredientBase : FoodItemBase {};
- class MeatBase : IngredientBase {
- scope = 2;
- displayName = "Meat";
- descriptionShort = "Some kind of meat.";
- model = "\dz\gear\food\meat_breast.p3d";
- absorbency = 0.3;
- itemSize[] = {1, 1};
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\baked_beans.rtm"};
- hiddenSelections[] = {"camoGround"};
- class Melee {
- range = 0.8;
- swingTime = 0.5;
- action = "MeleeAttack2";
- ammo = "MeleeFist";
- useCursor = 1;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat meat";
- useQuantity = 0.5;
- };
- class EatAll : Eat {
- displayNameDefault = "Eat all meat";
- displayName = $STR_USERACTIONS_EATALL;
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "playerEatAll";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayName = "Feed";
- displayNameDefault = "Feed meat";
- useQuantity = 0.5;
- };
- };
- };
- class MeatRawBase : MeatBase {
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat raw meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.75) then {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.25) then {[0,_person,'Salmonellosis'] call event_modifier;};";
- };
- class EatAll : EatAll {
- displayNameDefault = "Eat all raw meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.75) then {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.25) then {[0,_person,'Salmonellosis'] call event_modifier;};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed raw Meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.75) then {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.25) then {[0,_target,'Salmonellosis'] call event_modifier;};";
- };
- };
- class Cooking {
- class Fried {
- materials[] = {};
- tools[] = {"CookerBase", "CookwareBase"};
- results[] = {};
- temperature = 100;
- time = 30;
- };
- };
- };
- class MeatCookedBase : MeatBase {
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat cooked meat";
- };
- class EatAll : EatAll {
- displayNameDefault = "Eat all cooked meat";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed cooked Meat";
- };
- };
- class Cooking {
- class Fried {
- materials[] = {};
- tools[] = {"CookerBase", "CookwareBase"};
- results[] = {};
- temperature = 100;
- time = 15;
- };
- };
- };
- class MeatBurnedBase : MeatBase {
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat burned meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.2) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};";
- };
- class EatAll : EatAll {
- displayNameDefault = "Eat burned meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.2) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed burned Meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.2) then {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};";
- };
- };
- };
- class MeatRottenBase : MeatBase {
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat rotten meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_person,'FoodPoisoning_HeavyImpact'] call event_modifier;};if (_poisonChance < 0.5) then {[0,_person,'Salmonellosis'] call event_modifier;};";
- };
- class EatAll : EatAll {
- displayNameDefault = "Eat rotten meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_person,'FoodPoisoning_HeavyImpact'] call event_modifier;};if (_poisonChance < 0.5) then {[0,_person,'Salmonellosis'] call event_modifier;};";
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed rotten Meat";
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_target,'FoodPoisoning_HeavyImpact'] call event_modifier;};if (_poisonChance < 0.5) then {[0,_target,'Salmonellosis'] call event_modifier;};";
- };
- };
- };
- class Meat_HumanSteak_Raw : MeatRawBase {
- displayName = "Raw Human Steak";
- descriptionShort = "A raw human flesh.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 494;
- water = 344;
- nutritionalIndex = 227;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.75) then {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.75) then {[0,_person,'BrainDisease'] call event_modifier;};";
- };
- class EatAll : EatAll {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.75) then {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.75) then {[0,_person,'BrainDisease'] call event_modifier;};";
- };
- class ForceFeed : ForceFeed {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.75) then {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.75) then {[0,_target,'BrainDisease'] call event_modifier;};";
- };
- };
- class Cooking : Cooking {
- class FriedGoat : Fried {
- results[] = {"Meat_HumanSteak_Cooked"};
- };
- };
- };
- class Meat_HumanSteak_Cooked : MeatCookedBase {
- displayName = "Cooked Human Steak";
- descriptionShort = "A cooked human flesh.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 340;
- energy = 486;
- water = 232;
- nutritionalIndex = 170;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.5) then {[0,_person,'BrainDisease'] call event_modifier;};";
- };
- class EatAll : EatAll {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.5) then {[0,_person,'BrainDisease'] call event_modifier;};";
- };
- class ForceFeed : ForceFeed {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.5) then {[0,_target,'BrainDisease'] call event_modifier;};";
- };
- };
- class Cooking : Cooking {
- class FriedGoat : Fried {
- results[] = {"Meat_HumanSteak_Burned"};
- };
- };
- };
- class Meat_HumanSteak_Burned : MeatBurnedBase {
- displayName = "Burned Human Steak";
- descriptionShort = "A burned human flesh.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class UserActions : UserActions {
- class Eat : Eat {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.25) then {[0,_person,'BrainDisease'] call event_modifier;};";
- };
- class EatAll : EatAll {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.25) then {[0,_person,'BrainDisease'] call event_modifier;};";
- };
- class ForceFeed : ForceFeed {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.25) then {[0,_target,'BrainDisease'] call event_modifier;};";
- };
- };
- class Nutrition {
- totalVolume = 200;
- energy = 250;
- water = 115;
- nutritionalIndex = 40;
- };
- };
- class Meat_HumanSteak_Rotten : MeatRottenBase {
- displayName = "Rotten Human Steak";
- descriptionShort = "A rotten human flesh.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class UserActions : UserActions {
- class Eat : Eat {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_person,'FoodPoisoning_HeavyImpact'] call event_modifier;};[0,_person,'BrainDisease'] call event_modifier;";
- };
- class EatAll : EatAll {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_person,'FoodPoisoning_HeavyImpact'] call event_modifier;};[0,_person,'BrainDisease'] call event_modifier;";
- };
- class ForceFeed : ForceFeed {
- onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_target,'FoodPoisoning_HeavyImpact'] call event_modifier;};[0,_target,'BrainDisease'] call event_modifier;";
- };
- };
- class Nutrition {
- totalVolume = 454;
- energy = 150;
- water = 344;
- nutritionalIndex = 20;
- };
- };
- class Meat_ChickenBreast_Raw : MeatRawBase {
- displayName = "Raw Chicken Breast";
- descriptionShort = "A raw chicken breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_breast_raw_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_breast.rvmat"};
- class Nutrition {
- totalVolume = 118;
- energy = 130;
- water = 88;
- nutritionalIndex = 59;
- };
- class Cooking : Cooking {
- class FriedChicken : Fried {
- results[] = {"Meat_ChickenBreast_Cooked"};
- };
- };
- };
- class Meat_ChickenBreast_Cooked : MeatCookedBase {
- displayName = "Cooked Chicken Breast";
- descriptionShort = "A cooked chicken breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_breast_cooked_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_breast.rvmat"};
- class Nutrition {
- totalVolume = 98;
- energy = 193;
- water = 61;
- nutritionalIndex = 41;
- };
- class Cooking : Cooking {
- class FriedChicken : Fried {
- results[] = {"Meat_ChickenBreast_Burned"};
- };
- };
- };
- class Meat_ChickenBreast_Burned : MeatBurnedBase {
- displayName = "Burned Chicken Breast";
- descriptionShort = "A burned chicken breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_breast_burned_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_breast.rvmat"};
- class Nutrition {
- totalVolume = 90;
- energy = 95;
- water = 30;
- nutritionalIndex = 20;
- };
- };
- class Meat_ChickenBreast_Rotten : MeatRottenBase {
- displayName = "Rotten Chicken Breast";
- descriptionShort = "A rotten chicken breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_breast_rotten_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_breast.rvmat"};
- class Nutrition {
- totalVolume = 118;
- energy = 80;
- water = 88;
- nutritionalIndex = 10;
- };
- };
- class Meat_GoatSteak_Raw : MeatRawBase {
- displayName = "Raw Goat Steak";
- descriptionShort = "A raw goat steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 494;
- water = 344;
- nutritionalIndex = 227;
- };
- class Cooking : Cooking {
- class FriedGoat : Fried {
- results[] = {"Meat_GoatSteak_Cooked"};
- };
- };
- };
- class Meat_GoatSteak_Cooked : MeatCookedBase {
- displayName = "Cooked Goat Steak";
- descriptionShort = "A cooked goat steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 340;
- energy = 486;
- water = 232;
- nutritionalIndex = 170;
- };
- class Cooking : Cooking {
- class FriedGoat : Fried {
- results[] = {"Meat_GoatSteak_Burned"};
- };
- };
- };
- class Meat_GoatSteak_Burned : MeatBurnedBase {
- displayName = "Burned Goat Steak";
- descriptionShort = "A burned goat steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 200;
- energy = 250;
- water = 115;
- nutritionalIndex = 40;
- };
- };
- class Meat_GoatSteak_Rotten : MeatRottenBase {
- displayName = "Rotten Goat Steak";
- descriptionShort = "A rotten goat steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 150;
- water = 344;
- nutritionalIndex = 20;
- };
- };
- class Meat_BoarSteak_Raw : MeatRawBase {
- displayName = "Raw Boar Steak";
- descriptionShort = "A raw boar steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 553;
- water = 329;
- nutritionalIndex = 218;
- };
- class Cooking : Cooking {
- class FriedBoar : Fried {
- results[] = {"Meat_BoarSteak_Cooked"};
- };
- };
- };
- class Meat_BoarSteak_Cooked : MeatCookedBase {
- displayName = "Cooked Boar Steak";
- descriptionShort = "A cooked boar steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 340;
- energy = 544;
- water = 217;
- nutritionalIndex = 156;
- };
- class Cooking : Cooking {
- class FriedBoar : Fried {
- results[] = {"Meat_BoarSteak_Burned"};
- };
- };
- };
- class Meat_BoarSteak_Burned : MeatBurnedBase {
- displayName = "Burned Boar Steak";
- descriptionShort = "A burned boar steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 200;
- energy = 200;
- water = 100;
- nutritionalIndex = 50;
- };
- };
- class Meat_BoarSteak_Rotten : MeatRottenBase {
- displayName = "Rotten Boar Steak";
- descriptionShort = "A rotten boar steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 100;
- water = 329;
- nutritionalIndex = 30;
- };
- };
- class Meat_DeerSteak_Raw : MeatRawBase {
- displayName = "Raw Deer Steak";
- descriptionShort = "A raw deer steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 544;
- water = 334;
- nutritionalIndex = 236;
- };
- class Cooking : Cooking {
- class FriedDeer : Fried {
- results[] = {"Meat_DeerSteak_Cooked"};
- };
- };
- };
- class Meat_DeerSteak_Cooked : MeatCookedBase {
- displayName = "Cooked Deer Steak";
- descriptionShort = "A cooked deer steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 340;
- energy = 537;
- water = 222;
- nutritionalIndex = 129;
- };
- class Cooking : Cooking {
- class FriedDeer : Fried {
- results[] = {"Meat_DeerSteak_Burned"};
- };
- };
- };
- class Meat_DeerSteak_Burned : MeatBurnedBase {
- displayName = "Burned Deer Steak";
- descriptionShort = "A burned deer steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 200;
- energy = 250;
- water = 90;
- nutritionalIndex = 50;
- };
- };
- class Meat_DeerSteak_Rotten : MeatRottenBase {
- displayName = "Rotten Deer Steak";
- descriptionShort = "A rotten deer steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 340;
- energy = 250;
- water = 222;
- nutritionalIndex = 35;
- };
- };
- class Meat_CowSteak_Raw : MeatRawBase {
- displayName = "Raw Cow Steak";
- descriptionShort = "A raw cow steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 998;
- water = 288;
- nutritionalIndex = 200;
- };
- class Cooking : Cooking {
- class FriedCow : Fried {
- results[] = {"Meat_CowSteak_Cooked"};
- };
- };
- };
- class Meat_CowSteak_Cooked : MeatCookedBase {
- displayName = "Cooked Cow Steak";
- descriptionShort = "A cooked cow steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 400;
- energy = 930;
- water = 190;
- nutritionalIndex = 100;
- };
- class Cooking : Cooking {
- class FriedCow : Fried {
- results[] = {"Meat_CowSteak_Burned"};
- };
- };
- };
- class Meat_CowSteak_Burned : MeatBurnedBase {
- displayName = "Burned Cow Steak";
- descriptionShort = "A burned cow steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 300;
- energy = 450;
- water = 80;
- nutritionalIndex = 50;
- };
- };
- class Meat_CowSteak_Rotten : MeatRottenBase {
- displayName = "Rotten Cow Steak";
- descriptionShort = "A rotten cow steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 300;
- water = 288;
- nutritionalIndex = 40;
- };
- };
- class Meat_RabbitLeg_Raw : MeatRawBase {
- displayName = "Raw Rabbit Leg";
- descriptionShort = "A raw rabbit leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_leg_raw_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_leg.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 517;
- water = 338;
- nutritionalIndex = 218;
- };
- class Cooking : Cooking {
- class FriedRabbit : Fried {
- results[] = {"Meat_RabbitLeg_Cooked"};
- };
- };
- };
- class Meat_RabbitLeg_Cooked : MeatCookedBase {
- displayName = "Cooked Rabbit Leg";
- descriptionShort = "A cooked rabbit leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_leg_cooked_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_leg.rvmat"};
- class Nutrition {
- totalVolume = 299;
- energy = 517;
- water = 184;
- nutritionalIndex = 155;
- };
- class Cooking : Cooking {
- class FriedRabbit : Fried {
- results[] = {"Meat_RabbitLeg_Burned"};
- };
- };
- };
- class Meat_RabbitLeg_Burned : MeatBurnedBase {
- displayName = "Burned Rabbit Leg";
- descriptionShort = "A burned rabbit leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_leg_burned_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_leg.rvmat"};
- class Nutrition {
- totalVolume = 150;
- energy = 100;
- water = 50;
- nutritionalIndex = 40;
- };
- };
- class Meat_RabbitLeg_Rotten : MeatRottenBase {
- displayName = "Rotten Rabbit Leg";
- descriptionShort = "A rotten rabbit leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_leg_rotten_co.paa"};
- hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_leg.rvmat"};
- class Nutrition {
- totalVolume = 454;
- energy = 150;
- water = 338;
- nutritionalIndex = 30;
- };
- };
- class Meat_Fillet_Raw : MeatRawBase {
- displayName = $STR_ITEMS_FISHFILLETRAW;
- descriptionShort = $STR_ITEMS_FISHFILLETRAW_DESC;
- model = "\dz\gear\food\carp_fillet_raw.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_fillet_raw.rtm"};
- class Nutrition {
- totalVolume = 400;
- energy = 800;
- water = 360;
- nutritionalIndex = 184;
- };
- class Cooking : Cooking {
- class FriedChicken : Fried {
- results[] = {"Meat_Fillet_Cooked"};
- };
- class FriedFish : Fried {
- results[] = {"Meat_Fillet_Cooked"};
- };
- };
- };
- class Meat_Fillet_Cooked : MeatCookedBase {
- displayName = $STR_ITEMS_FISHFILLETCOOKED;
- descriptionShort = $STR_ITEMS_FISHFILLETCOOKED_DESC;
- model = "\dz\gear\food\carp_fillet_cooked.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_fillet_raw.rtm"};
- class Nutrition {
- totalVolume = 300;
- energy = 560;
- water = 160;
- nutritionalIndex = 150;
- };
- class Cooking : Cooking {
- class FriedChicken : Fried {
- results[] = {"Meat_Fillet_Burned"};
- };
- class FriedFish : Fried {
- results[] = {"Meat_Fillet_Burned"};
- };
- };
- };
- class Meat_Fillet_Burned : MeatBurnedBase {
- displayName = $STR_ITEMS_FISHFILLETBURNED;
- descriptionShort = $STR_ITEMS_FISHFILLETBURNED_DESC;
- model = "\dz\gear\food\carp_fillet_burnt.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_fillet_raw.rtm"};
- class Nutrition {
- totalVolume = 150;
- energy = 180;
- water = 40;
- nutritionalIndex = 50;
- };
- };
- class Meat_Fillet_Rotten : MeatRottenBase {
- displayName = $STR_ITEMS_FISHFILLETROTTEN;
- descriptionShort = $STR_ITEMS_FISHFILLETROTTEN_DESC;
- model = "\dz\gear\food\carp_fillet_rotten.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_fillet_raw.rtm"};
- class Nutrition {
- totalVolume = 400;
- energy = 200;
- water = 360;
- nutritionalIndex = 30;
- };
- };
- class Meat_ChickenBreastFresh : MeatBase {
- scope = 2;
- displayName = "Chicken Breast";
- descriptionShort = "A raw chicken breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 160;
- energy = 275;
- water = 112;
- nutritionalIndex = 64;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Chicken Breast";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Chicken Breast";
- useQuantity = 1;
- };
- };
- };
- class Meat_CrowBreastFresh : MeatBase {
- scope = 2;
- displayName = "Crow Breast";
- descriptionShort = "A raw crow breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 160;
- energy = 275;
- water = 112;
- nutritionalIndex = 64;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Crow Breast";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Crow Breast";
- useQuantity = 1;
- };
- };
- };
- class Meat_CockBreastFresh : MeatBase {
- scope = 2;
- displayName = "Cock Breast";
- descriptionShort = "A raw cock breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 160;
- energy = 275;
- water = 112;
- nutritionalIndex = 64;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Cock Breast";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Cock Breast";
- useQuantity = 1;
- };
- };
- };
- class Meat_HawkBreastFresh : MeatBase {
- scope = 2;
- displayName = "Hawk Breast";
- descriptionShort = "A raw hawk breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 160;
- energy = 275;
- water = 112;
- nutritionalIndex = 64;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Hawk Breast";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Hawk Breast";
- useQuantity = 1;
- };
- };
- };
- class Meat_SeagulBreastFresh : MeatBase {
- scope = 2;
- displayName = "Seagul Breast";
- descriptionShort = "A raw seagul breast.";
- model = "\dz\gear\food\meat_breast.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 160;
- energy = 275;
- water = 112;
- nutritionalIndex = 64;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Seagul Breast";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Seagul Breast";
- useQuantity = 1;
- };
- };
- };
- class Meat_GoatLegFresh : MeatBase {
- scope = 2;
- displayName = "Goat Leg";
- descriptionShort = "A raw goat leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- absorbency = 0.3;
- itemSize[] = {2, 2};
- class Nutrition {
- totalVolume = 250;
- energy = 285;
- water = 225;
- nutritionalIndex = 120;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Goat Leg";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Goat Leg";
- useQuantity = 1;
- };
- };
- };
- class Meat_GoatSteakFresh : MeatBase {
- scope = 2;
- displayName = "Goat Steak";
- descriptionShort = "A raw goat steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 300;
- energy = 735;
- water = 189;
- nutritionalIndex = 114;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Goat Steak";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Goat Steak";
- useQuantity = 1;
- };
- };
- };
- class Meat_SheepLegFresh : MeatBase {
- scope = 2;
- displayName = "Sheep Leg";
- descriptionShort = "A raw sheep leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 250;
- energy = 285;
- water = 225;
- nutritionalIndex = 120;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Sheep Leg";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Sheep Leg";
- useQuantity = 1;
- };
- };
- };
- class Meat_SheepSteakFresh : MeatBase {
- scope = 2;
- displayName = "Sheep Steak";
- descriptionShort = "A raw sheep steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- absorbency = 0.3;
- itemSize[] = {2, 2};
- class Nutrition {
- totalVolume = 300;
- energy = 735;
- water = 189;
- nutritionalIndex = 114;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Sheep Steak";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Sheep Steak";
- useQuantity = 1;
- };
- };
- };
- class Meat_DeerLegFresh : MeatBase {
- scope = 2;
- displayName = "Deer Leg";
- descriptionShort = "A raw deer leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- absorbency = 0.3;
- itemSize[] = {1, 2};
- class Nutrition {
- totalVolume = 250;
- energy = 285;
- water = 225;
- nutritionalIndex = 120;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Deer Leg";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Deer Leg";
- useQuantity = 1;
- };
- };
- };
- class Meat_DeerSteakFresh : MeatBase {
- scope = 2;
- displayName = "Deer Steak";
- descriptionShort = "A raw deer steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- absorbency = 0.3;
- itemSize[] = {2, 2};
- class Nutrition {
- totalVolume = 300;
- energy = 735;
- water = 189;
- nutritionalIndex = 114;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Deer Steak";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Deer Steak";
- useQuantity = 1;
- };
- };
- };
- class Meat_DogLegFresh : MeatBase {
- scope = 2;
- displayName = "Dog Leg";
- descriptionShort = "A raw dog leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 250;
- energy = 285;
- water = 225;
- nutritionalIndex = 120;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Dog Leg";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Dog Leg";
- useQuantity = 1;
- };
- };
- };
- class Meat_DogSteakFresh : MeatBase {
- scope = 2;
- displayName = "Dog Steak";
- descriptionShort = "A raw dog steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 300;
- energy = 735;
- water = 189;
- nutritionalIndex = 114;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Dog Steak";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Dog Steak";
- useQuantity = 1;
- };
- };
- };
- class Meat_CowLegFresh : MeatBase {
- scope = 2;
- displayName = "Cow Leg";
- descriptionShort = "A raw cow leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- absorbency = 0.3;
- itemSize[] = {2, 4};
- class Nutrition {
- totalVolume = 250;
- energy = 285;
- water = 225;
- nutritionalIndex = 120;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Cow Leg";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Cow Leg";
- useQuantity = 1;
- };
- };
- };
- class Meat_CowSteakFresh : MeatBase {
- scope = 2;
- displayName = "Cow Steak";
- descriptionShort = "A raw cow steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- absorbency = 0.3;
- itemSize[] = {3, 3};
- class Nutrition {
- totalVolume = 300;
- energy = 735;
- water = 189;
- nutritionalIndex = 114;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Cow Steak";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Cow Steak";
- useQuantity = 1;
- };
- };
- };
- class Meat_PorkSteakFresh : MeatBase {
- scope = 2;
- displayName = "Pork Steak";
- descriptionShort = "A raw pork steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- absorbency = 0.3;
- itemSize[] = {2, 2};
- class Nutrition {
- totalVolume = 300;
- energy = 735;
- water = 189;
- nutritionalIndex = 114;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Pork Steak";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Pork Steak";
- useQuantity = 1;
- };
- };
- };
- class Meat_PorkLegFresh : MeatBase {
- scope = 2;
- displayName = "Pork Leg";
- descriptionShort = "A raw pork leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- absorbency = 0.3;
- itemSize[] = {1, 2};
- class Nutrition {
- totalVolume = 250;
- energy = 285;
- water = 225;
- nutritionalIndex = 120;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Pork Leg";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Pork Leg";
- useQuantity = 1;
- };
- };
- };
- class Meat_RabbitLegFresh : MeatBase {
- scope = 2;
- displayName = "Rabbit Leg";
- descriptionShort = "A raw rabbit leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 250;
- energy = 285;
- water = 225;
- nutritionalIndex = 120;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Rabbit Leg";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Rabbit Leg";
- useQuantity = 1;
- };
- };
- };
- class Meat_BearLegFresh : MeatBase {
- scope = 2;
- displayName = "Bear Leg";
- descriptionShort = "A raw bear leg.";
- model = "\dz\gear\food\meat_leg.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
- absorbency = 0.3;
- itemSize[] = {2, 2};
- class Nutrition {
- totalVolume = 250;
- energy = 285;
- water = 225;
- nutritionalIndex = 120;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Goat Leg";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Goat Leg";
- useQuantity = 1;
- };
- };
- };
- class Meat_BearSteakFresh : MeatBase {
- scope = 2;
- displayName = "Bear Steak";
- descriptionShort = "A raw bear steak.";
- model = "\dz\gear\food\meat_steak.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
- absorbency = 0.3;
- class Nutrition {
- totalVolume = 300;
- energy = 735;
- water = 189;
- nutritionalIndex = 114;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat Raw Goat Steak";
- useQuantity = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Feed Raw Goat Steak";
- useQuantity = 1;
- };
- };
- };
- class AnimalCorpseBase : FoodItemBase {
- rotateDropped = 0;
- rotateAlways = 0;
- itemSize[] = {2, 1};
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\baked_beans.rtm"};
- stackedUnit = "kg";
- };
- class FishCorpseBase : AnimalCorpseBase {
- scope = 2;
- displayName = "Dead fish";
- descriptionShort = "Dead.";
- model = "\dz\gear\food\carp_live.p3d";
- class Melee {
- range = 0.8;
- swingTime = 0.5;
- action = "MeleeAttack2";
- ammo = "MeleeFist";
- useCursor = 1;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat unprepared fish";
- displayName = "Eat unprepared fish";
- priority = 0.4;
- onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.4) then {[0,_person,'Salmonellosis'] call event_modifier;};";
- useQuantity = 0.25;
- interactionWeight = 1;
- };
- class EatAll : Eat {
- displayNameDefault = "Eat whole unprepared fish";
- displayName = "Eat whole unprepared fish";
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "PlayerEatAll";
- priority = 0.3;
- messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
- onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_person,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.4) then {[0,_person,'Salmonellosis'] call event_modifier;};";
- useQuantity = 1;
- interactionWeight = 1;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Force feed unprepared fish";
- displayName = "Force feed unprepared fish";
- onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_target,'FoodPoisoning_MediumImpact'] call event_modifier;};if (_poisonChance < 0.4) then {[0,_target,'Salmonellosis'] call event_modifier;};";
- priority = 0.5;
- useQuantity = 0.25;
- interactionWeight = 0.25;
- };
- };
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\apple.rtm"};
- };
- class Food_Carp : FishCorpseBase {
- displayName = $STR_ITEMS_FOODCARP;
- descriptionShort = $STR_ITEMS_FOODCARP_DESC;
- model = "\dz\gear\food\carp_live.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_live.rtm"};
- stackedMax = 2;
- itemSize[] = {1, 2};
- rotateDropped = 1;
- rotateAlways = 1;
- class Nutrition {
- totalVolume = 130;
- energy = 69;
- water = 172;
- nutritionalIndex = 70;
- };
- class Melee {
- range = 0.8;
- swingTime = 0.5;
- action = "MeleeKnifeSlash";
- ammo = "MeleeSoft";
- useCursor = 0;
- };
- class UserActions : UserActions {
- class EatAll : EatAll {
- useQuantity = 2;
- };
- };
- };
- class Food_Sardines : Food_Carp {
- displayName = "Sardines";
- descriptionShort = "Small, oily fish within the herring family of Clupeidae.";
- model = "\dz\gear\food\sardines_live.p3d";
- itemSize[] = {1, 1};
- stackedMax = 1;
- class UserActions : UserActions {
- class EatAll : EatAll {
- useQuantity = 1;
- };
- };
- };
- class Food_Tuna : FishCorpseBase {
- displayName = $STR_ITEMS_FOODBULLETTUNA;
- descriptionShort = $STR_ITEMS_FOODBULLETTUNA_DESC;
- model = "\dz\gear\food\carp_live.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_live.rtm"};
- stackedMax = 2;
- class Nutrition {
- totalVolume = 130;
- energy = 69;
- water = 172;
- nutritionalIndex = 70;
- };
- class UserActions : UserActions {
- class EatAll : EatAll {
- useQuantity = 2;
- };
- };
- };
- class Food_Worm : AnimalCorpseBase {
- scope = 2;
- displayName = $STR_ITEMS_EARTHWORM;
- descriptionShort = $STR_ITEMS_EARTHWORM_DESC;
- model = "\dz\gear\food\bait_worm.p3d";
- handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\bait_worm.rtm"};
- stackedMax = 10;
- itemSize[] = {1, 1};
- quantity = "format ['%1', quantity _this]";
- stackedUnit = "pcs";
- storeVariables[] = {"quantity", "modifiers", "lifetime"};
- synchronizedVariables[] = {"quantity", 1};
- class Nutrition {
- totalVolume = 40;
- energy = 80;
- water = 8;
- nutritionalIndex = 42;
- };
- class UserActions : UserActions {
- class Eat : Eat {
- displayNameDefault = "Eat unprepared worm";
- displayName = "Eat unprepared worm";
- onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};";
- useQuantity = 1;
- };
- class EatAll : Eat {
- displayNameDefault = "Eat all unprepared worms";
- displayName = "Eat all unprepared worms";
- sound = "eating_soft";
- onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
- action = "PlayerEatAll";
- messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
- onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};";
- useQuantity = 10;
- };
- class ForceFeed : ForceFeed {
- displayNameDefault = "Force feed unprepared worm";
- displayName = "Force feed unprepared worm";
- onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};";
- useQuantity = 1;
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement