diff --git a/addons/gui/functions/fnc_updateMedications.sqf b/addons/gui/functions/fnc_updateMedications.sqf index 58248154b..95f759ac0 100644 --- a/addons/gui/functions/fnc_updateMedications.sqf +++ b/addons/gui/functions/fnc_updateMedications.sqf @@ -38,7 +38,8 @@ disableSerialization; "kat_adenosineIV", "kat_atropineIV", "kat_alteplase", - "ACE_salineIV_250" + "ACE_salineIV_250", + "kat_doxapram" ]; private _medicationsFound = { diff --git a/addons/pharma/ACE_Medical_Treatment.hpp b/addons/pharma/ACE_Medical_Treatment.hpp index 146c43d1a..a6a2b479a 100644 --- a/addons/pharma/ACE_Medical_Treatment.hpp +++ b/addons/pharma/ACE_Medical_Treatment.hpp @@ -379,6 +379,7 @@ class ACE_ADDON(Medical_Treatment) { incompatibleMedication[] = {}; viscosityChange = 0; onOverDose = ""; + respiratoryRate = 0.1; }; class BubbleWrap { painReduce = 0.05; @@ -589,7 +590,7 @@ class ACE_ADDON(Medical_Treatment) { dose = 1; viscosityChange = 10; opioidEffect = 0.18; - respiratoryRate = -0.3; + respiratoryRate = -0.2; }; class syringe_ketamine_5ml_3 { painReduce = 0.8; @@ -602,7 +603,7 @@ class ACE_ADDON(Medical_Treatment) { viscosityChange = 10; onOverDose = ""; opioidEffect = 0.21; - respiratoryRate = -0.4; + respiratoryRate = -0.3; }; class syringe_nalbuphine_5ml_1 { painReduce = 0.5; @@ -792,6 +793,26 @@ class ACE_ADDON(Medical_Treatment) { dose = 3; viscosityChange = 0; }; + class syringe_doxapram_5ml_1 { + painReduce = 0; + hrIncreaseLow[] = {-3, -10}; + hrIncreaseNormal[] = {-5, -10}; + hrIncreaseHigh[] = {-5, -15}; + timeInSystem = 180; + timeTillMaxEffect = 15; + dose = 1; + viscosityChange = 0; + }; + class syringe_doxapram_5ml_3 { + painReduce = 0; + hrIncreaseLow[] = {-3, -10}; + hrIncreaseNormal[] = {-5, -15}; + hrIncreaseHigh[] = {-5, -20}; + timeInSystem = 180; + timeTillMaxEffect = 15; + dose = 3; + viscosityChange = 0; + }; class syringe_alteplase_5ml_3 { painReduce = 0; hrIncreaseLow[] = {-4, -10}; @@ -1021,5 +1042,11 @@ class ACE_ADDON(Medical_Treatment) { incompatibleMedication[] = {}; onOverDose = ""; }; + class syringe_doxapram { + maxDose = 3; + maxDoseDeviation = 2; + incompatibleMedication[] = {}; + onOverDose = ""; + }; }; }; diff --git a/addons/pharma/ACE_Medical_Treatment_Actions.hpp b/addons/pharma/ACE_Medical_Treatment_Actions.hpp index 9fc627d3d..957eec33d 100644 --- a/addons/pharma/ACE_Medical_Treatment_Actions.hpp +++ b/addons/pharma/ACE_Medical_Treatment_Actions.hpp @@ -854,7 +854,25 @@ class ACE_Medical_Treatment_Actions { callbackSuccess = QFUNC(medication); sounds[] = {}; }; - class syringe_lidocaine_10ml_1: syringe_TXA_10ml_1 { + class syringe_doxapram_5ml_1: syringe_EACA_5ml_1 { + displayName = CSTRING(push_doxapram_IV_1); + displayNameProgress = CSTRING(pushing_doxapram_IV_1); + allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"}; + allowSelfTreatment = 1; + medicRequired = QGVAR(medLvl_doxapram); + treatmentTime = QGVAR(treatmentTime_doxapram); + items[] = {"kat_syringe_doxapram_5ml_1"}; + callbackSuccess = QFUNC(medication); + sounds[] = {}; + }; + class syringe_doxapram_5ml_3: syringe_doxapram_5ml_1 { + displayName = CSTRING(push_doxapram_IV_3); + displayNameProgress = CSTRING(pushing_doxapram_IV_3); + items[] = {"kat_syringe_doxapram_5ml_3"}; + callbackSuccess = QFUNC(medication); + sounds[] = {}; + }; + class syringe_lidocaine_10ml_1: syringe_TXA_10ml_1 { displayName = CSTRING(inject_lidocaine_IM_1); displayNameProgress = CSTRING(injecting_lidocaine_IM_1); allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"}; @@ -937,20 +955,20 @@ class ACE_Medical_Treatment_Actions { callbackSuccess = QFUNC(medication); sounds[] = {}; }; - //class CheckVein: CheckPulse { - // displayName = CSTRING(CheckVein_DisplayName); - // displayNameProgress = CSTRING(CheckVein_DisplayNameProgress); - // allowedSelections[] = {"LeftArm", "RightArm", "Left Leg", "Right leg"}; - // treatmentLocations = 0; - // medicRequired = QGVAR(CheckVein_MedLevel); - // treatmentTime = QGVAR(CheckVein_TreatmentTime); - // category = "examine"; - // consumeItem = 0; - // condition = ""; - // callbackProgress = ""; - // callbackStart = ""; - // callbackFailure = ""; - // callbackSuccess = QFUNC(treatmentAdvanced_CheckVein); - // litter[] = {}; - //}; + class CheckVein: CheckPulse { + displayName = CSTRING(CheckVein_DisplayName); + displayNameProgress = CSTRING(CheckVein_DisplayNameProgress); + allowedSelections[] = {"LeftArm", "RightArm", "Left Leg", "Right leg"}; + treatmentLocations = 0; + medicRequired = QGVAR(CheckVein_MedLevel); + treatmentTime = QGVAR(CheckVein_TreatmentTime); + category = "examine"; + consumeItem = 0; + condition = ""; + callbackProgress = ""; + callbackStart = ""; + callbackFailure = ""; + callbackSuccess = QFUNC(treatmentAdvanced_CheckVein); + litter[] = {}; + }; }; diff --git a/addons/pharma/CfgWeapons.hpp b/addons/pharma/CfgWeapons.hpp index fae9bdf67..773e1a000 100644 --- a/addons/pharma/CfgWeapons.hpp +++ b/addons/pharma/CfgWeapons.hpp @@ -300,6 +300,17 @@ class CfgWeapons { mass = 0.5; }; }; + class kat_doxapram: ACE_ItemCore { + scope = 2; + displayName = CSTRING(Doxapram_Display); + picture = QPATHTOF(ui\icon_Doxapram.paa); + model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d"; + descriptionShort = CSTRING(Doxapram_DescShort); + ACE_isMedicalItem = 1; + class ItemInfo: CBA_MiscItem_ItemInfo { + mass = 0.5; + }; + }; class kat_coag_sense: ACE_ItemCore { scope = 2; author = "Miss Heda"; @@ -828,4 +839,26 @@ class CfgWeapons { mass = 1; }; }; + class kat_syringe_doxapram_5ml_1: ACE_ItemCore { + scope = 1; + displayName = CSTRING(Syringe_doxapram_5_1_Display); + picture = QPATHTOF(ui\syringe_item.paa); + model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d"; + descriptionShort = CSTRING(Syringe_doxapram_5_1_DescShort); + ACE_isMedicalItem = 1; + class ItemInfo: CBA_MiscItem_ItemInfo { + mass = 1; + }; + }; + class kat_syringe_doxapram_5ml_3: ACE_ItemCore { + scope = 1; + displayName = CSTRING(Syringe_doxapram_5_3_Display); + picture = QPATHTOF(ui\syringe_item.paa); + model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d"; + descriptionShort = CSTRING(Syringe_doxapram_5_3_DescShort); + ACE_isMedicalItem = 1; + class ItemInfo: CBA_MiscItem_ItemInfo { + mass = 1; + }; + }; }; diff --git a/addons/pharma/XEH_PREP.hpp b/addons/pharma/XEH_PREP.hpp index 8d862eb7e..e4df935b8 100644 --- a/addons/pharma/XEH_PREP.hpp +++ b/addons/pharma/XEH_PREP.hpp @@ -38,6 +38,7 @@ PREP(treatmentAdvanced_CWMP); PREP(treatmentAdvanced_CWMPOverdoseLocal); PREP(treatmentAdvanced_Dialysis); PREP(treatmentAdvanced_DialysisLocal); +PREP(treatmentAdvanced_DoxapramOverdoseLocal); PREP(treatmentAdvanced_EACALocal); PREP(treatmentAdvanced_EACAOverdoseLocal); PREP(treatmentAdvanced_EpinephrineOverdoseLocal); diff --git a/addons/pharma/functions/fnc_treatmentAdvanced_DoxapramOverdoseLocal.sqf b/addons/pharma/functions/fnc_treatmentAdvanced_DoxapramOverdoseLocal.sqf new file mode 100644 index 000000000..acab5f606 --- /dev/null +++ b/addons/pharma/functions/fnc_treatmentAdvanced_DoxapramOverdoseLocal.sqf @@ -0,0 +1,17 @@ +#include "..\script_component.hpp" +/* + * Author: Cplhardcore + * Handles the overdose effects of Doxapram + * + * Arguments: + * 0: Patient + * + * Return Value: + * None + * + * Example: + * [player] call kat_pharma_fnc_treatmentAdvanced_DoxapramOverdoseLocal; + * + * Public: No + */ +params ["_patient"]; diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml index ebfd5c245..20cda6445 100644 --- a/addons/pharma/stringtable.xml +++ b/addons/pharma/stringtable.xml @@ -4758,5 +4758,47 @@ Transfuse Ringers Lactate + + Doxapram + + + Medical level required for Doxapram + + + Treatment time for Doxapram + + + Doxapram + + + Doxapram + + + Push Doxapram + + + Push 0.5mg Doxapram + + + Push 1mg Doxapram + + + Pushing 0.5mg Doxapram + + + Pushing 1mg Doxapram + + + 5ml Syringe/0.5mg Doxapram + + + 5ml Syringe loaded with 0.5 mg of Doxapram + + + 5ml Syringe/1mg Doxapram + + + 5ml Syringe loaded with 1mg of Doxapram + diff --git a/addons/pharma/ui/icon_Doxapram.paa b/addons/pharma/ui/icon_Doxapram.paa new file mode 100644 index 000000000..6e43bd7d7 Binary files /dev/null and b/addons/pharma/ui/icon_Doxapram.paa differ