From cae91db7b3692b1aa77af25b63b70efc0bf14b02 Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:09:29 -0700 Subject: [PATCH 1/3] Initial --- .../ACE_Medical_Treatment_Actions.hpp | 2 ++ addons/medical_treatment/initSettings.inc.sqf | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp b/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp index 4058132e3db..495ed9ba25c 100644 --- a/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp +++ b/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp @@ -128,8 +128,10 @@ class GVAR(actions) { class Adenosine: Morphine { displayName = CSTRING(Inject_Adenosine); displayNameProgress = CSTRING(Injecting_Adenosine); + medicRequired = QGVAR(medicAdenosine); condition = QGVAR(advancedMedication); items[] = {"ACE_adenosine"}; + treatmentLocations = QGVAR(locationAdenosine); litter[] = {{"ACE_MedicalLitter_adenosine"}}; }; class Epinephrine: Morphine { diff --git a/addons/medical_treatment/initSettings.inc.sqf b/addons/medical_treatment/initSettings.inc.sqf index 7f0fc06764c..00bef17240f 100644 --- a/addons/medical_treatment/initSettings.inc.sqf +++ b/addons/medical_treatment/initSettings.inc.sqf @@ -154,6 +154,42 @@ true ] call CBA_fnc_addSetting; +[ + QGVAR(medicMorphine), + "LIST", + [LSTRING(MedicMorphine_DisplayName), LSTRING(MedicMorphine_Description)], + [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], + [[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 0], + true +] call CBA_fnc_addSetting; + +[ + QGVAR(locationMorphine), + "LIST", + [LSTRING(LocationMorphine_DisplayName), LSTRING(LocationMorphine_Description)], + [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], + [[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 0], + true +] call CBA_fnc_addSetting; + +[ + QGVAR(medicAdenosine), + "LIST", + [LSTRING(MedicAdenosine_DisplayName), LSTRING(MedicAdenosine_Description)], + [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], + [[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 0], + true +] call CBA_fnc_addSetting; + +[ + QGVAR(locationAdenosine), + "LIST", + [LSTRING(LocationAdenosine_DisplayName), LSTRING(LocationAdenosine_Description)], + [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], + [[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 0], + true +] call CBA_fnc_addSetting; + [ QGVAR(medicPAK), "LIST", From 026db7669435b4864a20a7fd239807d6dc99e144 Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:14:09 -0700 Subject: [PATCH 2/3] weehoo --- addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp b/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp index 495ed9ba25c..d03a63d0b6b 100644 --- a/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp +++ b/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp @@ -115,9 +115,11 @@ class GVAR(actions) { displayName = CSTRING(Inject_Morphine); displayNameProgress = CSTRING(Injecting_Morphine); icon = QPATHTOEF(medical_gui,ui\auto_injector.paa); + medicRequired = QGVAR(medicMorphine); allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"}; category = "medication"; items[] = {"ACE_morphine"}; + treatmentLocations = QGVAR(locationMorphine); condition = ""; treatmentTime = QGVAR(treatmentTimeAutoinjector); callbackSuccess = QFUNC(medication); From 0b085a44f4d289ceb62d057350c42b44e43af6d8 Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:56:09 -0700 Subject: [PATCH 3/3] Stringtable --- addons/medical_treatment/stringtable.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/addons/medical_treatment/stringtable.xml b/addons/medical_treatment/stringtable.xml index b0d140d8255..8051b551fdb 100644 --- a/addons/medical_treatment/stringtable.xml +++ b/addons/medical_treatment/stringtable.xml @@ -546,6 +546,30 @@ Controla donde puede sr usada la Epinefrina. 에피네프린을 사용할 수 있는 장소를 정합니다. + + Allow Morphine + + + Training level required to use Morphine. + + + Locations Morphine + + + Controls where Morphine can be used. + + + Allow Adenosine + + + Training level required to use Adenosine. + + + Locations Adenosine + + + Controls where Adenosine can be used. + Allow PAK Доступ к Аптечке