From a1e43911dcdd6ddc7c5a5c34969781ee1c81a9ed Mon Sep 17 00:00:00 2001 From: "DESKTOP-UH65DCE\\MusTanG" Date: Tue, 3 Oct 2017 19:38:32 -0500 Subject: [PATCH] add medical items Morphine was the goal. adrenaline, atropine, caffeine pills and orlistat added as well to pricing, itemsort and iteminteractions --- .../Configs/CfgItemInteractions.hpp | 46 ++++++++++++++++++- Sources/epoch_config/Configs/CfgItemSort.hpp | 6 ++- Sources/epoch_config/Configs/CfgPricing.hpp | 20 ++++++++ 3 files changed, 70 insertions(+), 2 deletions(-) diff --git a/Sources/epoch_config/Configs/CfgItemInteractions.hpp b/Sources/epoch_config/Configs/CfgItemInteractions.hpp index f8258882..a3052311 100644 --- a/Sources/epoch_config/Configs/CfgItemInteractions.hpp +++ b/Sources/epoch_config/Configs/CfgItemInteractions.hpp @@ -1,6 +1,21 @@ /* Legend: -interactAction: 0 = examine, 1 = eat, 2 = drink, 3 = build +interactAction: 0 = examine, + 1 = eat, + 2 = drink, + 3 = build, + 4 = refuel, + 5 = siphon, + 6 = Soiled-25, + 7 = Warm+1, + 8 = Cold-1, + 9 = Energy 100, + 10 = Repair Light, + 11 = Repair Heavy, + 12 = base painting, + 13 = Heal Player, + 14 = Unpack Backpack, + 15 = Read interactAttributes[] = { {"Temp",0}, {"Hunger",0}, @@ -846,5 +861,34 @@ class CfgItemInteractions interactAttributes[] = {{"Thirst",1000},{"Toxicity",5,1},{"Stamina",50},{"Radiation",2,1}}; interactReturnOnUse = "ItemCanteen_Empty"; }; + class adrenaline_epoch : FAK + { + interactAction = 13; // Radiation consume item action needed + interactText = "USE"; + }; + class atropine_epoch : FAK + { + interactAction = 13; // Radiation consume item action needed + interactText = "USE"; + }; + class morphine_epoch : FAK + { + interactAction = 13; // part specific healing action needed + interactText = "USE"; + interactAttributes[] = {{"Thirst",-50},{"Stamina",-20}}; + }; + class caffeinepills_epoch : FAK + { + interactAction = 1; // some type of boost system is needed as well as new action to feed it + interactText = "EAT"; + interactAttributes[] = {{"Thirst",-20},{"Stamina",50}}; + + }; + class orlistat_epoch : FAK + { + interactAction = 1; // some type of boost system is needed as well as new action to feed it + interactText = "EAT"; + interactAttributes[] = {{"Thirst",-20},{"Stamina",50}}; + }; }; /*[[[end]]]*/ diff --git a/Sources/epoch_config/Configs/CfgItemSort.hpp b/Sources/epoch_config/Configs/CfgItemSort.hpp index 9c43cd95..ca612e8a 100644 --- a/Sources/epoch_config/Configs/CfgItemSort.hpp +++ b/Sources/epoch_config/Configs/CfgItemSort.hpp @@ -903,7 +903,11 @@ class CfgItemSort "HeatPack", "ColdPack", "ItemVitamins", - "atropine_epoch" + "adrenaline_epoch", + "atropine_epoch", + "morphine_epoch", + "caffeinepills_epoch", + "orlistat_epoch" }; Food[] = { diff --git a/Sources/epoch_config/Configs/CfgPricing.hpp b/Sources/epoch_config/Configs/CfgPricing.hpp index 8ea5e0dc..a4a3408c 100644 --- a/Sources/epoch_config/Configs/CfgPricing.hpp +++ b/Sources/epoch_config/Configs/CfgPricing.hpp @@ -2039,6 +2039,26 @@ class CfgPricing class ColdPack { price = 2; + }; + class adrenaline_epoch + { + price = 10; + }; + class atropine_epoch + { + price = 10; + }; + class morphine_epoch + { + price = 10; + }; + class caffeinepills_epoch + { + price = 10; + }; + class orlistat_epoch + { + price = 10; }; class sr25_epoch {