Advertisement
Guest User

DayZ Food

a guest
Feb 17th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.34 KB | None | 0 0
  1. class CfgVehicles {
  2. class InventoryBase; // External class reference
  3.  
  4. class FoodItemBase : InventoryBase {
  5. scope = 0;
  6. handheld = 1;
  7. armAction = "Disarm";
  8. rotateDropped = 1;
  9. rotateAlways = 0;
  10. spawnOffset = 0;
  11. trashItem = "";
  12. storeVariables[] = {"quantity", "modifiers", "lifetime"};
  13. synchronizedVariables[] = {"quantity", 1, "temperature", 0.2};
  14.  
  15. class Melee {
  16. range = 0.8;
  17. swingTime = 0.5;
  18. action = "MeleeAttack2";
  19. ammo = "MeleeFist";
  20. useCursor = 1;
  21. };
  22. stackedMax = 1;http://www.londonlofts.net/property/warehouse-shell/
  23. stackedUnit = "g";
  24. quantity = "format ['%1%%', round((quantity _this / maxQuantity _this) * 100)]";
  25. tooltip = "_text = _this call fnc_generateTooltip;_text";
  26.  
  27. class UserActions {
  28. class Eat : ActionOnSelf {
  29. displayNameDefault = $STR_USERACTIONS_EAT;
  30. displayName = $STR_USERACTIONS_EAT;
  31. sound = "eating_soft";
  32. action = "playerEat";
  33. trashItem = "";
  34. interactionWeight = 1;
  35. messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten some %1", "colorAction"};
  36. };
  37.  
  38. class ForceFeed : ActionOnTarget {
  39. displayNameDefault = "Feed";
  40. displayName = "Force feed";
  41. sound = "";
  42. action = "ItemUseShort";
  43. radius = 2;
  44. onStart = "";
  45. onComplete = "";
  46. useQuantity = 1;
  47. trashItem = "";
  48. interactionWeight = 0.25;
  49. 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"};
  50. };
  51.  
  52. class CancelAction : DefaultAction {
  53. displayNameDefault = "Cancel current action";
  54. displayName = "Cancel current action";
  55. priority = 0;
  56. position = "action";
  57. radius = 2;
  58. onlyForPlayer = 0;
  59. showInHands = 1;
  60. condition = "_person getVariable ['isUsingSomething',0] == 1";
  61. statement = "_person setVariable ['inUseItem',objNull]; _person setVariable ['isUsingSomething',0]; _person setVariable ['wasCanceled',1]; [_person,'Current action was cancelled',''] call fnc_playerMessage; _person playAction 'CancelAction';";
  62. interactionWeight = 0;
  63. };
  64. };
  65. };
  66.  
  67. class BoxCerealBase : FoodItemBase {
  68. scope = 0;
  69. model = "\dz\gear\food\BoxCereal.p3d";
  70. descriptionShort = $STR_ITEMS_CEREAL_DESC;
  71. hiddenSelections[] = {"camoGround"};
  72. itemSize[] = {2, 2};
  73. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\box_cereal.rtm"};
  74. hiddenSelectionsTextures[] = {};
  75.  
  76. class Nutrition {
  77. totalVolume = 250;
  78. energy = 930;
  79. water = -250;
  80. nutritionalIndex = 105;
  81. };
  82.  
  83. class UserActions : UserActions {
  84. class Eat : Eat {
  85. displayNameDefault = $STR_USERACTIONS_FORCEFEED_RAWCEREAL;
  86. sound = "eating_crunchy";
  87. useQuantity = 0.201;
  88. };
  89.  
  90. class EatAll : Eat {
  91. displayNameDefault = $STR_USERACTIONS_EATALL;
  92. displayName = $STR_USERACTIONS_EATALL;
  93. sound = "eating_soft";
  94. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  95. action = "PlayerEatAll";
  96. useQuantity = 1;
  97. messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
  98. };
  99.  
  100. class ForceFeed : ForceFeed {
  101. useQuantity = 0.201;
  102. };
  103. };
  104. };
  105.  
  106. class Food_BoxCerealCrunchin : BoxCerealBase {
  107. scope = 2;
  108. displayName = $STR_ITEMS_CEREAL;
  109. rotateDropped = 1;
  110. absorbency = 0.7;
  111.  
  112. class Damage {
  113. tex[] = {};
  114. mat[] = {"DZ\gear\food\data\Cereal_box.rvmat", "DZ\gear\food\data\Cereal_box_damage.rvmat", "DZ\gear\food\data\Cereal_box_destruct.rvmat"};
  115. };
  116. hiddenSelectionsTextures[] = {"\dz\gear\food\Data\CerealBox_01_CO.paa"};
  117. };
  118.  
  119. class Food_PowderedMilk : FoodItemBase {
  120. scope = 2;
  121. displayName = $STR_ITEMS_POWDEREDMILK;
  122. descriptionShort = $STR_ITEMS_POWDEREDMILK_DESC;
  123. model = "\dz\gear\food\PowderedMilk.p3d";
  124. rotateDropped = 1;
  125. rotateAlways = 1;
  126. absorbency = 0.9;
  127.  
  128. class Damage {
  129. tex[] = {};
  130. mat[] = {"DZ\gear\food\data\powdered_milk.rvmat", "DZ\gear\food\data\powdered_milk_damage.rvmat", "DZ\gear\food\data\powdered_milk_destruct.rvmat"};
  131. };
  132. itemSize[] = {1, 1};
  133. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\powdered_milk.rtm"};
  134.  
  135. class Nutrition {
  136. totalVolume = 200;
  137. energy = 992;
  138. water = -400;
  139. nutritionalIndex = 84;
  140. };
  141.  
  142. class UserActions : UserActions {
  143. class Eat : Eat {
  144. displayNameDefault = $STR_USERACTIONS_EAT_POWDEREDMILK;
  145. useQuantity = 0.1;
  146. };
  147.  
  148. class EatAll : Eat {
  149. displayNameDefault = $STR_USERACTIONS_EATALL;
  150. displayName = $STR_USERACTIONS_EATALL;
  151. sound = "eating_soft";
  152. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  153. action = "PlayerEatAll";
  154. useQuantity = 1;
  155. messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
  156. };
  157.  
  158. class ForceFeed : ForceFeed {
  159. displayNameDefault = $STR_USERACTIONS_FEED_POWDEREDMILK;
  160. useQuantity = 0.1;
  161. };
  162. };
  163. };
  164.  
  165. class Food_SmallGuts : FoodItemBase {
  166. scope = 1;
  167. displayName = "Small Pile of Guts";
  168. descriptionShort = "Small pile of guts.";
  169. model = "\dz\gear\food\animal_smallguts.p3d";
  170. rotateDropped = 1;
  171. rotateAlways = 1;
  172. absorbency = 0;
  173.  
  174. class Damage {
  175. tex[] = {};
  176. mat[] = {"DZ\gear\food\data\powdered_milk.rvmat", "DZ\gear\food\data\powdered_milk_damage.rvmat", "DZ\gear\food\data\powdered_milk_destruct.rvmat"};
  177. };
  178. itemSize[] = {1, 1};
  179. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\tools\pen.rtm"};
  180. storeVariables[] = {"internalenergy", "ison", "lifetime", "temperature", "quantity"};
  181. synchronizedVariables[] = {"quantity", 1, "temperature", 0.2};
  182. internalResources[] = {{"internalenergy", 0.1}};
  183.  
  184. class Melee : Melee {
  185. ammo = "MeleeSoft";
  186. };
  187.  
  188. class Nutrition {
  189. totalVolume = 200;
  190. energy = 992;
  191. water = -400;
  192. nutritionalIndex = 84;
  193. };
  194.  
  195. class EventHandlers {
  196. Init = "(_this select 0) setVariable ['internalenergy', 25];(_this select 0) setTemperature 20;(_this select 0) powerOn true;";
  197. Restore = "_temp = (_this select 0) getVariable ['temperature',20];(_this select 0) setTemperature _temp;";
  198. };
  199.  
  200. class UserActions : UserActions {
  201. class Eat : Eat {
  202. displayNameDefault = "Eat";
  203. useQuantity = 0.1;
  204. 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;};";
  205. };
  206.  
  207. class EatAll : Eat {
  208. displayNameDefault = "Eat All";
  209. displayName = "Eat All";
  210. sound = "eating_soft";
  211. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  212. action = "PlayerEatAll";
  213. useQuantity = 1;
  214. 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;};";
  215. messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
  216. };
  217.  
  218. class ForceFeed : ForceFeed {
  219. displayNameDefault = $STR_USERACTIONS_FEED_POWDEREDMILK;
  220. useQuantity = 0.1;
  221. 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;};";
  222. };
  223. };
  224. };
  225.  
  226. class Food_Guts : Food_SmallGuts {
  227. displayName = "Pile of Guts";
  228. descriptionShort = "Pile of guts.";
  229. model = "\dz\gear\food\animal_guts.p3d";
  230. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\containers\first_aid_kit.rtm"};
  231. itemSize[] = {2, 1};
  232.  
  233. class EventHandlers {
  234. Init = "(_this select 0) setVariable ['internalenergy', 50];(_this select 0) setTemperature 40;(_this select 0) powerOn true;";
  235. };
  236. };
  237.  
  238. class Food_Rice : FoodItemBase {
  239. scope = 2;
  240. displayName = $STR_ITEMS_RICE;
  241. descriptionShort = $STR_ITEMS_RICE_DESC;
  242. model = "\dz\gear\food\Rice.p3d";
  243. rotateDropped = 1;
  244. absorbency = 0.9;
  245.  
  246. class Damage {
  247. tex[] = {};
  248. mat[] = {"DZ\gear\food\data\rice.rvmat", "DZ\gear\food\data\rice_damage.rvmat", "DZ\gear\food\data\rice_destruct.rvmat"};
  249. };
  250. itemSize[] = {1, 2};
  251. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\rice.rtm"};
  252.  
  253. class Nutrition {
  254. totalVolume = 1000;
  255. energy = 3740;
  256. water = -1000;
  257. nutritionalIndex = 500;
  258. };
  259.  
  260. class UserActions : UserActions {
  261. class Eat : Eat {
  262. displayNameDefault = $STR_USERACTIONS_EAT_RAWRICE;
  263. sound = "eating_crunchy";
  264. useQuantity = 0.1;
  265. };
  266.  
  267. class EatAll : Eat {
  268. displayNameDefault = $STR_USERACTIONS_EATALL;
  269. displayName = $STR_USERACTIONS_EATALL;
  270. sound = "eating_soft";
  271. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  272. action = "playerEatAll";
  273. useQuantity = 1;
  274. messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
  275. };
  276.  
  277. class ForceFeed : ForceFeed {
  278. useQuantity = 0.1;
  279. };
  280. };
  281. };
  282.  
  283. class FoodCanned : FoodItemBase {
  284. rotateDropped = 1;
  285. model = "\dz\gear\food\food_can_open.p3d";
  286. hiddenSelections[] = {"camoGround"};
  287. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\baked_beans.rtm"};
  288. itemSize[] = {1, 1};
  289.  
  290. class Damage {
  291. tex[] = {};
  292. mat[] = {"DZ\gear\food\data\food_can.rvmat", "DZ\gear\food\data\food_can_damage.rvmat", "DZ\gear\food\data\food_can_destruct.rvmat"};
  293. };
  294.  
  295. class Melee {
  296. range = 0.8;
  297. swingTime = 0.5;
  298. action = "MeleeAttack2";
  299. ammo = "MeleeBlunt";
  300. useCursor = 1;
  301. };
  302.  
  303. class UserActions : UserActions {
  304. class Eat : Eat {
  305. useQuantity = 0.25;
  306. };
  307.  
  308. class EatAll : Eat {
  309. displayNameDefault = $STR_USERACTIONS_EATALL;
  310. displayName = $STR_USERACTIONS_EATALL;
  311. sound = "eating_soft";
  312. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  313. action = "PlayerEatAll";
  314. useQuantity = 1;
  315. messages[] = {"The %1 is empty", "colorStatusChannel", "I have eaten all %1", "colorAction"};
  316. };
  317.  
  318. class ForceFeed : ForceFeed {
  319. displayNameDefault = "Force Feed";
  320. displayName = "Force Feed";
  321. useQuantity = 0.25;
  322. };
  323. };
  324. };
  325.  
  326. class FoodCanned_Closed : FoodCanned {
  327. model = "\dz\gear\food\food_can.p3d";
  328. stackedMax = 0;
  329. quantity = "";
  330.  
  331. class UserActions {};
  332.  
  333. class Nutrition {};
  334. };
  335.  
  336. class Food_CanBakedBeans : FoodCanned_Closed {
  337. scope = 2;
  338. displayName = $STR_ITEMS_CANNEDBAKEDBEANS;
  339. descriptionShort = $STR_ITEMS_CANNEDBAKEDBEANS_DESC;
  340. model = "\dz\gear\food\food_can.p3d";
  341. hiddenSelectionsTextures[] = {"dz\gear\food\data\deez_beans_co.paa"};
  342. };
  343.  
  344. class Food_CanBakedBeans_Open : FoodCanned {
  345. scope = 2;
  346. displayName = $STR_ITEMS_CANNEDBAKEDBEANS;
  347. descriptionShort = $STR_ITEMS_CANNEDBAKEDBEANS_DESC;
  348. model = "\dz\gear\food\food_can_open.p3d";
  349. hiddenSelectionsTextures[] = {"dz\gear\food\data\deez_beans_co.paa"};
  350.  
  351. class Nutrition {
  352. totalVolume = 440;
  353. energy = 462;
  354. water = 330;
  355. nutritionalIndex = 299;
  356. };
  357. };
  358.  
  359. class Food_CanPeaches : FoodCanned_Closed {
  360. scope = 2;
  361. displayName = $STR_ITEMS_PEACHESCANNED;
  362. descriptionShort = $STR_ITEMS_PEACHESCANNED_DESC;
  363. model = "\dz\gear\food\food_can.p3d";
  364. hiddenSelectionsTextures[] = {"dz\gear\food\data\canned_peaches_co.paa"};
  365. };
  366.  
  367. class Food_CanPeaches_Open : FoodCanned {
  368. scope = 2;
  369. displayName = $STR_ITEMS_PEACHESCANNED;
  370. descriptionShort = $STR_ITEMS_PEACHESCANNED_DESC;
  371. model = "\dz\gear\food\food_can_open.p3d";
  372. hiddenSelectionsTextures[] = {"dz\gear\food\data\canned_peaches_co.paa"};
  373.  
  374. class Nutrition {
  375. totalVolume = 440;
  376. energy = 1359.6;
  377. water = 350;
  378. nutritionalIndex = 238;
  379. };
  380. };
  381.  
  382. class Food_CanTacticalBacon : FoodCanned_Closed {
  383. scope = 2;
  384. displayName = $STR_ITEMS_TACTICALBACON;
  385. descriptionShort = $STR_ITEMS_TACTICALBACON_DESC;
  386. model = "\dz\gear\food\food_can.p3d";
  387. hiddenSelectionsTextures[] = {"dz\gear\food\data\tactical_bacon_co.paa"};
  388. };
  389.  
  390. class Food_CanTacticalBacon_Open : FoodCanned {
  391. scope = 2;
  392. displayName = $STR_ITEMS_TACTICALBACON;
  393. descriptionShort = $STR_ITEMS_TACTICALBACON_DESC;
  394. model = "\dz\gear\food\food_can_open.p3d";
  395. hiddenSelectionsTextures[] = {"dz\gear\food\data\tactical_bacon_co.paa"};
  396.  
  397. class Nutrition {
  398. totalVolume = 255;
  399. energy = 107;
  400. water = 3;
  401. nutritionalIndex = 612;
  402. };
  403. };
  404.  
  405. class Food_CanSpaghetti : FoodCanned_Closed {
  406. scope = 2;
  407. displayName = $STR_ITEMS_CANNEDSPAGHETTI;
  408. descriptionShort = $STR_ITEMS_CANNEDSPAGHETTI_DESC;
  409. model = "\dz\gear\food\food_can.p3d";
  410. hiddenSelectionsTextures[] = {"dz\gear\food\data\canned_spaghetti_co.paa"};
  411. };
  412.  
  413. class Food_CanSpaghetti_Open : FoodCanned {
  414. scope = 2;
  415. displayName = $STR_ITEMS_CANNEDSPAGHETTI;
  416. descriptionShort = $STR_ITEMS_CANNEDSPAGHETTI_DESC;
  417. model = "\dz\gear\food\food_can_open.p3d";
  418. hiddenSelectionsTextures[] = {"dz\gear\food\data\canned_spaghetti_co.paa"};
  419.  
  420. class Nutrition {
  421. totalVolume = 400;
  422. energy = 300;
  423. water = 324;
  424. nutritionalIndex = 192;
  425. };
  426. };
  427.  
  428. class Food_CanSardines : FoodCanned_Closed {
  429. scope = 2;
  430. model = "\dz\gear\food\Sardines.p3d";
  431. displayName = $STR_ITEMS_CANNEDSARDINES;
  432. descriptionShort = $STR_ITEMS_CANNEDSARDINES_DESC2;
  433. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\sardines.rtm"};
  434.  
  435. class Damage {
  436. tex[] = {};
  437. mat[] = {"DZ\gear\food\data\Sardines.rvmat", "DZ\gear\food\data\Sardines_damage.rvmat", "DZ\gear\food\data\Sardines_destruct.rvmat"};
  438. };
  439. hiddenSelectionsTextures[] = {"dz\gear\food\data\sardines_CO.paa"};
  440. };
  441.  
  442. class Food_CanSardines_Open : FoodCanned {
  443. scope = 2;
  444. model = "\dz\gear\food\sardines_open.p3d";
  445. displayName = $STR_ITEMS_CANNEDSARDINES;
  446. descriptionShort = $STR_ITEMS_CANNEDSARDINES_DESC2;
  447. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\sardines.rtm"};
  448.  
  449. class Damage {
  450. tex[] = {};
  451. mat[] = {"DZ\gear\food\data\Sardines.rvmat", "DZ\gear\food\data\Sardines_damage.rvmat", "DZ\gear\food\data\Sardines_destruct.rvmat"};
  452. };
  453. hiddenSelectionsTextures[] = {"dz\gear\food\data\sardines_CO.paa"};
  454.  
  455. class Nutrition {
  456. totalVolume = 160;
  457. energy = 333;
  458. water = 96;
  459. nutritionalIndex = 86;
  460. };
  461. };
  462.  
  463. class Food_CanTuna_Open : FoodCanned {
  464. scope = 2;
  465. model = "\dz\gear\food\tuna_open.p3d";
  466. displayName = $STR_ITEMS_CANNEDTUNA;
  467. descriptionShort = $STR_ITEMS_CANNEDTUNA_DESC;
  468. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\tuna.rtm"};
  469.  
  470. class Damage {
  471. tex[] = {};
  472. mat[] = {"DZ\gear\food\data\tuna.rvmat", "DZ\gear\food\data\tuna_damage.rvmat", "DZ\gear\food\data\tuna_destruct.rvmat"};
  473. };
  474. rotateDropped = 0;
  475. hiddenSelectionsTextures[] = {"dz\gear\food\data\tuna_CO.paa"};
  476.  
  477. class Nutrition {
  478. totalVolume = 240;
  479. energy = 475;
  480. water = 144;
  481. nutritionalIndex = 153;
  482. };
  483. };
  484.  
  485. class Food_CanTuna : Food_CanTuna_Open {
  486. model = "\dz\gear\food\Tuna.p3d";
  487. stackedMax = 0;
  488. quantity = "";
  489.  
  490. class UserActions {};
  491.  
  492. class Nutrition {};
  493. };
  494.  
  495. class FruitBase : FoodItemBase {
  496. rotateDropped = 0;
  497. rotateAlways = 0;
  498. itemSize[] = {1, 1};
  499. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\baked_beans.rtm"};
  500. quantity = "";
  501. stackedMax = 0;
  502. stackedUnit = "";
  503. storeVariables[] = {"modifiers", "lifetime"};
  504. synchronizedVariables[] = {"temperature", 0.2};
  505.  
  506. class Melee {
  507. range = 0.8;
  508. swingTime = 0.5;
  509. action = "MeleeAttack2";
  510. ammo = "MeleeFist";
  511. useCursor = 1;
  512. };
  513.  
  514. class UserActions : UserActions {
  515. class Eat : Eat {
  516. useQuantity = 0;
  517. unlimited = 1;
  518. keepEmpty = 0;
  519. };
  520.  
  521. class ForceFeed : ForceFeed {
  522. useQuantity = 0;
  523. unlimited = 1;
  524. keepEmpty = 0;
  525. };
  526. };
  527. };
  528.  
  529. class Fruit_AppleFresh : FruitBase {
  530. scope = 2;
  531. displayName = $STR_ITEMS_APPLE;
  532. descriptionShort = $STR_ITEMS_APPLE_DESC;
  533. model = "\dz\gear\food\apple_fresh.p3d";
  534. absorbency = 0.2;
  535. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\apple.rtm"};
  536.  
  537. class Nutrition {
  538. totalVolume = 130;
  539. energy = 69;
  540. water = 172;
  541. nutritionalIndex = 70;
  542. };
  543.  
  544. class UserActions : UserActions {
  545. class Eat : Eat {
  546. displayNameDefault = $STR_USERACTIONS_EAT_APPLE;
  547. };
  548.  
  549. class ForceFeed : ForceFeed {
  550. displayNameDefault = "$STR_USERACTIONS_FEED_APPLE ";
  551. };
  552. };
  553. };
  554.  
  555. class Fruit_AppleRotten : Fruit_AppleFresh {
  556. displayName = $STR_ITEMS_ROTTENAPPLE;
  557. descriptionShort = $STR_ITEMS_ROTTENAPPLE_DESC;
  558. model = "\dz\gear\food\apple_rotten.p3d";
  559. absorbency = 0.4;
  560.  
  561. class Nutrition {
  562. totalVolume = 100;
  563. energy = 20;
  564. water = 40;
  565. nutritionalIndex = 10;
  566. };
  567.  
  568. class UserActions : UserActions {
  569. class Eat : Eat {
  570. displayNameDefault = $STR_USERACTIONS_EAT_ROTTENAPPLE;
  571. 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;};};";
  572. };
  573.  
  574. class ForceFeed : ForceFeed {
  575. displayNameDefault = $STR_USERACTIONS_FEED_ROTTENAPPLE;
  576. 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;};};";
  577. };
  578. };
  579. };
  580.  
  581. class Fruit_BananaFresh : FruitBase {
  582. scope = 2;
  583. displayName = $STR_ITEMS_BANANA;
  584. descriptionShort = $STR_ITEMS_BANANA_DESC;
  585. model = "\dz\gear\food\banana_fresh.p3d";
  586. absorbency = 0.2;
  587. rotateDropped = 1;
  588. rotateAlways = 1;
  589. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\banana.rtm"};
  590.  
  591. class Nutrition {
  592. totalVolume = 170;
  593. energy = 151;
  594. water = 128;
  595. nutritionalIndex = 95;
  596. };
  597.  
  598. class UserActions : UserActions {
  599. class Eat : Eat {
  600. displayNameDefault = $STR_USERACTIONS_EAT_BANANA;
  601. };
  602.  
  603. class ForceFeed : ForceFeed {
  604. displayNameDefault = $STR_USERACTIONS_FEED_BANANA;
  605. };
  606. };
  607. };
  608.  
  609. class Fruit_BananaRotten : Fruit_BananaFresh {
  610. scope = 2;
  611. displayName = $STR_ITEMS_ROTTENBANANA;
  612. descriptionShort = $STR_ITEMS_ROTTENBANANA_DESC;
  613. model = "\dz\gear\food\banana_rottem.p3d";
  614. absorbency = 0.4;
  615.  
  616. class Nutrition {
  617. totalVolume = 130;
  618. energy = 52;
  619. water = 65;
  620. nutritionalIndex = 13;
  621. };
  622.  
  623. class UserActions : UserActions {
  624. class Eat : Eat {
  625. displayNameDefault = $STR_USERACTIONS_EAT_ROTTENBANANA;
  626. 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;};};";
  627. };
  628.  
  629. class ForceFeed : ForceFeed {
  630. displayNameDefault = $STR_USERACTIONS_FEED_ROTTENBANANA;
  631. 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;};};";
  632. };
  633. };
  634. };
  635.  
  636. class Fruit_OrangeFresh : FruitBase {
  637. scope = 2;
  638. displayName = $STR_ITEMS_ORANGE;
  639. descriptionShort = $STR_ITEMS_ORANGE_DESC;
  640. model = "\dz\gear\food\orange_fresh.p3d";
  641. absorbency = 0.2;
  642.  
  643. class Nutrition {
  644. totalVolume = 150;
  645. energy = 71;
  646. water = 131;
  647. nutritionalIndex = 117;
  648. };
  649.  
  650. class UserActions : UserActions {
  651. class Eat : Eat {
  652. displayNameDefault = $STR_USERACTIONS_EAT_ORANGE;
  653. };
  654.  
  655. class ForceFeed : ForceFeed {
  656. displayNameDefault = $STR_USERACTIONS_FEED_ORANGE;
  657. };
  658. };
  659. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\orange.rtm"};
  660. };
  661.  
  662. class Fruit_OrangeRotten : Fruit_OrangeFresh {
  663. scope = 2;
  664. displayName = $STR_ITEMS_ROTTENORANGE;
  665. descriptionShort = $STR_ITEMS_ROTTENORANGE_DESC;
  666. model = "\dz\gear\food\orange_rotten.p3d";
  667. absorbency = 0.4;
  668.  
  669. class Nutrition {
  670. totalVolume = 120;
  671. energy = 24;
  672. water = 48;
  673. nutritionalIndex = 12;
  674. };
  675.  
  676. class UserActions : UserActions {
  677. class Eat : Eat {
  678. displayNameDefault = $STR_USERACTIONS_EAT_ROTTENORANGE;
  679. 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;};};";
  680. };
  681.  
  682. class ForceFeed : ForceFeed {
  683. displayNameDefault = $STR_USERACTIONS_FEED_ROTTENORANGE;
  684. 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;};};";
  685. };
  686. };
  687. };
  688.  
  689. class Fruit_TomatoFresh : FruitBase {
  690. scope = 2;
  691. displayName = $STR_ITEMS_TOMATO;
  692. descriptionShort = $STR_ITEMS_TOMATO_DESC;
  693. model = "\dz\gear\food\tomato_fresh.p3d";
  694. absorbency = 0.2;
  695. seeds[] = {2, 5};
  696.  
  697. class Nutrition {
  698. totalVolume = 111;
  699. energy = 18;
  700. water = 105;
  701. nutritionalIndex = 11;
  702. };
  703.  
  704. class UserActions : UserActions {
  705. class Eat : Eat {
  706. displayNameDefault = $STR_USERACTIONS_EAT_TOMATO;
  707. };
  708.  
  709. class ForceFeed : ForceFeed {
  710. displayNameDefault = $STR_USERACTIONS_FEED_TOMATO;
  711. };
  712. };
  713. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\tomato_fresh.rtm"};
  714. };
  715.  
  716. class Fruit_TomatoRotten : Fruit_TomatoFresh {
  717. scope = 2;
  718. displayName = $STR_ITEMS_ROTTENTOMATO;
  719. descriptionShort = $STR_ITEMS_TOMATO_DESC;
  720. model = "\dz\gear\food\tomato_rotten.p3d";
  721. absorbency = 0.4;
  722.  
  723. class Nutrition {
  724. totalVolume = 111;
  725. energy = 8;
  726. water = 105;
  727. nutritionalIndex = 4;
  728. };
  729.  
  730. class UserActions : UserActions {
  731. class Eat : Eat {
  732. displayNameDefault = $STR_USERACTIONS_EAT_ROTTENOTOMATO;
  733. 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;};};";
  734. };
  735.  
  736. class ForceFeed : ForceFeed {
  737. displayNameDefault = $STR_USERACTIONS_FEED_ROTTENTOMATO;
  738. 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;};};";
  739. };
  740. };
  741. };
  742.  
  743. class Fruit_GreenBellPepperFresh : FruitBase {
  744. scope = 2;
  745. displayName = $STR_ITEMS_GREENBELLPEPPER;
  746. descriptionShort = $STR_ITEMS_GREENBELLPEPPER_DESC;
  747. model = "\dz\gear\food\pepper_green_fresh.p3d";
  748. absorbency = 0.2;
  749.  
  750. class Nutrition {
  751. totalVolume = 164;
  752. energy = 33;
  753. water = 154;
  754. nutritionalIndex = 16.4;
  755. };
  756.  
  757. class UserActions : UserActions {
  758. class Eat : Eat {
  759. displayNameDefault = $STR_USERACTIONS_EAT_GREENBELLPEPPER;
  760. };
  761.  
  762. class ForceFeed : ForceFeed {
  763. displayNameDefault = $STR_USERACTIONS_FEED_GREENBELLPEPPER;
  764. };
  765. };
  766. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\pepper_green_fresh.rtm"};
  767. };
  768.  
  769. class Fruit_GreenBellPepperRotten : Fruit_GreenBellPepperFresh {
  770. scope = 2;
  771. displayName = $STR_ITEMS_GREENBELLPEPPER_ROTTEN;
  772. descriptionShort = $STR_ITEMS_GREENBELLPEPPER_DESC;
  773. model = "\dz\gear\food\pepper_green_rotten.p3d";
  774. absorbency = 0.4;
  775.  
  776. class Nutrition {
  777. totalVolume = 164;
  778. energy = 15;
  779. water = 154;
  780. nutritionalIndex = 8;
  781. };
  782.  
  783. class UserActions : UserActions {
  784. class Eat : Eat {
  785. displayNameDefault = $STR_USERACTIONS_EAT_GREENBELLPEPPER_ROTTEN;
  786. 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;};};";
  787. };
  788.  
  789. class ForceFeed : ForceFeed {
  790. displayNameDefault = $STR_USERACTIONS_FEED_GREENBELLPEPPER_ROTTEN;
  791. 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;};};";
  792. };
  793. };
  794. };
  795.  
  796. class Fruit_ZucchiniFresh : FruitBase {
  797. scope = 2;
  798. displayName = $STR_ITEMS_ZUCCHINIFRESH;
  799. descriptionShort = $STR_ITEMS_ZUCCHINIFRESH_DESC;
  800. model = "\dz\gear\food\zucchini_fresh.p3d";
  801. rotateDropped = 1;
  802. rotateAlways = 1;
  803. rotateZ = 1;
  804. itemSize[] = {1, 2};
  805. absorbency = 0.2;
  806. stackedMax = 1;
  807. stackedUnit = "g";
  808. quantity = "format ['%1%%', round((quantity _this / maxQuantity _this) * 100)]";
  809. storeVariables[] = {"quantity", "modifiers", "lifetime"};
  810. synchronizedVariables[] = {"quantity", 1, "temperature", 0.2};
  811.  
  812. class Nutrition {
  813. totalVolume = 323;
  814. energy = 51;
  815. water = 306;
  816. nutritionalIndex = 32.3;
  817. };
  818.  
  819. class UserActions : UserActions {
  820. class Eat : Eat {
  821. displayNameDefault = $STR_USERACTIONS_EAT_ZUCCHINIFRESH;
  822. useQuantity = 0.5;
  823. keepEmpty = 0;
  824. unlimited = 0;
  825. };
  826.  
  827. class EatAll : Eat {
  828. displayNameDefault = $STR_USERACTIONS_EATALL;
  829. displayName = $STR_USERACTIONS_EATALL;
  830. sound = "eating_soft";
  831. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  832. action = "playerEatAll";
  833. messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
  834. useQuantity = 1;
  835. };
  836.  
  837. class ForceFeed : ForceFeed {
  838. displayNameDefault = $STR_USERACTIONS_FEED_ZUCCHINIFRESH;
  839. useQuantity = 0.5;
  840. keepEmpty = 0;
  841. unlimited = 0;
  842. };
  843. };
  844. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\zucchini_fresh.rtm"};
  845. };
  846.  
  847. class Fruit_ZucchiniRotten : Fruit_ZucchiniFresh {
  848. scope = 2;
  849. displayName = $STR_ITEMS_ZUCCHINIROTTEN;
  850. descriptionShort = $STR_ITEMS_ZUCCHINIFRESH_DESC;
  851. model = "\dz\gear\food\zucchini_rotten.p3d";
  852. absorbency = 0.4;
  853.  
  854. class Nutrition {
  855. totalVolume = 323;
  856. energy = 10;
  857. water = 306;
  858. nutritionalIndex = 10;
  859. };
  860.  
  861. class UserActions : UserActions {
  862. class Eat : Eat {
  863. displayNameDefault = $STR_USERACTIONS_EAT_ZUCCHINI_ROTTEN;
  864. 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;};};";
  865. keepEmpty = 0;
  866. unlimited = 0;
  867. };
  868.  
  869. class EatAll : Eat {
  870. displayNameDefault = $STR_USERACTIONS_EATALL;
  871. displayName = $STR_USERACTIONS_EATALL;
  872. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  873. action = "playerEatAll";
  874. messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
  875. 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;};};";
  876. useQuantity = 1;
  877. };
  878.  
  879. class ForceFeed : ForceFeed {
  880. displayNameDefault = $STR_USERACTIONS_FEED_ZUCCHINI_ROTTEN;
  881. useQuantity = 0.5;
  882. 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;};};";
  883. keepEmpty = 0;
  884. unlimited = 0;
  885. };
  886. };
  887. };
  888.  
  889. class Fruit_PumpkinFresh : FruitBase {
  890. scope = 2;
  891. displayName = "Pumpkin";
  892. descriptionShort = "Pumpkin";
  893. model = "\dz\gear\food\Pumpkin_fresh.p3d";
  894. rotateDropped = 0;
  895. rotateAlways = 0;
  896. rotateZ = 1;
  897. itemSize[] = {2, 2};
  898. absorbency = 0.2;
  899. stackedMax = 1;
  900. stackedUnit = "g";
  901. quantity = "format ['%1%%', round((quantity _this / maxQuantity _this) * 100)]";
  902. storeVariables[] = {"quantity", "modifiers", "lifetime"};
  903. synchronizedVariables[] = {"quantity", 1, "temperature", 0.2};
  904.  
  905. class Nutrition {
  906. totalVolume = 2000;
  907. energy = 2000;
  908. water = 400;
  909. nutritionalIndex = 80;
  910. };
  911.  
  912. class UserActions : UserActions {
  913. class Eat : Eat {
  914. displayNameDefault = "Eat";
  915. displayName = "Eat";
  916. useQuantity = 0.335;
  917. keepEmpty = 0;
  918. unlimited = 0;
  919. };
  920.  
  921. class EatAll : Eat {
  922. displayNameDefault = "Eat all";
  923. displayName = "Eat all";
  924. sound = "eating_soft";
  925. onStart = "if (_quantity <= 0.5) then {_action = 'PlayerEat';};";
  926. action = "playerEatAll";
  927. messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
  928. useQuantity = 1;
  929. };
  930.  
  931. class ForceFeed : ForceFeed {
  932. displayNameDefault = "Force feed the pumpkin";
  933. useQuantity = 0.335;
  934. keepEmpty = 0;
  935. unlimited = 0;
  936. };
  937. };
  938. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\comsumables\stone.rtm"};
  939. };
  940.  
  941. class Fruit_PumpkinRotten : Fruit_PumpkinFresh {
  942. scope = 2;
  943. displayName = "Rotten pumpkin";
  944. descriptionShort = "Rotten pumpkin";
  945. model = "\dz\gear\food\pumpkin_rotten.p3d";
  946. absorbency = 0.4;
  947.  
  948. class Nutrition {
  949. totalVolume = 1950;
  950. energy = 250;
  951. water = 150;
  952. nutritionalIndex = 10;
  953. };
  954.  
  955. class UserActions : UserActions {
  956. class Eat : Eat {
  957. displayNameDefault = "Eat";
  958. 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;};};";
  959. keepEmpty = 0;
  960. unlimited = 0;
  961. };
  962.  
  963. class EatAll : Eat {
  964. displayNameDefault = "Eat all";
  965. displayName = "Eat all";
  966. onStart = "if (_quantity <= 0.5) then {_action = 'PlayerEat';};";
  967. action = "playerEatAll";
  968. messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
  969. 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;};};";
  970. useQuantity = 1;
  971. };
  972.  
  973. class ForceFeed : ForceFeed {
  974. displayNameDefault = "Force feed the pumpkin";
  975. useQuantity = 0.335;
  976. 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;};};";
  977. keepEmpty = 0;
  978. unlimited = 0;
  979. };
  980. };
  981. };
  982.  
  983. class Fruit_PotatoFresh : FruitBase {
  984. scope = 2;
  985. displayName = $STR_ITEMS_POTATO;
  986. descriptionShort = $STR_ITEMS_POTATO_DESC;
  987. model = "\dz\gear\food\potato_fresh.p3d";
  988. absorbency = 0.2;
  989.  
  990. class Nutrition {
  991. totalVolume = 369;
  992. energy = 284;
  993. water = 293;
  994. nutritionalIndex = 30;
  995. };
  996.  
  997. class UserActions : UserActions {
  998. class Eat : Eat {
  999. displayNameDefault = $STR_USERACTIONS_EAT_POTATO;
  1000. useQuantity = 1;
  1001. };
  1002.  
  1003. class ForceFeed : ForceFeed {
  1004. displayNameDefault = $STR_USERACTIONS_FEED_POTATO;
  1005. useQuantity = 1;
  1006. };
  1007. };
  1008. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\potato_fresh.rtm"};
  1009. };
  1010.  
  1011. class Fruit_PotatoRotten : Fruit_PotatoFresh {
  1012. scope = 2;
  1013. displayName = $STR_ITEMS_POTATO_ROTTEN;
  1014. descriptionShort = $STR_ITEMS_POTATO_DESC;
  1015. model = "\dz\gear\food\potato_rotten.p3d";
  1016. absorbency = 0.4;
  1017.  
  1018. class Nutrition {
  1019. totalVolume = 396;
  1020. energy = 100;
  1021. water = 293;
  1022. nutritionalIndex = 10;
  1023. };
  1024.  
  1025. class UserActions : UserActions {
  1026. class Eat : Eat {
  1027. displayNameDefault = $STR_USERACTIONS_EAT_POTATO_ROTTEN;
  1028. 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;};};";
  1029. };
  1030.  
  1031. class ForceFeed : ForceFeed {
  1032. displayNameDefault = $STR_USERACTIONS_FEED_POTATO_ROTTEN;
  1033. 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;};};";
  1034. };
  1035. };
  1036. };
  1037.  
  1038. class BerryBase : FruitBase {
  1039. scope = 2;
  1040. displayName = $STR_ITEMS_BERRIES;
  1041. descriptionShort = $STR_ITEMS_BERRIES;
  1042. model = "\dz\gear\food\blueberries.p3d";
  1043. absorbency = 0.4;
  1044.  
  1045. class Nutrition {
  1046. totalVolume = 40;
  1047. energy = 70;
  1048. water = 4;
  1049. nutritionalIndex = 32;
  1050. };
  1051.  
  1052. class UserActions : UserActions {
  1053. class Eat : Eat {
  1054. displayNameDefault = $STR_USERACTIONS_EAT_BERRIES;
  1055. };
  1056.  
  1057. class ForceFeed : ForceFeed {
  1058. displayNameDefault = $STR_USERACTIONS_FEED_BERRIES;
  1059. };
  1060. };
  1061. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\blueberries.rtm"};
  1062. };
  1063.  
  1064. class Berry_Sambucus : BerryBase {
  1065. displayName = "Blue-coloured berries";
  1066. 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?";
  1067.  
  1068. class UserActions : UserActions {
  1069. class Eat : Eat {
  1070. 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;};};";
  1071. };
  1072.  
  1073. class ForceFeed : ForceFeed {
  1074. 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;};};";
  1075. };
  1076. };
  1077. };
  1078.  
  1079. class Berry_Canina : BerryBase {
  1080. displayName = "Red-coloured berries";
  1081. 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?";
  1082. model = "\dz\gear\food\Poisonousberries.p3d";
  1083. };
  1084.  
  1085. class Fruit_KiwiFresh : FruitBase {
  1086. scope = 2;
  1087. displayName = $STR_ITEMS_KIWI;
  1088. descriptionShort = $STR_ITEMS_KIWI_DESC;
  1089. model = "\dz\gear\food\kiwi_fresh.p3d";
  1090. absorbency = 0.2;
  1091. rotateDropped = 1;
  1092. rotateAlways = 1;
  1093.  
  1094. class Nutrition {
  1095. totalVolume = 70;
  1096. energy = 42;
  1097. water = 59;
  1098. nutritionalIndex = 56;
  1099. };
  1100.  
  1101. class UserActions : UserActions {
  1102. class Eat : Eat {
  1103. displayNameDefault = $STR_USERACTIONS_EAT_KIWI;
  1104. };
  1105.  
  1106. class ForceFeed : ForceFeed {
  1107. displayNameDefault = $STR_USERACTIONS_FEED_KIWI;
  1108. };
  1109. };
  1110. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\kiwi.rtm"};
  1111. };
  1112.  
  1113. class Fruit_KiwiRotten : Fruit_KiwiFresh {
  1114. scope = 2;
  1115. displayName = $STR_ITEMS_ROTTENKIWI;
  1116. descriptionShort = $STR_ITEMS_ROTTENKIWI_DESC;
  1117. model = "\dz\gear\food\kiwi_rotten.p3d";
  1118. absorbency = 0.2;
  1119.  
  1120. class Nutrition {
  1121. totalVolume = 50;
  1122. energy = 15;
  1123. water = 20;
  1124. nutritionalIndex = 10;
  1125. };
  1126.  
  1127. class UserActions : UserActions {
  1128. class Eat : Eat {
  1129. displayNameDefault = $STR_USERACTIONS_EAT_ROTTENKIWI;
  1130. 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;};};";
  1131. };
  1132.  
  1133. class ForceFeed : ForceFeed {
  1134. displayNameDefault = $STR_USERACTIONS_FEED_ROTTENKIWI;
  1135. 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;};};";
  1136. };
  1137. };
  1138. };
  1139.  
  1140. class IngredientBase : FoodItemBase {};
  1141.  
  1142. class MeatBase : IngredientBase {
  1143. scope = 2;
  1144. displayName = "Meat";
  1145. descriptionShort = "Some kind of meat.";
  1146. model = "\dz\gear\food\meat_breast.p3d";
  1147. absorbency = 0.3;
  1148. itemSize[] = {1, 1};
  1149. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\baked_beans.rtm"};
  1150. hiddenSelections[] = {"camoGround"};
  1151.  
  1152. class Melee {
  1153. range = 0.8;
  1154. swingTime = 0.5;
  1155. action = "MeleeAttack2";
  1156. ammo = "MeleeFist";
  1157. useCursor = 1;
  1158. };
  1159.  
  1160. class UserActions : UserActions {
  1161. class Eat : Eat {
  1162. displayNameDefault = "Eat meat";
  1163. useQuantity = 0.5;
  1164. };
  1165.  
  1166. class EatAll : Eat {
  1167. displayNameDefault = "Eat all meat";
  1168. displayName = $STR_USERACTIONS_EATALL;
  1169. sound = "eating_soft";
  1170. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  1171. action = "playerEatAll";
  1172. useQuantity = 1;
  1173. };
  1174.  
  1175. class ForceFeed : ForceFeed {
  1176. displayName = "Feed";
  1177. displayNameDefault = "Feed meat";
  1178. useQuantity = 0.5;
  1179. };
  1180. };
  1181. };
  1182.  
  1183. class MeatRawBase : MeatBase {
  1184. class UserActions : UserActions {
  1185. class Eat : Eat {
  1186. displayNameDefault = "Eat raw meat";
  1187. 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;};";
  1188. };
  1189.  
  1190. class EatAll : EatAll {
  1191. displayNameDefault = "Eat all raw meat";
  1192. 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;};";
  1193. };
  1194.  
  1195. class ForceFeed : ForceFeed {
  1196. displayNameDefault = "Feed raw Meat";
  1197. 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;};";
  1198. };
  1199. };
  1200.  
  1201. class Cooking {
  1202. class Fried {
  1203. materials[] = {};
  1204. tools[] = {"CookerBase", "CookwareBase"};
  1205. results[] = {};
  1206. temperature = 100;
  1207. time = 30;
  1208. };
  1209. };
  1210. };
  1211.  
  1212. class MeatCookedBase : MeatBase {
  1213. class UserActions : UserActions {
  1214. class Eat : Eat {
  1215. displayNameDefault = "Eat cooked meat";
  1216. };
  1217.  
  1218. class EatAll : EatAll {
  1219. displayNameDefault = "Eat all cooked meat";
  1220. };
  1221.  
  1222. class ForceFeed : ForceFeed {
  1223. displayNameDefault = "Feed cooked Meat";
  1224. };
  1225. };
  1226.  
  1227. class Cooking {
  1228. class Fried {
  1229. materials[] = {};
  1230. tools[] = {"CookerBase", "CookwareBase"};
  1231. results[] = {};
  1232. temperature = 100;
  1233. time = 15;
  1234. };
  1235. };
  1236. };
  1237.  
  1238. class MeatBurnedBase : MeatBase {
  1239. class UserActions : UserActions {
  1240. class Eat : Eat {
  1241. displayNameDefault = "Eat burned meat";
  1242. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.2) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};";
  1243. };
  1244.  
  1245. class EatAll : EatAll {
  1246. displayNameDefault = "Eat burned meat";
  1247. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.2) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};";
  1248. };
  1249.  
  1250. class ForceFeed : ForceFeed {
  1251. displayNameDefault = "Feed burned Meat";
  1252. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.2) then {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};";
  1253. };
  1254. };
  1255. };
  1256.  
  1257. class MeatRottenBase : MeatBase {
  1258. class UserActions : UserActions {
  1259. class Eat : Eat {
  1260. displayNameDefault = "Eat rotten meat";
  1261. 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;};";
  1262. };
  1263.  
  1264. class EatAll : EatAll {
  1265. displayNameDefault = "Eat rotten meat";
  1266. 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;};";
  1267. };
  1268.  
  1269. class ForceFeed : ForceFeed {
  1270. displayNameDefault = "Feed rotten Meat";
  1271. 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;};";
  1272. };
  1273. };
  1274. };
  1275.  
  1276. class Meat_HumanSteak_Raw : MeatRawBase {
  1277. displayName = "Raw Human Steak";
  1278. descriptionShort = "A raw human flesh.";
  1279. model = "\dz\gear\food\meat_steak.p3d";
  1280. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1281. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
  1282. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1283.  
  1284. class Nutrition {
  1285. totalVolume = 454;
  1286. energy = 494;
  1287. water = 344;
  1288. nutritionalIndex = 227;
  1289. };
  1290.  
  1291. class UserActions : UserActions {
  1292. class Eat : Eat {
  1293. 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;};";
  1294. };
  1295.  
  1296. class EatAll : EatAll {
  1297. 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;};";
  1298. };
  1299.  
  1300. class ForceFeed : ForceFeed {
  1301. 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;};";
  1302. };
  1303. };
  1304.  
  1305. class Cooking : Cooking {
  1306. class FriedGoat : Fried {
  1307. results[] = {"Meat_HumanSteak_Cooked"};
  1308. };
  1309. };
  1310. };
  1311.  
  1312. class Meat_HumanSteak_Cooked : MeatCookedBase {
  1313. displayName = "Cooked Human Steak";
  1314. descriptionShort = "A cooked human flesh.";
  1315. model = "\dz\gear\food\meat_steak.p3d";
  1316. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1317. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
  1318. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1319.  
  1320. class Nutrition {
  1321. totalVolume = 340;
  1322. energy = 486;
  1323. water = 232;
  1324. nutritionalIndex = 170;
  1325. };
  1326.  
  1327. class UserActions : UserActions {
  1328. class Eat : Eat {
  1329. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.5) then {[0,_person,'BrainDisease'] call event_modifier;};";
  1330. };
  1331.  
  1332. class EatAll : EatAll {
  1333. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.5) then {[0,_person,'BrainDisease'] call event_modifier;};";
  1334. };
  1335.  
  1336. class ForceFeed : ForceFeed {
  1337. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.5) then {[0,_target,'BrainDisease'] call event_modifier;};";
  1338. };
  1339. };
  1340.  
  1341. class Cooking : Cooking {
  1342. class FriedGoat : Fried {
  1343. results[] = {"Meat_HumanSteak_Burned"};
  1344. };
  1345. };
  1346. };
  1347.  
  1348. class Meat_HumanSteak_Burned : MeatBurnedBase {
  1349. displayName = "Burned Human Steak";
  1350. descriptionShort = "A burned human flesh.";
  1351. model = "\dz\gear\food\meat_steak.p3d";
  1352. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1353. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
  1354. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1355.  
  1356. class UserActions : UserActions {
  1357. class Eat : Eat {
  1358. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.25) then {[0,_person,'BrainDisease'] call event_modifier;};";
  1359. };
  1360.  
  1361. class EatAll : EatAll {
  1362. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.25) then {[0,_person,'BrainDisease'] call event_modifier;};";
  1363. };
  1364.  
  1365. class ForceFeed : ForceFeed {
  1366. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.25) then {[0,_target,'BrainDisease'] call event_modifier;};";
  1367. };
  1368. };
  1369.  
  1370. class Nutrition {
  1371. totalVolume = 200;
  1372. energy = 250;
  1373. water = 115;
  1374. nutritionalIndex = 40;
  1375. };
  1376. };
  1377.  
  1378. class Meat_HumanSteak_Rotten : MeatRottenBase {
  1379. displayName = "Rotten Human Steak";
  1380. descriptionShort = "A rotten human flesh.";
  1381. model = "\dz\gear\food\meat_steak.p3d";
  1382. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1383. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
  1384. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1385.  
  1386. class UserActions : UserActions {
  1387. class Eat : Eat {
  1388. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_person,'FoodPoisoning_HeavyImpact'] call event_modifier;};[0,_person,'BrainDisease'] call event_modifier;";
  1389. };
  1390.  
  1391. class EatAll : EatAll {
  1392. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_person,'FoodPoisoning_HeavyImpact'] call event_modifier;};[0,_person,'BrainDisease'] call event_modifier;";
  1393. };
  1394.  
  1395. class ForceFeed : ForceFeed {
  1396. onComplete = "_poisonChance = random 1; if (_poisonChance < 0.9) then {[0,_target,'FoodPoisoning_HeavyImpact'] call event_modifier;};[0,_target,'BrainDisease'] call event_modifier;";
  1397. };
  1398. };
  1399.  
  1400. class Nutrition {
  1401. totalVolume = 454;
  1402. energy = 150;
  1403. water = 344;
  1404. nutritionalIndex = 20;
  1405. };
  1406. };
  1407.  
  1408. class Meat_ChickenBreast_Raw : MeatRawBase {
  1409. displayName = "Raw Chicken Breast";
  1410. descriptionShort = "A raw chicken breast.";
  1411. model = "\dz\gear\food\meat_breast.p3d";
  1412. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  1413. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_breast_raw_co.paa"};
  1414. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_breast.rvmat"};
  1415.  
  1416. class Nutrition {
  1417. totalVolume = 118;
  1418. energy = 130;
  1419. water = 88;
  1420. nutritionalIndex = 59;
  1421. };
  1422.  
  1423. class Cooking : Cooking {
  1424. class FriedChicken : Fried {
  1425. results[] = {"Meat_ChickenBreast_Cooked"};
  1426. };
  1427. };
  1428. };
  1429.  
  1430. class Meat_ChickenBreast_Cooked : MeatCookedBase {
  1431. displayName = "Cooked Chicken Breast";
  1432. descriptionShort = "A cooked chicken breast.";
  1433. model = "\dz\gear\food\meat_breast.p3d";
  1434. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  1435. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_breast_cooked_co.paa"};
  1436. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_breast.rvmat"};
  1437.  
  1438. class Nutrition {
  1439. totalVolume = 98;
  1440. energy = 193;
  1441. water = 61;
  1442. nutritionalIndex = 41;
  1443. };
  1444.  
  1445. class Cooking : Cooking {
  1446. class FriedChicken : Fried {
  1447. results[] = {"Meat_ChickenBreast_Burned"};
  1448. };
  1449. };
  1450. };
  1451.  
  1452. class Meat_ChickenBreast_Burned : MeatBurnedBase {
  1453. displayName = "Burned Chicken Breast";
  1454. descriptionShort = "A burned chicken breast.";
  1455. model = "\dz\gear\food\meat_breast.p3d";
  1456. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  1457. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_breast_burned_co.paa"};
  1458. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_breast.rvmat"};
  1459.  
  1460. class Nutrition {
  1461. totalVolume = 90;
  1462. energy = 95;
  1463. water = 30;
  1464. nutritionalIndex = 20;
  1465. };
  1466. };
  1467.  
  1468. class Meat_ChickenBreast_Rotten : MeatRottenBase {
  1469. displayName = "Rotten Chicken Breast";
  1470. descriptionShort = "A rotten chicken breast.";
  1471. model = "\dz\gear\food\meat_breast.p3d";
  1472. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  1473. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_breast_rotten_co.paa"};
  1474. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_breast.rvmat"};
  1475.  
  1476. class Nutrition {
  1477. totalVolume = 118;
  1478. energy = 80;
  1479. water = 88;
  1480. nutritionalIndex = 10;
  1481. };
  1482. };
  1483.  
  1484. class Meat_GoatSteak_Raw : MeatRawBase {
  1485. displayName = "Raw Goat Steak";
  1486. descriptionShort = "A raw goat steak.";
  1487. model = "\dz\gear\food\meat_steak.p3d";
  1488. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1489. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
  1490. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1491.  
  1492. class Nutrition {
  1493. totalVolume = 454;
  1494. energy = 494;
  1495. water = 344;
  1496. nutritionalIndex = 227;
  1497. };
  1498.  
  1499. class Cooking : Cooking {
  1500. class FriedGoat : Fried {
  1501. results[] = {"Meat_GoatSteak_Cooked"};
  1502. };
  1503. };
  1504. };
  1505.  
  1506. class Meat_GoatSteak_Cooked : MeatCookedBase {
  1507. displayName = "Cooked Goat Steak";
  1508. descriptionShort = "A cooked goat steak.";
  1509. model = "\dz\gear\food\meat_steak.p3d";
  1510. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1511. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
  1512. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1513.  
  1514. class Nutrition {
  1515. totalVolume = 340;
  1516. energy = 486;
  1517. water = 232;
  1518. nutritionalIndex = 170;
  1519. };
  1520.  
  1521. class Cooking : Cooking {
  1522. class FriedGoat : Fried {
  1523. results[] = {"Meat_GoatSteak_Burned"};
  1524. };
  1525. };
  1526. };
  1527.  
  1528. class Meat_GoatSteak_Burned : MeatBurnedBase {
  1529. displayName = "Burned Goat Steak";
  1530. descriptionShort = "A burned goat steak.";
  1531. model = "\dz\gear\food\meat_steak.p3d";
  1532. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1533. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
  1534. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1535.  
  1536. class Nutrition {
  1537. totalVolume = 200;
  1538. energy = 250;
  1539. water = 115;
  1540. nutritionalIndex = 40;
  1541. };
  1542. };
  1543.  
  1544. class Meat_GoatSteak_Rotten : MeatRottenBase {
  1545. displayName = "Rotten Goat Steak";
  1546. descriptionShort = "A rotten goat steak.";
  1547. model = "\dz\gear\food\meat_steak.p3d";
  1548. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1549. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
  1550. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1551.  
  1552. class Nutrition {
  1553. totalVolume = 454;
  1554. energy = 150;
  1555. water = 344;
  1556. nutritionalIndex = 20;
  1557. };
  1558. };
  1559.  
  1560. class Meat_BoarSteak_Raw : MeatRawBase {
  1561. displayName = "Raw Boar Steak";
  1562. descriptionShort = "A raw boar steak.";
  1563. model = "\dz\gear\food\meat_steak.p3d";
  1564. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1565. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
  1566. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1567.  
  1568. class Nutrition {
  1569. totalVolume = 454;
  1570. energy = 553;
  1571. water = 329;
  1572. nutritionalIndex = 218;
  1573. };
  1574.  
  1575. class Cooking : Cooking {
  1576. class FriedBoar : Fried {
  1577. results[] = {"Meat_BoarSteak_Cooked"};
  1578. };
  1579. };
  1580. };
  1581.  
  1582. class Meat_BoarSteak_Cooked : MeatCookedBase {
  1583. displayName = "Cooked Boar Steak";
  1584. descriptionShort = "A cooked boar steak.";
  1585. model = "\dz\gear\food\meat_steak.p3d";
  1586. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1587. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
  1588. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1589.  
  1590. class Nutrition {
  1591. totalVolume = 340;
  1592. energy = 544;
  1593. water = 217;
  1594. nutritionalIndex = 156;
  1595. };
  1596.  
  1597. class Cooking : Cooking {
  1598. class FriedBoar : Fried {
  1599. results[] = {"Meat_BoarSteak_Burned"};
  1600. };
  1601. };
  1602. };
  1603.  
  1604. class Meat_BoarSteak_Burned : MeatBurnedBase {
  1605. displayName = "Burned Boar Steak";
  1606. descriptionShort = "A burned boar steak.";
  1607. model = "\dz\gear\food\meat_steak.p3d";
  1608. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1609. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
  1610. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1611.  
  1612. class Nutrition {
  1613. totalVolume = 200;
  1614. energy = 200;
  1615. water = 100;
  1616. nutritionalIndex = 50;
  1617. };
  1618. };
  1619.  
  1620. class Meat_BoarSteak_Rotten : MeatRottenBase {
  1621. displayName = "Rotten Boar Steak";
  1622. descriptionShort = "A rotten boar steak.";
  1623. model = "\dz\gear\food\meat_steak.p3d";
  1624. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1625. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
  1626. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1627.  
  1628. class Nutrition {
  1629. totalVolume = 454;
  1630. energy = 100;
  1631. water = 329;
  1632. nutritionalIndex = 30;
  1633. };
  1634. };
  1635.  
  1636. class Meat_DeerSteak_Raw : MeatRawBase {
  1637. displayName = "Raw Deer Steak";
  1638. descriptionShort = "A raw deer steak.";
  1639. model = "\dz\gear\food\meat_steak.p3d";
  1640. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1641. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
  1642. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1643.  
  1644. class Nutrition {
  1645. totalVolume = 454;
  1646. energy = 544;
  1647. water = 334;
  1648. nutritionalIndex = 236;
  1649. };
  1650.  
  1651. class Cooking : Cooking {
  1652. class FriedDeer : Fried {
  1653. results[] = {"Meat_DeerSteak_Cooked"};
  1654. };
  1655. };
  1656. };
  1657.  
  1658. class Meat_DeerSteak_Cooked : MeatCookedBase {
  1659. displayName = "Cooked Deer Steak";
  1660. descriptionShort = "A cooked deer steak.";
  1661. model = "\dz\gear\food\meat_steak.p3d";
  1662. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1663. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
  1664. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1665.  
  1666. class Nutrition {
  1667. totalVolume = 340;
  1668. energy = 537;
  1669. water = 222;
  1670. nutritionalIndex = 129;
  1671. };
  1672.  
  1673. class Cooking : Cooking {
  1674. class FriedDeer : Fried {
  1675. results[] = {"Meat_DeerSteak_Burned"};
  1676. };
  1677. };
  1678. };
  1679.  
  1680. class Meat_DeerSteak_Burned : MeatBurnedBase {
  1681. displayName = "Burned Deer Steak";
  1682. descriptionShort = "A burned deer steak.";
  1683. model = "\dz\gear\food\meat_steak.p3d";
  1684. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1685. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
  1686. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1687.  
  1688. class Nutrition {
  1689. totalVolume = 200;
  1690. energy = 250;
  1691. water = 90;
  1692. nutritionalIndex = 50;
  1693. };
  1694. };
  1695.  
  1696. class Meat_DeerSteak_Rotten : MeatRottenBase {
  1697. displayName = "Rotten Deer Steak";
  1698. descriptionShort = "A rotten deer steak.";
  1699. model = "\dz\gear\food\meat_steak.p3d";
  1700. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1701. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
  1702. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1703.  
  1704. class Nutrition {
  1705. totalVolume = 340;
  1706. energy = 250;
  1707. water = 222;
  1708. nutritionalIndex = 35;
  1709. };
  1710. };
  1711.  
  1712. class Meat_CowSteak_Raw : MeatRawBase {
  1713. displayName = "Raw Cow Steak";
  1714. descriptionShort = "A raw cow steak.";
  1715. model = "\dz\gear\food\meat_steak.p3d";
  1716. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1717. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_raw_co.paa"};
  1718. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1719.  
  1720. class Nutrition {
  1721. totalVolume = 454;
  1722. energy = 998;
  1723. water = 288;
  1724. nutritionalIndex = 200;
  1725. };
  1726.  
  1727. class Cooking : Cooking {
  1728. class FriedCow : Fried {
  1729. results[] = {"Meat_CowSteak_Cooked"};
  1730. };
  1731. };
  1732. };
  1733.  
  1734. class Meat_CowSteak_Cooked : MeatCookedBase {
  1735. displayName = "Cooked Cow Steak";
  1736. descriptionShort = "A cooked cow steak.";
  1737. model = "\dz\gear\food\meat_steak.p3d";
  1738. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1739. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_cooked_co.paa"};
  1740. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1741.  
  1742. class Nutrition {
  1743. totalVolume = 400;
  1744. energy = 930;
  1745. water = 190;
  1746. nutritionalIndex = 100;
  1747. };
  1748.  
  1749. class Cooking : Cooking {
  1750. class FriedCow : Fried {
  1751. results[] = {"Meat_CowSteak_Burned"};
  1752. };
  1753. };
  1754. };
  1755.  
  1756. class Meat_CowSteak_Burned : MeatBurnedBase {
  1757. displayName = "Burned Cow Steak";
  1758. descriptionShort = "A burned cow steak.";
  1759. model = "\dz\gear\food\meat_steak.p3d";
  1760. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1761. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_burned_co.paa"};
  1762. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1763.  
  1764. class Nutrition {
  1765. totalVolume = 300;
  1766. energy = 450;
  1767. water = 80;
  1768. nutritionalIndex = 50;
  1769. };
  1770. };
  1771.  
  1772. class Meat_CowSteak_Rotten : MeatRottenBase {
  1773. displayName = "Rotten Cow Steak";
  1774. descriptionShort = "A rotten cow steak.";
  1775. model = "\dz\gear\food\meat_steak.p3d";
  1776. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  1777. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_steak_rotten_co.paa"};
  1778. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_steak.rvmat"};
  1779.  
  1780. class Nutrition {
  1781. totalVolume = 454;
  1782. energy = 300;
  1783. water = 288;
  1784. nutritionalIndex = 40;
  1785. };
  1786. };
  1787.  
  1788. class Meat_RabbitLeg_Raw : MeatRawBase {
  1789. displayName = "Raw Rabbit Leg";
  1790. descriptionShort = "A raw rabbit leg.";
  1791. model = "\dz\gear\food\meat_leg.p3d";
  1792. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  1793. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_leg_raw_co.paa"};
  1794. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_leg.rvmat"};
  1795.  
  1796. class Nutrition {
  1797. totalVolume = 454;
  1798. energy = 517;
  1799. water = 338;
  1800. nutritionalIndex = 218;
  1801. };
  1802.  
  1803. class Cooking : Cooking {
  1804. class FriedRabbit : Fried {
  1805. results[] = {"Meat_RabbitLeg_Cooked"};
  1806. };
  1807. };
  1808. };
  1809.  
  1810. class Meat_RabbitLeg_Cooked : MeatCookedBase {
  1811. displayName = "Cooked Rabbit Leg";
  1812. descriptionShort = "A cooked rabbit leg.";
  1813. model = "\dz\gear\food\meat_leg.p3d";
  1814. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  1815. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_leg_cooked_co.paa"};
  1816. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_leg.rvmat"};
  1817.  
  1818. class Nutrition {
  1819. totalVolume = 299;
  1820. energy = 517;
  1821. water = 184;
  1822. nutritionalIndex = 155;
  1823. };
  1824.  
  1825. class Cooking : Cooking {
  1826. class FriedRabbit : Fried {
  1827. results[] = {"Meat_RabbitLeg_Burned"};
  1828. };
  1829. };
  1830. };
  1831.  
  1832. class Meat_RabbitLeg_Burned : MeatBurnedBase {
  1833. displayName = "Burned Rabbit Leg";
  1834. descriptionShort = "A burned rabbit leg.";
  1835. model = "\dz\gear\food\meat_leg.p3d";
  1836. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  1837. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_leg_burned_co.paa"};
  1838. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_leg.rvmat"};
  1839.  
  1840. class Nutrition {
  1841. totalVolume = 150;
  1842. energy = 100;
  1843. water = 50;
  1844. nutritionalIndex = 40;
  1845. };
  1846. };
  1847.  
  1848. class Meat_RabbitLeg_Rotten : MeatRottenBase {
  1849. displayName = "Rotten Rabbit Leg";
  1850. descriptionShort = "A rotten rabbit leg.";
  1851. model = "\dz\gear\food\meat_leg.p3d";
  1852. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  1853. hiddenSelectionsTextures[] = {"dz\gear\food\data\meat_leg_rotten_co.paa"};
  1854. hiddenSelectionsMaterials[] = {"dz\gear\food\data\meat_leg.rvmat"};
  1855.  
  1856. class Nutrition {
  1857. totalVolume = 454;
  1858. energy = 150;
  1859. water = 338;
  1860. nutritionalIndex = 30;
  1861. };
  1862. };
  1863.  
  1864. class Meat_Fillet_Raw : MeatRawBase {
  1865. displayName = $STR_ITEMS_FISHFILLETRAW;
  1866. descriptionShort = $STR_ITEMS_FISHFILLETRAW_DESC;
  1867. model = "\dz\gear\food\carp_fillet_raw.p3d";
  1868. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_fillet_raw.rtm"};
  1869.  
  1870. class Nutrition {
  1871. totalVolume = 400;
  1872. energy = 800;
  1873. water = 360;
  1874. nutritionalIndex = 184;
  1875. };
  1876.  
  1877. class Cooking : Cooking {
  1878. class FriedChicken : Fried {
  1879. results[] = {"Meat_Fillet_Cooked"};
  1880. };
  1881.  
  1882. class FriedFish : Fried {
  1883. results[] = {"Meat_Fillet_Cooked"};
  1884. };
  1885. };
  1886. };
  1887.  
  1888. class Meat_Fillet_Cooked : MeatCookedBase {
  1889. displayName = $STR_ITEMS_FISHFILLETCOOKED;
  1890. descriptionShort = $STR_ITEMS_FISHFILLETCOOKED_DESC;
  1891. model = "\dz\gear\food\carp_fillet_cooked.p3d";
  1892. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_fillet_raw.rtm"};
  1893.  
  1894. class Nutrition {
  1895. totalVolume = 300;
  1896. energy = 560;
  1897. water = 160;
  1898. nutritionalIndex = 150;
  1899. };
  1900.  
  1901. class Cooking : Cooking {
  1902. class FriedChicken : Fried {
  1903. results[] = {"Meat_Fillet_Burned"};
  1904. };
  1905.  
  1906. class FriedFish : Fried {
  1907. results[] = {"Meat_Fillet_Burned"};
  1908. };
  1909. };
  1910. };
  1911.  
  1912. class Meat_Fillet_Burned : MeatBurnedBase {
  1913. displayName = $STR_ITEMS_FISHFILLETBURNED;
  1914. descriptionShort = $STR_ITEMS_FISHFILLETBURNED_DESC;
  1915. model = "\dz\gear\food\carp_fillet_burnt.p3d";
  1916. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_fillet_raw.rtm"};
  1917.  
  1918. class Nutrition {
  1919. totalVolume = 150;
  1920. energy = 180;
  1921. water = 40;
  1922. nutritionalIndex = 50;
  1923. };
  1924. };
  1925.  
  1926. class Meat_Fillet_Rotten : MeatRottenBase {
  1927. displayName = $STR_ITEMS_FISHFILLETROTTEN;
  1928. descriptionShort = $STR_ITEMS_FISHFILLETROTTEN_DESC;
  1929. model = "\dz\gear\food\carp_fillet_rotten.p3d";
  1930. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_fillet_raw.rtm"};
  1931.  
  1932. class Nutrition {
  1933. totalVolume = 400;
  1934. energy = 200;
  1935. water = 360;
  1936. nutritionalIndex = 30;
  1937. };
  1938. };
  1939.  
  1940. class Meat_ChickenBreastFresh : MeatBase {
  1941. scope = 2;
  1942. displayName = "Chicken Breast";
  1943. descriptionShort = "A raw chicken breast.";
  1944. model = "\dz\gear\food\meat_breast.p3d";
  1945. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  1946. absorbency = 0.3;
  1947.  
  1948. class Nutrition {
  1949. totalVolume = 160;
  1950. energy = 275;
  1951. water = 112;
  1952. nutritionalIndex = 64;
  1953. };
  1954.  
  1955. class UserActions : UserActions {
  1956. class Eat : Eat {
  1957. displayNameDefault = "Eat Raw Chicken Breast";
  1958. useQuantity = 1;
  1959. };
  1960.  
  1961. class ForceFeed : ForceFeed {
  1962. displayNameDefault = "Feed Raw Chicken Breast";
  1963. useQuantity = 1;
  1964. };
  1965. };
  1966. };
  1967.  
  1968. class Meat_CrowBreastFresh : MeatBase {
  1969. scope = 2;
  1970. displayName = "Crow Breast";
  1971. descriptionShort = "A raw crow breast.";
  1972. model = "\dz\gear\food\meat_breast.p3d";
  1973. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  1974. absorbency = 0.3;
  1975.  
  1976. class Nutrition {
  1977. totalVolume = 160;
  1978. energy = 275;
  1979. water = 112;
  1980. nutritionalIndex = 64;
  1981. };
  1982.  
  1983. class UserActions : UserActions {
  1984. class Eat : Eat {
  1985. displayNameDefault = "Eat Raw Crow Breast";
  1986. useQuantity = 1;
  1987. };
  1988.  
  1989. class ForceFeed : ForceFeed {
  1990. displayNameDefault = "Feed Raw Crow Breast";
  1991. useQuantity = 1;
  1992. };
  1993. };
  1994. };
  1995.  
  1996. class Meat_CockBreastFresh : MeatBase {
  1997. scope = 2;
  1998. displayName = "Cock Breast";
  1999. descriptionShort = "A raw cock breast.";
  2000. model = "\dz\gear\food\meat_breast.p3d";
  2001. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  2002. absorbency = 0.3;
  2003.  
  2004. class Nutrition {
  2005. totalVolume = 160;
  2006. energy = 275;
  2007. water = 112;
  2008. nutritionalIndex = 64;
  2009. };
  2010.  
  2011. class UserActions : UserActions {
  2012. class Eat : Eat {
  2013. displayNameDefault = "Eat Raw Cock Breast";
  2014. useQuantity = 1;
  2015. };
  2016.  
  2017. class ForceFeed : ForceFeed {
  2018. displayNameDefault = "Feed Raw Cock Breast";
  2019. useQuantity = 1;
  2020. };
  2021. };
  2022. };
  2023.  
  2024. class Meat_HawkBreastFresh : MeatBase {
  2025. scope = 2;
  2026. displayName = "Hawk Breast";
  2027. descriptionShort = "A raw hawk breast.";
  2028. model = "\dz\gear\food\meat_breast.p3d";
  2029. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  2030. absorbency = 0.3;
  2031.  
  2032. class Nutrition {
  2033. totalVolume = 160;
  2034. energy = 275;
  2035. water = 112;
  2036. nutritionalIndex = 64;
  2037. };
  2038.  
  2039. class UserActions : UserActions {
  2040. class Eat : Eat {
  2041. displayNameDefault = "Eat Raw Hawk Breast";
  2042. useQuantity = 1;
  2043. };
  2044.  
  2045. class ForceFeed : ForceFeed {
  2046. displayNameDefault = "Feed Raw Hawk Breast";
  2047. useQuantity = 1;
  2048. };
  2049. };
  2050. };
  2051.  
  2052. class Meat_SeagulBreastFresh : MeatBase {
  2053. scope = 2;
  2054. displayName = "Seagul Breast";
  2055. descriptionShort = "A raw seagul breast.";
  2056. model = "\dz\gear\food\meat_breast.p3d";
  2057. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_breast.rtm"};
  2058. absorbency = 0.3;
  2059.  
  2060. class Nutrition {
  2061. totalVolume = 160;
  2062. energy = 275;
  2063. water = 112;
  2064. nutritionalIndex = 64;
  2065. };
  2066.  
  2067. class UserActions : UserActions {
  2068. class Eat : Eat {
  2069. displayNameDefault = "Eat Raw Seagul Breast";
  2070. useQuantity = 1;
  2071. };
  2072.  
  2073. class ForceFeed : ForceFeed {
  2074. displayNameDefault = "Feed Raw Seagul Breast";
  2075. useQuantity = 1;
  2076. };
  2077. };
  2078. };
  2079.  
  2080. class Meat_GoatLegFresh : MeatBase {
  2081. scope = 2;
  2082. displayName = "Goat Leg";
  2083. descriptionShort = "A raw goat leg.";
  2084. model = "\dz\gear\food\meat_leg.p3d";
  2085. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  2086. absorbency = 0.3;
  2087. itemSize[] = {2, 2};
  2088.  
  2089. class Nutrition {
  2090. totalVolume = 250;
  2091. energy = 285;
  2092. water = 225;
  2093. nutritionalIndex = 120;
  2094. };
  2095.  
  2096. class UserActions : UserActions {
  2097. class Eat : Eat {
  2098. displayNameDefault = "Eat Raw Goat Leg";
  2099. useQuantity = 1;
  2100. };
  2101.  
  2102. class ForceFeed : ForceFeed {
  2103. displayNameDefault = "Feed Raw Goat Leg";
  2104. useQuantity = 1;
  2105. };
  2106. };
  2107. };
  2108.  
  2109. class Meat_GoatSteakFresh : MeatBase {
  2110. scope = 2;
  2111. displayName = "Goat Steak";
  2112. descriptionShort = "A raw goat steak.";
  2113. model = "\dz\gear\food\meat_steak.p3d";
  2114. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  2115. absorbency = 0.3;
  2116.  
  2117. class Nutrition {
  2118. totalVolume = 300;
  2119. energy = 735;
  2120. water = 189;
  2121. nutritionalIndex = 114;
  2122. };
  2123.  
  2124. class UserActions : UserActions {
  2125. class Eat : Eat {
  2126. displayNameDefault = "Eat Raw Goat Steak";
  2127. useQuantity = 1;
  2128. };
  2129.  
  2130. class ForceFeed : ForceFeed {
  2131. displayNameDefault = "Feed Raw Goat Steak";
  2132. useQuantity = 1;
  2133. };
  2134. };
  2135. };
  2136.  
  2137. class Meat_SheepLegFresh : MeatBase {
  2138. scope = 2;
  2139. displayName = "Sheep Leg";
  2140. descriptionShort = "A raw sheep leg.";
  2141. model = "\dz\gear\food\meat_leg.p3d";
  2142. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  2143. absorbency = 0.3;
  2144.  
  2145. class Nutrition {
  2146. totalVolume = 250;
  2147. energy = 285;
  2148. water = 225;
  2149. nutritionalIndex = 120;
  2150. };
  2151.  
  2152. class UserActions : UserActions {
  2153. class Eat : Eat {
  2154. displayNameDefault = "Eat Raw Sheep Leg";
  2155. useQuantity = 1;
  2156. };
  2157.  
  2158. class ForceFeed : ForceFeed {
  2159. displayNameDefault = "Feed Raw Sheep Leg";
  2160. useQuantity = 1;
  2161. };
  2162. };
  2163. };
  2164.  
  2165. class Meat_SheepSteakFresh : MeatBase {
  2166. scope = 2;
  2167. displayName = "Sheep Steak";
  2168. descriptionShort = "A raw sheep steak.";
  2169. model = "\dz\gear\food\meat_steak.p3d";
  2170. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  2171. absorbency = 0.3;
  2172. itemSize[] = {2, 2};
  2173.  
  2174. class Nutrition {
  2175. totalVolume = 300;
  2176. energy = 735;
  2177. water = 189;
  2178. nutritionalIndex = 114;
  2179. };
  2180.  
  2181. class UserActions : UserActions {
  2182. class Eat : Eat {
  2183. displayNameDefault = "Eat Raw Sheep Steak";
  2184. useQuantity = 1;
  2185. };
  2186.  
  2187. class ForceFeed : ForceFeed {
  2188. displayNameDefault = "Feed Raw Sheep Steak";
  2189. useQuantity = 1;
  2190. };
  2191. };
  2192. };
  2193.  
  2194. class Meat_DeerLegFresh : MeatBase {
  2195. scope = 2;
  2196. displayName = "Deer Leg";
  2197. descriptionShort = "A raw deer leg.";
  2198. model = "\dz\gear\food\meat_leg.p3d";
  2199. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  2200. absorbency = 0.3;
  2201. itemSize[] = {1, 2};
  2202.  
  2203. class Nutrition {
  2204. totalVolume = 250;
  2205. energy = 285;
  2206. water = 225;
  2207. nutritionalIndex = 120;
  2208. };
  2209.  
  2210. class UserActions : UserActions {
  2211. class Eat : Eat {
  2212. displayNameDefault = "Eat Raw Deer Leg";
  2213. useQuantity = 1;
  2214. };
  2215.  
  2216. class ForceFeed : ForceFeed {
  2217. displayNameDefault = "Feed Raw Deer Leg";
  2218. useQuantity = 1;
  2219. };
  2220. };
  2221. };
  2222.  
  2223. class Meat_DeerSteakFresh : MeatBase {
  2224. scope = 2;
  2225. displayName = "Deer Steak";
  2226. descriptionShort = "A raw deer steak.";
  2227. model = "\dz\gear\food\meat_steak.p3d";
  2228. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  2229. absorbency = 0.3;
  2230. itemSize[] = {2, 2};
  2231.  
  2232. class Nutrition {
  2233. totalVolume = 300;
  2234. energy = 735;
  2235. water = 189;
  2236. nutritionalIndex = 114;
  2237. };
  2238.  
  2239. class UserActions : UserActions {
  2240. class Eat : Eat {
  2241. displayNameDefault = "Eat Raw Deer Steak";
  2242. useQuantity = 1;
  2243. };
  2244.  
  2245. class ForceFeed : ForceFeed {
  2246. displayNameDefault = "Feed Raw Deer Steak";
  2247. useQuantity = 1;
  2248. };
  2249. };
  2250. };
  2251.  
  2252. class Meat_DogLegFresh : MeatBase {
  2253. scope = 2;
  2254. displayName = "Dog Leg";
  2255. descriptionShort = "A raw dog leg.";
  2256. model = "\dz\gear\food\meat_leg.p3d";
  2257. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  2258. absorbency = 0.3;
  2259.  
  2260. class Nutrition {
  2261. totalVolume = 250;
  2262. energy = 285;
  2263. water = 225;
  2264. nutritionalIndex = 120;
  2265. };
  2266.  
  2267. class UserActions : UserActions {
  2268. class Eat : Eat {
  2269. displayNameDefault = "Eat Raw Dog Leg";
  2270. useQuantity = 1;
  2271. };
  2272.  
  2273. class ForceFeed : ForceFeed {
  2274. displayNameDefault = "Feed Raw Dog Leg";
  2275. useQuantity = 1;
  2276. };
  2277. };
  2278. };
  2279.  
  2280. class Meat_DogSteakFresh : MeatBase {
  2281. scope = 2;
  2282. displayName = "Dog Steak";
  2283. descriptionShort = "A raw dog steak.";
  2284. model = "\dz\gear\food\meat_steak.p3d";
  2285. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  2286. absorbency = 0.3;
  2287.  
  2288. class Nutrition {
  2289. totalVolume = 300;
  2290. energy = 735;
  2291. water = 189;
  2292. nutritionalIndex = 114;
  2293. };
  2294.  
  2295. class UserActions : UserActions {
  2296. class Eat : Eat {
  2297. displayNameDefault = "Eat Raw Dog Steak";
  2298. useQuantity = 1;
  2299. };
  2300.  
  2301. class ForceFeed : ForceFeed {
  2302. displayNameDefault = "Feed Raw Dog Steak";
  2303. useQuantity = 1;
  2304. };
  2305. };
  2306. };
  2307.  
  2308. class Meat_CowLegFresh : MeatBase {
  2309. scope = 2;
  2310. displayName = "Cow Leg";
  2311. descriptionShort = "A raw cow leg.";
  2312. model = "\dz\gear\food\meat_leg.p3d";
  2313. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  2314. absorbency = 0.3;
  2315. itemSize[] = {2, 4};
  2316.  
  2317. class Nutrition {
  2318. totalVolume = 250;
  2319. energy = 285;
  2320. water = 225;
  2321. nutritionalIndex = 120;
  2322. };
  2323.  
  2324. class UserActions : UserActions {
  2325. class Eat : Eat {
  2326. displayNameDefault = "Eat Raw Cow Leg";
  2327. useQuantity = 1;
  2328. };
  2329.  
  2330. class ForceFeed : ForceFeed {
  2331. displayNameDefault = "Feed Raw Cow Leg";
  2332. useQuantity = 1;
  2333. };
  2334. };
  2335. };
  2336.  
  2337. class Meat_CowSteakFresh : MeatBase {
  2338. scope = 2;
  2339. displayName = "Cow Steak";
  2340. descriptionShort = "A raw cow steak.";
  2341. model = "\dz\gear\food\meat_steak.p3d";
  2342. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  2343. absorbency = 0.3;
  2344. itemSize[] = {3, 3};
  2345.  
  2346. class Nutrition {
  2347. totalVolume = 300;
  2348. energy = 735;
  2349. water = 189;
  2350. nutritionalIndex = 114;
  2351. };
  2352.  
  2353. class UserActions : UserActions {
  2354. class Eat : Eat {
  2355. displayNameDefault = "Eat Raw Cow Steak";
  2356. useQuantity = 1;
  2357. };
  2358.  
  2359. class ForceFeed : ForceFeed {
  2360. displayNameDefault = "Feed Raw Cow Steak";
  2361. useQuantity = 1;
  2362. };
  2363. };
  2364. };
  2365.  
  2366. class Meat_PorkSteakFresh : MeatBase {
  2367. scope = 2;
  2368. displayName = "Pork Steak";
  2369. descriptionShort = "A raw pork steak.";
  2370. model = "\dz\gear\food\meat_steak.p3d";
  2371. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  2372. absorbency = 0.3;
  2373. itemSize[] = {2, 2};
  2374.  
  2375. class Nutrition {
  2376. totalVolume = 300;
  2377. energy = 735;
  2378. water = 189;
  2379. nutritionalIndex = 114;
  2380. };
  2381.  
  2382. class UserActions : UserActions {
  2383. class Eat : Eat {
  2384. displayNameDefault = "Eat Raw Pork Steak";
  2385. useQuantity = 1;
  2386. };
  2387.  
  2388. class ForceFeed : ForceFeed {
  2389. displayNameDefault = "Feed Raw Pork Steak";
  2390. useQuantity = 1;
  2391. };
  2392. };
  2393. };
  2394.  
  2395. class Meat_PorkLegFresh : MeatBase {
  2396. scope = 2;
  2397. displayName = "Pork Leg";
  2398. descriptionShort = "A raw pork leg.";
  2399. model = "\dz\gear\food\meat_leg.p3d";
  2400. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  2401. absorbency = 0.3;
  2402. itemSize[] = {1, 2};
  2403.  
  2404. class Nutrition {
  2405. totalVolume = 250;
  2406. energy = 285;
  2407. water = 225;
  2408. nutritionalIndex = 120;
  2409. };
  2410.  
  2411. class UserActions : UserActions {
  2412. class Eat : Eat {
  2413. displayNameDefault = "Eat Raw Pork Leg";
  2414. useQuantity = 1;
  2415. };
  2416.  
  2417. class ForceFeed : ForceFeed {
  2418. displayNameDefault = "Feed Raw Pork Leg";
  2419. useQuantity = 1;
  2420. };
  2421. };
  2422. };
  2423.  
  2424. class Meat_RabbitLegFresh : MeatBase {
  2425. scope = 2;
  2426. displayName = "Rabbit Leg";
  2427. descriptionShort = "A raw rabbit leg.";
  2428. model = "\dz\gear\food\meat_leg.p3d";
  2429. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  2430. absorbency = 0.3;
  2431.  
  2432. class Nutrition {
  2433. totalVolume = 250;
  2434. energy = 285;
  2435. water = 225;
  2436. nutritionalIndex = 120;
  2437. };
  2438.  
  2439. class UserActions : UserActions {
  2440. class Eat : Eat {
  2441. displayNameDefault = "Eat Raw Rabbit Leg";
  2442. useQuantity = 1;
  2443. };
  2444.  
  2445. class ForceFeed : ForceFeed {
  2446. displayNameDefault = "Feed Raw Rabbit Leg";
  2447. useQuantity = 1;
  2448. };
  2449. };
  2450. };
  2451.  
  2452. class Meat_BearLegFresh : MeatBase {
  2453. scope = 2;
  2454. displayName = "Bear Leg";
  2455. descriptionShort = "A raw bear leg.";
  2456. model = "\dz\gear\food\meat_leg.p3d";
  2457. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_leg.rtm"};
  2458. absorbency = 0.3;
  2459. itemSize[] = {2, 2};
  2460.  
  2461. class Nutrition {
  2462. totalVolume = 250;
  2463. energy = 285;
  2464. water = 225;
  2465. nutritionalIndex = 120;
  2466. };
  2467.  
  2468. class UserActions : UserActions {
  2469. class Eat : Eat {
  2470. displayNameDefault = "Eat Raw Goat Leg";
  2471. useQuantity = 1;
  2472. };
  2473.  
  2474. class ForceFeed : ForceFeed {
  2475. displayNameDefault = "Feed Raw Goat Leg";
  2476. useQuantity = 1;
  2477. };
  2478. };
  2479. };
  2480.  
  2481. class Meat_BearSteakFresh : MeatBase {
  2482. scope = 2;
  2483. displayName = "Bear Steak";
  2484. descriptionShort = "A raw bear steak.";
  2485. model = "\dz\gear\food\meat_steak.p3d";
  2486. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\meat_steak.rtm"};
  2487. absorbency = 0.3;
  2488.  
  2489. class Nutrition {
  2490. totalVolume = 300;
  2491. energy = 735;
  2492. water = 189;
  2493. nutritionalIndex = 114;
  2494. };
  2495.  
  2496. class UserActions : UserActions {
  2497. class Eat : Eat {
  2498. displayNameDefault = "Eat Raw Goat Steak";
  2499. useQuantity = 1;
  2500. };
  2501.  
  2502. class ForceFeed : ForceFeed {
  2503. displayNameDefault = "Feed Raw Goat Steak";
  2504. useQuantity = 1;
  2505. };
  2506. };
  2507. };
  2508.  
  2509. class AnimalCorpseBase : FoodItemBase {
  2510. rotateDropped = 0;
  2511. rotateAlways = 0;
  2512. itemSize[] = {2, 1};
  2513. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\baked_beans.rtm"};
  2514. stackedUnit = "kg";
  2515. };
  2516.  
  2517. class FishCorpseBase : AnimalCorpseBase {
  2518. scope = 2;
  2519. displayName = "Dead fish";
  2520. descriptionShort = "Dead.";
  2521. model = "\dz\gear\food\carp_live.p3d";
  2522.  
  2523. class Melee {
  2524. range = 0.8;
  2525. swingTime = 0.5;
  2526. action = "MeleeAttack2";
  2527. ammo = "MeleeFist";
  2528. useCursor = 1;
  2529. };
  2530.  
  2531. class UserActions : UserActions {
  2532. class Eat : Eat {
  2533. displayNameDefault = "Eat unprepared fish";
  2534. displayName = "Eat unprepared fish";
  2535. priority = 0.4;
  2536. 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;};";
  2537. useQuantity = 0.25;
  2538. interactionWeight = 1;
  2539. };
  2540.  
  2541. class EatAll : Eat {
  2542. displayNameDefault = "Eat whole unprepared fish";
  2543. displayName = "Eat whole unprepared fish";
  2544. sound = "eating_soft";
  2545. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  2546. action = "PlayerEatAll";
  2547. priority = 0.3;
  2548. messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
  2549. 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;};";
  2550. useQuantity = 1;
  2551. interactionWeight = 1;
  2552. };
  2553.  
  2554. class ForceFeed : ForceFeed {
  2555. displayNameDefault = "Force feed unprepared fish";
  2556. displayName = "Force feed unprepared fish";
  2557. 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;};";
  2558. priority = 0.5;
  2559. useQuantity = 0.25;
  2560. interactionWeight = 0.25;
  2561. };
  2562. };
  2563. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\apple.rtm"};
  2564. };
  2565.  
  2566. class Food_Carp : FishCorpseBase {
  2567. displayName = $STR_ITEMS_FOODCARP;
  2568. descriptionShort = $STR_ITEMS_FOODCARP_DESC;
  2569. model = "\dz\gear\food\carp_live.p3d";
  2570. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_live.rtm"};
  2571. stackedMax = 2;
  2572. itemSize[] = {1, 2};
  2573. rotateDropped = 1;
  2574. rotateAlways = 1;
  2575.  
  2576. class Nutrition {
  2577. totalVolume = 130;
  2578. energy = 69;
  2579. water = 172;
  2580. nutritionalIndex = 70;
  2581. };
  2582.  
  2583. class Melee {
  2584. range = 0.8;
  2585. swingTime = 0.5;
  2586. action = "MeleeKnifeSlash";
  2587. ammo = "MeleeSoft";
  2588. useCursor = 0;
  2589. };
  2590.  
  2591. class UserActions : UserActions {
  2592. class EatAll : EatAll {
  2593. useQuantity = 2;
  2594. };
  2595. };
  2596. };
  2597.  
  2598. class Food_Sardines : Food_Carp {
  2599. displayName = "Sardines";
  2600. descriptionShort = "Small, oily fish within the herring family of Clupeidae.";
  2601. model = "\dz\gear\food\sardines_live.p3d";
  2602. itemSize[] = {1, 1};
  2603. stackedMax = 1;
  2604.  
  2605. class UserActions : UserActions {
  2606. class EatAll : EatAll {
  2607. useQuantity = 1;
  2608. };
  2609. };
  2610. };
  2611.  
  2612. class Food_Tuna : FishCorpseBase {
  2613. displayName = $STR_ITEMS_FOODBULLETTUNA;
  2614. descriptionShort = $STR_ITEMS_FOODBULLETTUNA_DESC;
  2615. model = "\dz\gear\food\carp_live.p3d";
  2616. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\carp_live.rtm"};
  2617. stackedMax = 2;
  2618.  
  2619. class Nutrition {
  2620. totalVolume = 130;
  2621. energy = 69;
  2622. water = 172;
  2623. nutritionalIndex = 70;
  2624. };
  2625.  
  2626. class UserActions : UserActions {
  2627. class EatAll : EatAll {
  2628. useQuantity = 2;
  2629. };
  2630. };
  2631. };
  2632.  
  2633. class Food_Worm : AnimalCorpseBase {
  2634. scope = 2;
  2635. displayName = $STR_ITEMS_EARTHWORM;
  2636. descriptionShort = $STR_ITEMS_EARTHWORM_DESC;
  2637. model = "\dz\gear\food\bait_worm.p3d";
  2638. handAnim[] = {"OFP2_ManSkeleton", "\DZ\anims\data\anim\sdr\ik\food\bait_worm.rtm"};
  2639. stackedMax = 10;
  2640. itemSize[] = {1, 1};
  2641. quantity = "format ['%1', quantity _this]";
  2642. stackedUnit = "pcs";
  2643. storeVariables[] = {"quantity", "modifiers", "lifetime"};
  2644. synchronizedVariables[] = {"quantity", 1};
  2645.  
  2646. class Nutrition {
  2647. totalVolume = 40;
  2648. energy = 80;
  2649. water = 8;
  2650. nutritionalIndex = 42;
  2651. };
  2652.  
  2653. class UserActions : UserActions {
  2654. class Eat : Eat {
  2655. displayNameDefault = "Eat unprepared worm";
  2656. displayName = "Eat unprepared worm";
  2657. onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};";
  2658. useQuantity = 1;
  2659. };
  2660.  
  2661. class EatAll : Eat {
  2662. displayNameDefault = "Eat all unprepared worms";
  2663. displayName = "Eat all unprepared worms";
  2664. sound = "eating_soft";
  2665. onStart = "if (_quantity <= 0.25) then {_action = 'PlayerEat';};";
  2666. action = "PlayerEatAll";
  2667. messages[] = {"The %1 is empty", "colorStatusChannel", "You have eaten all %1", "colorAction"};
  2668. onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_person,'FoodPoisoning_LightImpact'] call event_modifier;};";
  2669. useQuantity = 10;
  2670. };
  2671.  
  2672. class ForceFeed : ForceFeed {
  2673. displayNameDefault = "Force feed unprepared worm";
  2674. displayName = "Force feed unprepared worm";
  2675. onComplete = "_poisonChance = random 1;if (_poisonChance < 0.85) then {[0,_target,'FoodPoisoning_LightImpact'] call event_modifier;};";
  2676. useQuantity = 1;
  2677. };
  2678. };
  2679. };
  2680. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement