From 66cc3a85aae940050458e342c5319f3610159c32 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:23:00 -0700
Subject: [PATCH 001/149] Initial
---
addons/pharma/ACE_Medical_Treatment.hpp | 72 ++++++++++++
.../pharma/ACE_Medical_Treatment_Actions.hpp | 59 ++++++++++
addons/pharma/CfgWeapons.hpp | 110 ++++++++++++++++++
addons/pharma/config.cpp | 4 +
addons/pharma/stringtable.xml | 82 +++++++++++++
5 files changed, 327 insertions(+)
diff --git a/addons/pharma/ACE_Medical_Treatment.hpp b/addons/pharma/ACE_Medical_Treatment.hpp
index 4e96f8865..a42e97b77 100644
--- a/addons/pharma/ACE_Medical_Treatment.hpp
+++ b/addons/pharma/ACE_Medical_Treatment.hpp
@@ -335,5 +335,77 @@ class ACE_ADDON(Medical_Treatment) {
onOverDose = "";
maxRelief = 0.6;
};
+ class 5ml_syringe_txa_1 {
+ painReduce = 0;
+ hrIncreaseLow[] = {0, 0};
+ hrIncreaseNormal[] = {0, 0};
+ hrIncreaseHigh[] = {0, 0};
+ timeInSystem = 120;
+ timeTillMaxEffect = 5;
+ maxDose = 3;
+ incompatibleMedication[] = {};
+ viscosityChange = 0;
+ onOverDose = "";
+ };
+ class 5ml_syringe_txa_2 {
+ painReduce = 0;
+ hrIncreaseLow[] = {0, 0};
+ hrIncreaseNormal[] = {0, 0};
+ hrIncreaseHigh[] = {0, 0};
+ timeInSystem = 120;
+ timeTillMaxEffect = 5;
+ maxDose = 3;
+ incompatibleMedication[] = {};
+ viscosityChange = 0;
+ onOverDose = "";
+ };
+ class 10ml_syringe_txa_1 {
+ painReduce = 0;
+ hrIncreaseLow[] = {0, 0};
+ hrIncreaseNormal[] = {0, 0};
+ hrIncreaseHigh[] = {0, 0};
+ timeInSystem = 120;
+ timeTillMaxEffect = 5;
+ maxDose = 3;
+ incompatibleMedication[] = {};
+ viscosityChange = 0;
+ onOverDose = "";
+ };
+ class 10ml_syringe_txa_2 {
+ painReduce = 0;
+ hrIncreaseLow[] = {0, 0};
+ hrIncreaseNormal[] = {0, 0};
+ hrIncreaseHigh[] = {0, 0};
+ timeInSystem = 120;
+ timeTillMaxEffect = 5;
+ maxDose = 3;
+ incompatibleMedication[] = {};
+ viscosityChange = 0;
+ onOverDose = "";
+ };
+ class 5ml_syringe_eaca_1 {
+ painReduce = 0;
+ hrIncreaseLow[] = {0, 0};
+ hrIncreaseNormal[] = {0, 0};
+ hrIncreaseHigh[] = {0, 0};
+ timeInSystem = 600;
+ timeTillMaxEffect = 15;
+ maxDose = 10;
+ incompatibleMedication[] = {};
+ viscosityChange = 0;
+ onOverDose = "";
+ };
+ class 5ml_syringe_eaca_2 {
+ painReduce = 0;
+ hrIncreaseLow[] = {0, 0};
+ hrIncreaseNormal[] = {0, 0};
+ hrIncreaseHigh[] = {0, 0};
+ timeInSystem = 600;
+ timeTillMaxEffect = 15;
+ maxDose = 10;
+ incompatibleMedication[] = {};
+ viscosityChange = 0;
+ onOverDose = "";
+ };
};
};
diff --git a/addons/pharma/ACE_Medical_Treatment_Actions.hpp b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
index 66c4ee124..17ed53436 100644
--- a/addons/pharma/ACE_Medical_Treatment_Actions.hpp
+++ b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
@@ -413,4 +413,63 @@ class ACE_Medical_Treatment_Actions {
callbackSuccess = QFUNC(treatmentAdvanced_CheckCoag);
litter[] = {};
};
+ class EACA_IV_1: Carbonate {
+ displayName = CSTRING(push_EACA_1);
+ allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"};
+ allowSelfTreatment = 1;
+ medicRequired = QGVAR(medLvl_EACA);
+ treatmentTime = QGVAR(treatmentTime_EACA);
+ items[] = {"kat_5ml_syringe_eaca_1"};
+ condition = QUOTE(!(GVAR(MedicationsRequireInsIV)) || FUNC(removeIV));
+ callbackSuccess = QFUNC(medication);
+ sounds[] = {};
+ };
+ class EACA_IV_2: EACA_IV_1 {
+ displayName = CSTRING(take_EACA_2);
+ allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"};
+ allowSelfTreatment = 1;
+ medicRequired = QGVAR(medLvl_EACA);
+ treatmentTime = QGVAR(treatmentTime_EACA);
+ items[] = {"kat_5ml_syringe_eaca_2"};
+ callbackSuccess = QFUNC(medication);
+ sounds[] = {};
+ };
+ class TXA_IM_1: Carbonate {
+ displayName = CSTRING(take_TXA_1);
+ allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
+ allowSelfTreatment = 1;
+ medicRequired = QGVAR(medLvl_EACA);
+ treatmentTime = QGVAR(treatmentTime_EACA);
+ items[] = {"kat_10ml_syringe_txa_1"};
+ callbackSuccess = QFUNC(medication);
+ sounds[] = {};
+ };
+ class TXA_IM_2: TXA_IM_1 {
+ displayName = CSTRING(take_TXA_2);
+ allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
+ allowSelfTreatment = 1;
+ medicRequired = QGVAR(medLvl_EACA);
+ treatmentTime = QGVAR(treatmentTime_EACA);
+ items[] = {"kat_10ml_syringe_txa_2"};
+ callbackSuccess = QFUNC(medication);
+ sounds[] = {};
+ };
+ class TXA_IV_1: EACA {
+ displayName = CSTRING(Take_TXA);
+ allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"};
+ allowSelfTreatment = 1;
+ medicRequired = QGVAR(medLvl_TXA);
+ treatmentTime = QGVAR(treatmentTime_TXA);
+ condition = QUOTE(!(GVAR(MedicationsRequireInsIV)) || FUNC(removeIV));
+ items[] = {"kat_5ml_syringe_txa_1"};
+ callbackSuccess = QFUNC(medication);
+ sounds[] = {};
+ };
+ class TXA_IV_2: TXA_IV_1 {
+ displayName = CSTRING(Take_TXA);
+ items[] = {"kat_5ml_syringe_txa_2"};
+ callbackSuccess = QFUNC(medication);
+ sounds[] = {};
+ };
+
};
diff --git a/addons/pharma/CfgWeapons.hpp b/addons/pharma/CfgWeapons.hpp
index 35c66fdd1..3576176dd 100644
--- a/addons/pharma/CfgWeapons.hpp
+++ b/addons/pharma/CfgWeapons.hpp
@@ -13,6 +13,28 @@ class CfgWeapons {
mass = 0.5;
};
};
+ class kat_IV_14: ACE_ItemCore {
+ scope = 2;
+ displayName = CSTRING(IV_14_Display);
+ picture = QPATHTOF(ui\icon_IV_16.paa);
+ model = QPATHTOF(models\iv\kat_iv.p3d);
+ descriptionShort = CSTRING(IV_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 0.5;
+ };
+ };
+ class kat_IV_20: ACE_ItemCore {
+ scope = 2;
+ displayName = CSTRING(IV_20_Display);
+ picture = QPATHTOF(ui\icon_IV_16.paa);
+ model = QPATHTOF(models\iv\kat_iv.p3d);
+ descriptionShort = CSTRING(IV_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 0.5;
+ };
+ };
class kat_IO_FAST: ACE_ItemCore {
scope = 2;
displayName = CSTRING(IO_45_Display);
@@ -24,6 +46,28 @@ class CfgWeapons {
mass = 0.5;
};
};
+ class kat_10ml_syringe: ACE_ItemCore {
+ scope = 2;
+ displayName = CSTRING(Syringe_10_Display);
+ picture = QPATHTOF(ui\icon_fast_io.paa);
+ model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
+ descriptionShort = CSTRING(Syringe_10_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 1;
+ };
+ };
+ class kat_5ml_syringe: ACE_ItemCore {
+ scope = 2;
+ displayName = CSTRING(Syringe_5_Display);
+ picture = QPATHTOF(ui\icon_fast_io.paa);
+ model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
+ descriptionShort = CSTRING(Syringe_5_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 1;
+ };
+ };
class kat_naloxone: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Naloxone_Box_Display);
@@ -223,4 +267,70 @@ class CfgWeapons {
mass = 1;
};
};
+ class kat_10ml_syringe_txa_1: ACE_ItemCore {
+ scope = 1;
+ displayName = CSTRING(Syringe_10_txa_1_Display);
+ picture = QPATHTOF(ui\icon_fast_io.paa);
+ model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
+ descriptionShort = CSTRING(Syringe_10_txa_1_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 1;
+ };
+ };
+ class kat_10ml_syringe_txa_2: ACE_ItemCore {
+ scope = 1;
+ displayName = CSTRING(Syringe_10_txa_2_Display);
+ picture = QPATHTOF(ui\icon_fast_io.paa);
+ model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
+ descriptionShort = CSTRING(Syringe_10_txa_2_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 1;
+ };
+ };
+ class kat_5ml_syringe_txa_1: ACE_ItemCore {
+ scope = 1;
+ displayName = CSTRING(Syringe_10_txa_1_Display);
+ picture = QPATHTOF(ui\icon_fast_io.paa);
+ model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
+ descriptionShort = CSTRING(Syringe_10_txa_1_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 1;
+ };
+ };
+ class kat_5ml_syringe_txa_2: ACE_ItemCore {
+ scope = 1;
+ displayName = CSTRING(Syringe_10_txa_2_Display);
+ picture = QPATHTOF(ui\icon_fast_io.paa);
+ model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
+ descriptionShort = CSTRING(Syringe_10_txa_2_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 1;
+ };
+ };
+ class kat_5ml_syringe_eaca_1: ACE_ItemCore {
+ scope = 1;
+ displayName = CSTRING(Syringe_10_eaca_1_Display);
+ picture = QPATHTOF(ui\icon_fast_io.paa);
+ model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
+ descriptionShort = CSTRING(Syringe_10_eaca_1_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 1;
+ };
+ };
+ class kat_5ml_syringe_eaca_2: ACE_ItemCore {
+ scope = 1;
+ displayName = CSTRING(Syringe_10_eaca_2_Display);
+ picture = QPATHTOF(ui\icon_fast_io.paa);
+ model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
+ descriptionShort = CSTRING(Syringe_10_eaca_2_DescShort);
+ ACE_isMedicalItem = 1;
+ class ItemInfo: CBA_MiscItem_ItemInfo {
+ mass = 1;
+ };
+ };
};
diff --git a/addons/pharma/config.cpp b/addons/pharma/config.cpp
index 2e35ef27e..8aaaf224f 100644
--- a/addons/pharma/config.cpp
+++ b/addons/pharma/config.cpp
@@ -12,6 +12,10 @@ class CfgPatches {
"kat_Painkiller",
"kat_PainkillerItem",
"kat_IV_16",
+ "kat_IV_14",
+ "kat_IV_20",
+ "kat_10ml_syringe",
+ "kat_5ml_syringe",
"kat_IO_FAST",
"kat_Carbonate",
"kat_CarbonateItem",
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 5ff2d7243..4dc410fa9 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -862,6 +862,40 @@
16g IV
16g IV
+
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14g IV
+ 14r IV
+ 14g IV
+ 14g IV
+
+
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20g IV
+ 20r IV
+ 20g IV
+ 20g IV
+
Intravenous Needle
Intravenöse Kanüle
@@ -3724,5 +3758,53 @@
Administrar Epinefrina
Administrer l'épinéphrine
+
+ 5ml Syringe
+
+
+ For IV medications
+
+
+ 10ml Syringe
+
+
+ For IM medications
+
+
+ 10ml Syringe/1g TXA
+
+
+ 10ml Syringe loaded with 1 gram of TXA
+
+
+ 10ml Syringe/2g TXA
+
+
+ 10ml Syringe loaded with 2 grams of TXA
+
+
+ 5ml Syringe/1g TXA
+
+
+ 5ml Syringe loaded with 1 gram of TXA
+
+
+ 5ml Syringe/2g TXA
+
+
+ 5ml Syringe loaded with 2 grams of TXA
+
+
+ 5ml Syringe/7.5g EACA
+
+
+ 5ml Syringe loaded with 7.5 grams of EACA
+
+
+ 5ml Syringe/15g EACA
+
+
+ 5ml Syringe loaded with 15 grams of EACA
+
From e7c7563878ef1a774813c5ac71bd20fe6444fdcc Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:23:28 -0700
Subject: [PATCH 002/149] Update CfgWeapons.hpp
---
addons/pharma/CfgWeapons.hpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/addons/pharma/CfgWeapons.hpp b/addons/pharma/CfgWeapons.hpp
index 3576176dd..b95580a98 100644
--- a/addons/pharma/CfgWeapons.hpp
+++ b/addons/pharma/CfgWeapons.hpp
@@ -268,7 +268,7 @@ class CfgWeapons {
};
};
class kat_10ml_syringe_txa_1: ACE_ItemCore {
- scope = 1;
+ scope = 2;
displayName = CSTRING(Syringe_10_txa_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
@@ -279,7 +279,7 @@ class CfgWeapons {
};
};
class kat_10ml_syringe_txa_2: ACE_ItemCore {
- scope = 1;
+ scope = 2;
displayName = CSTRING(Syringe_10_txa_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
@@ -290,7 +290,7 @@ class CfgWeapons {
};
};
class kat_5ml_syringe_txa_1: ACE_ItemCore {
- scope = 1;
+ scope = 2;
displayName = CSTRING(Syringe_10_txa_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
@@ -301,7 +301,7 @@ class CfgWeapons {
};
};
class kat_5ml_syringe_txa_2: ACE_ItemCore {
- scope = 1;
+ scope = 2;
displayName = CSTRING(Syringe_10_txa_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
@@ -312,7 +312,7 @@ class CfgWeapons {
};
};
class kat_5ml_syringe_eaca_1: ACE_ItemCore {
- scope = 1;
+ scope = 2;
displayName = CSTRING(Syringe_10_eaca_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
@@ -323,7 +323,7 @@ class CfgWeapons {
};
};
class kat_5ml_syringe_eaca_2: ACE_ItemCore {
- scope = 1;
+ scope = 2;
displayName = CSTRING(Syringe_10_eaca_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
From 273aa6e07283379e56f75fdf6ed5629d832a2ec7 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:32:49 -0700
Subject: [PATCH 003/149] Update CfgWeapons.hpp
---
addons/pharma/CfgWeapons.hpp | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/addons/pharma/CfgWeapons.hpp b/addons/pharma/CfgWeapons.hpp
index b95580a98..c6c7c4104 100644
--- a/addons/pharma/CfgWeapons.hpp
+++ b/addons/pharma/CfgWeapons.hpp
@@ -291,10 +291,10 @@ class CfgWeapons {
};
class kat_5ml_syringe_txa_1: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_10_txa_1_Display);
+ displayName = CSTRING(Syringe_5_txa_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_10_txa_1_DescShort);
+ descriptionShort = CSTRING(Syringe_5_txa_1_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
@@ -302,10 +302,10 @@ class CfgWeapons {
};
class kat_5ml_syringe_txa_2: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_10_txa_2_Display);
+ displayName = CSTRING(Syringe_5_txa_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_10_txa_2_DescShort);
+ descriptionShort = CSTRING(Syringe_5_txa_2_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
@@ -313,10 +313,10 @@ class CfgWeapons {
};
class kat_5ml_syringe_eaca_1: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_10_eaca_1_Display);
+ displayName = CSTRING(Syringe_5_eaca_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_10_eaca_1_DescShort);
+ descriptionShort = CSTRING(Syringe_5_eaca_1_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
@@ -324,10 +324,10 @@ class CfgWeapons {
};
class kat_5ml_syringe_eaca_2: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_10_eaca_2_Display);
+ displayName = CSTRING(Syringe_5_eaca_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_10_eaca_2_DescShort);
+ descriptionShort = CSTRING(Syringe_5_eaca_2_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
From 4be680f64d4e10de5cf4a9905fb0ed62aeacadcf Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:38:42 -0700
Subject: [PATCH 004/149] Updates to stringtable
---
.../pharma/ACE_Medical_Treatment_Actions.hpp | 20 +++++++----
addons/pharma/stringtable.xml | 36 +++++++++++++++++++
2 files changed, 49 insertions(+), 7 deletions(-)
diff --git a/addons/pharma/ACE_Medical_Treatment_Actions.hpp b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
index 17ed53436..9b8404337 100644
--- a/addons/pharma/ACE_Medical_Treatment_Actions.hpp
+++ b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
@@ -414,7 +414,8 @@ class ACE_Medical_Treatment_Actions {
litter[] = {};
};
class EACA_IV_1: Carbonate {
- displayName = CSTRING(push_EACA_1);
+ displayName = CSTRING(push_EACA_IV_1);
+ displayNameProgress = CSTRING(pushing_EACA_IV_1);
allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
@@ -425,7 +426,9 @@ class ACE_Medical_Treatment_Actions {
sounds[] = {};
};
class EACA_IV_2: EACA_IV_1 {
- displayName = CSTRING(take_EACA_2);
+ displayName = CSTRING(push_EACA_IV_2);
+ displayNameProgress = CSTRING(pushing_EACA_IV_2);
+ inject
allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
@@ -435,7 +438,7 @@ class ACE_Medical_Treatment_Actions {
sounds[] = {};
};
class TXA_IM_1: Carbonate {
- displayName = CSTRING(take_TXA_1);
+ displayName = CSTRING(inject_TXA_IM_1);
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
@@ -445,7 +448,8 @@ class ACE_Medical_Treatment_Actions {
sounds[] = {};
};
class TXA_IM_2: TXA_IM_1 {
- displayName = CSTRING(take_TXA_2);
+ displayName = CSTRING(inject_TXA_IM_2);
+ displayNameProgress = CSTRING(injecting_TXA_IV_2);
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
@@ -454,8 +458,9 @@ class ACE_Medical_Treatment_Actions {
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
- class TXA_IV_1: EACA {
- displayName = CSTRING(Take_TXA);
+ class TXA_IV_1: EACA_IV_1 {
+ displayName = CSTRING(push_TXA_IV_1);
+ displayNameProgress = CSTRING(pushing_TXA_IV_1);
allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_TXA);
@@ -466,7 +471,8 @@ class ACE_Medical_Treatment_Actions {
sounds[] = {};
};
class TXA_IV_2: TXA_IV_1 {
- displayName = CSTRING(Take_TXA);
+ displayName = CSTRING(push_TXA_IV_2);
+ displayNameProgress = CSTRING(pushing_TXA_IV_2);
items[] = {"kat_5ml_syringe_txa_2"};
callbackSuccess = QFUNC(medication);
sounds[] = {};
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 4dc410fa9..4febeb8ed 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3806,5 +3806,41 @@
5ml Syringe loaded with 15 grams of EACA
+
+ Push 1g TXA IV
+
+
+ Push 2g TXA IV
+
+
+ Push 7.5g EACA IV
+
+
+ Push 15g EACA IV
+
+
+ Inject 1g TXA IM
+
+
+ Inject 2g TXA IM
+
+
+ Pushing 1g TXA IV
+
+
+ Pushing 2g TXA IV
+
+
+ Pushing 7.5g EACA IV
+
+
+ Pushing 15g EACA IV
+
+
+ Injecting 1g TXA IM
+
+
+ Injecting 2g TXA IM
+
From 707cecb5e17f24a5deafa6cf248a7c910f813b68 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:40:19 -0700
Subject: [PATCH 005/149] Fix
---
addons/pharma/ACE_Medical_Treatment_Actions.hpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/addons/pharma/ACE_Medical_Treatment_Actions.hpp b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
index 9b8404337..b72e0989b 100644
--- a/addons/pharma/ACE_Medical_Treatment_Actions.hpp
+++ b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
@@ -428,7 +428,6 @@ class ACE_Medical_Treatment_Actions {
class EACA_IV_2: EACA_IV_1 {
displayName = CSTRING(push_EACA_IV_2);
displayNameProgress = CSTRING(pushing_EACA_IV_2);
- inject
allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
From 34e0ed551e2ed51ca52e274e88ee5931a74f3d36 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:44:49 -0700
Subject: [PATCH 006/149] Update stringtable.xml
---
addons/pharma/stringtable.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 4febeb8ed..9ef9a0857 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3794,16 +3794,16 @@
5ml Syringe loaded with 2 grams of TXA
-
+
5ml Syringe/7.5g EACA
-
+
5ml Syringe loaded with 7.5 grams of EACA
-
+
5ml Syringe/15g EACA
-
+
5ml Syringe loaded with 15 grams of EACA
From 8d0eb59db2ba9c32fcf6c1d8abb7a278a5f75162 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:48:55 -0700
Subject: [PATCH 007/149] Fixes
---
addons/pharma/ACE_Medical_Treatment_Actions.hpp | 3 ++-
addons/pharma/stringtable.xml | 8 ++++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/addons/pharma/ACE_Medical_Treatment_Actions.hpp b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
index b72e0989b..f92967951 100644
--- a/addons/pharma/ACE_Medical_Treatment_Actions.hpp
+++ b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
@@ -438,6 +438,7 @@ class ACE_Medical_Treatment_Actions {
};
class TXA_IM_1: Carbonate {
displayName = CSTRING(inject_TXA_IM_1);
+ displayNameProgress = CSTRING(injecting_TXA_IM_1);
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
@@ -448,7 +449,7 @@ class ACE_Medical_Treatment_Actions {
};
class TXA_IM_2: TXA_IM_1 {
displayName = CSTRING(inject_TXA_IM_2);
- displayNameProgress = CSTRING(injecting_TXA_IV_2);
+ displayNameProgress = CSTRING(injecting_TXA_IM_2);
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 9ef9a0857..1fb6cf761 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3818,10 +3818,10 @@
Push 15g EACA IV
-
+
Inject 1g TXA IM
-
+
Inject 2g TXA IM
@@ -3836,10 +3836,10 @@
Pushing 15g EACA IV
-
+
Injecting 1g TXA IM
-
+
Injecting 2g TXA IM
From 29f1cee07347204357fab74988874736edcf1bfa Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 19:57:41 -0700
Subject: [PATCH 008/149] Update config.cpp
---
addons/pharma/config.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/addons/pharma/config.cpp b/addons/pharma/config.cpp
index 8aaaf224f..7677dbfcf 100644
--- a/addons/pharma/config.cpp
+++ b/addons/pharma/config.cpp
@@ -36,7 +36,13 @@ class CfgPatches {
"kat_flumazenil",
"kat_lorazepam",
"kat_etomidate",
- "kat_epinephrineIV"
+ "kat_epinephrineIV",
+ "kat_10ml_syringe_txa_1",
+ "kat_5ml_syringe_txa_1",
+ "kat_10ml_syringe_txa_2",
+ "kat_5ml_syringe_txa_2",
+ "kat_5ml_syringe_eaca_1",
+ "kat_5ml_syringe_eaca_2"
};
magazines[] = { };
requiredAddons[] = {
From 7aaaa29f15b99fe4335c668fb159ad8b3f0d75e1 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 4 Sep 2024 20:02:29 -0700
Subject: [PATCH 009/149] Fixes for stringtable
---
addons/pharma/stringtable.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 1fb6cf761..efcfb521c 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3824,16 +3824,16 @@
Inject 2g TXA IM
-
+
Pushing 1g TXA IV
-
+
Pushing 2g TXA IV
-
+
Pushing 7.5g EACA IV
-
+
Pushing 15g EACA IV
From 41537a92f7f0b6f6ab1be776bbac3cc82d0d353e Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Sun, 8 Sep 2024 13:28:40 -0700
Subject: [PATCH 010/149] fix
---
addons/pharma/ACE_Medical_Treatment.hpp | 12 ++++-----
.../pharma/ACE_Medical_Treatment_Actions.hpp | 12 ++++-----
addons/pharma/CfgWeapons.hpp | 26 +++++++++----------
addons/pharma/stringtable.xml | 24 ++++++++---------
4 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/addons/pharma/ACE_Medical_Treatment.hpp b/addons/pharma/ACE_Medical_Treatment.hpp
index a42e97b77..6112ed71e 100644
--- a/addons/pharma/ACE_Medical_Treatment.hpp
+++ b/addons/pharma/ACE_Medical_Treatment.hpp
@@ -335,7 +335,7 @@ class ACE_ADDON(Medical_Treatment) {
onOverDose = "";
maxRelief = 0.6;
};
- class 5ml_syringe_txa_1 {
+ class syringe_txa_5ml__1 {
painReduce = 0;
hrIncreaseLow[] = {0, 0};
hrIncreaseNormal[] = {0, 0};
@@ -347,7 +347,7 @@ class ACE_ADDON(Medical_Treatment) {
viscosityChange = 0;
onOverDose = "";
};
- class 5ml_syringe_txa_2 {
+ class syringe_txa_5ml__2 {
painReduce = 0;
hrIncreaseLow[] = {0, 0};
hrIncreaseNormal[] = {0, 0};
@@ -359,7 +359,7 @@ class ACE_ADDON(Medical_Treatment) {
viscosityChange = 0;
onOverDose = "";
};
- class 10ml_syringe_txa_1 {
+ class syringe_txa_10ml_1 {
painReduce = 0;
hrIncreaseLow[] = {0, 0};
hrIncreaseNormal[] = {0, 0};
@@ -371,7 +371,7 @@ class ACE_ADDON(Medical_Treatment) {
viscosityChange = 0;
onOverDose = "";
};
- class 10ml_syringe_txa_2 {
+ class syringe_txa_10ml_2 {
painReduce = 0;
hrIncreaseLow[] = {0, 0};
hrIncreaseNormal[] = {0, 0};
@@ -383,7 +383,7 @@ class ACE_ADDON(Medical_Treatment) {
viscosityChange = 0;
onOverDose = "";
};
- class 5ml_syringe_eaca_1 {
+ class syringe_eaca_5ml_1 {
painReduce = 0;
hrIncreaseLow[] = {0, 0};
hrIncreaseNormal[] = {0, 0};
@@ -395,7 +395,7 @@ class ACE_ADDON(Medical_Treatment) {
viscosityChange = 0;
onOverDose = "";
};
- class 5ml_syringe_eaca_2 {
+ class syringe_eaca_5ml_2 {
painReduce = 0;
hrIncreaseLow[] = {0, 0};
hrIncreaseNormal[] = {0, 0};
diff --git a/addons/pharma/ACE_Medical_Treatment_Actions.hpp b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
index f92967951..fb05818ed 100644
--- a/addons/pharma/ACE_Medical_Treatment_Actions.hpp
+++ b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
@@ -420,7 +420,7 @@ class ACE_Medical_Treatment_Actions {
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
treatmentTime = QGVAR(treatmentTime_EACA);
- items[] = {"kat_5ml_syringe_eaca_1"};
+ items[] = {"kat_syringe_eaca_5ml_1"};
condition = QUOTE(!(GVAR(MedicationsRequireInsIV)) || FUNC(removeIV));
callbackSuccess = QFUNC(medication);
sounds[] = {};
@@ -432,7 +432,7 @@ class ACE_Medical_Treatment_Actions {
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
treatmentTime = QGVAR(treatmentTime_EACA);
- items[] = {"kat_5ml_syringe_eaca_2"};
+ items[] = {"kat_syringe_eaca_5ml_2"};
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
@@ -443,7 +443,7 @@ class ACE_Medical_Treatment_Actions {
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
treatmentTime = QGVAR(treatmentTime_EACA);
- items[] = {"kat_10ml_syringe_txa_1"};
+ items[] = {"kat_syringe_txa_10ml_1"};
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
@@ -454,7 +454,7 @@ class ACE_Medical_Treatment_Actions {
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_EACA);
treatmentTime = QGVAR(treatmentTime_EACA);
- items[] = {"kat_10ml_syringe_txa_2"};
+ items[] = {"kat_syringe_txa_10ml_2"};
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
@@ -466,14 +466,14 @@ class ACE_Medical_Treatment_Actions {
medicRequired = QGVAR(medLvl_TXA);
treatmentTime = QGVAR(treatmentTime_TXA);
condition = QUOTE(!(GVAR(MedicationsRequireInsIV)) || FUNC(removeIV));
- items[] = {"kat_5ml_syringe_txa_1"};
+ items[] = {"kat_syringe_txa_5ml_1"};
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
class TXA_IV_2: TXA_IV_1 {
displayName = CSTRING(push_TXA_IV_2);
displayNameProgress = CSTRING(pushing_TXA_IV_2);
- items[] = {"kat_5ml_syringe_txa_2"};
+ items[] = {"kat_syringe_txa_5ml_2"};
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
diff --git a/addons/pharma/CfgWeapons.hpp b/addons/pharma/CfgWeapons.hpp
index c6c7c4104..f8deb5fcc 100644
--- a/addons/pharma/CfgWeapons.hpp
+++ b/addons/pharma/CfgWeapons.hpp
@@ -267,12 +267,12 @@ class CfgWeapons {
mass = 1;
};
};
- class kat_10ml_syringe_txa_1: ACE_ItemCore {
+ class kat_syringe_txa_10ml_1: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_10_txa_1_Display);
+ displayName = CSTRING(Syringe_txa_10_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_10_txa_1_DescShort);
+ descriptionShort = CSTRING(Syringe_txa_10_1_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
@@ -280,10 +280,10 @@ class CfgWeapons {
};
class kat_10ml_syringe_txa_2: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_10_txa_2_Display);
+ displayName = CSTRING(Syringe_txa_10_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_10_txa_2_DescShort);
+ descriptionShort = CSTRING(Syringe_txa_10_2_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
@@ -291,10 +291,10 @@ class CfgWeapons {
};
class kat_5ml_syringe_txa_1: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_5_txa_1_Display);
+ displayName = CSTRING(Syringe_txa_5_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_5_txa_1_DescShort);
+ descriptionShort = CSTRING(Syringe_txa_5_1_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
@@ -302,10 +302,10 @@ class CfgWeapons {
};
class kat_5ml_syringe_txa_2: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_5_txa_2_Display);
+ displayName = CSTRING(Syringe_txa_5_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_5_txa_2_DescShort);
+ descriptionShort = CSTRING(Syringe_txa_5_2_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
@@ -313,10 +313,10 @@ class CfgWeapons {
};
class kat_5ml_syringe_eaca_1: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_5_eaca_1_Display);
+ displayName = CSTRING(Syringe_eaca_5_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_5_eaca_1_DescShort);
+ descriptionShort = CSTRING(Syringe_eaca_5_1_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
@@ -324,10 +324,10 @@ class CfgWeapons {
};
class kat_5ml_syringe_eaca_2: ACE_ItemCore {
scope = 2;
- displayName = CSTRING(Syringe_5_eaca_2_Display);
+ displayName = CSTRING(Syringe_eaca_5_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
- descriptionShort = CSTRING(Syringe_5_eaca_2_DescShort);
+ descriptionShort = CSTRING(Syringe_eaca_5_2_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index efcfb521c..9d4a56ae3 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3770,40 +3770,40 @@
For IM medications
-
+
10ml Syringe/1g TXA
-
+
10ml Syringe loaded with 1 gram of TXA
-
+
10ml Syringe/2g TXA
-
+
10ml Syringe loaded with 2 grams of TXA
-
+
5ml Syringe/1g TXA
-
+
5ml Syringe loaded with 1 gram of TXA
-
+
5ml Syringe/2g TXA
-
+
5ml Syringe loaded with 2 grams of TXA
-
+
5ml Syringe/7.5g EACA
-
+
5ml Syringe loaded with 7.5 grams of EACA
-
+
5ml Syringe/15g EACA
-
+
5ml Syringe loaded with 15 grams of EACA
From 13789ad66c19ba6947f718c987dbdba39e3687da Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Mon, 9 Sep 2024 23:41:09 -0700
Subject: [PATCH 011/149] IV
---
addons/pharma/functions/fnc_applyIV.sqf | 31 ++++++++++++++++++++++++-
addons/pharma/stringtable.xml | 6 ++---
2 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index e491ed6bc..c32111c04 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -38,7 +38,36 @@ if (_IVpfhActual > 0) then {
_IVpfh set [_partIndex, _IVpfhActual];
_patient setVariable [QGVAR(IVpfh), _IVpfh, true];
};
+switch (_usedItem) do {
+ case _usedItem isEqualTo "kat_IV_16": { _IVarray set [_partIndex, 2];
+ _patient setVariable [QGVAR(IV), _IVarray, true];
+
+ [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "16g IV"]] call ACEFUNC(medical_treatment,addToLog);
+ [_patient, "16g IV"] call ACEFUNC(medical_treatment,addToTriageCard); };
+ case _usedItem isEqualTo "kat_IV_14": { _IVarray set [_partIndex, 2];
+ _patient setVariable [QGVAR(IV), _IVarray, true];
+
+ [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "14g IV"]] call ACEFUNC(medical_treatment,addToLog);
+ [_patient, "14g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
+ case _usedItem isEqualTo "kat_IV_20": { _IVarray set [_partIndex, 2];
+ _patient setVariable [QGVAR(IV), _IVarray, true];
+
+ [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "20g IV"]] call ACEFUNC(medical_treatment,addToLog);
+ [_patient, "20g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
+ default { _IVarray set [_partIndex, 1];
+ _patient setVariable [QGVAR(IV), _IVarray, true];
+
+ private _lidocaineCount = [_patient, "Lidocaine", false] call ACEFUNC(medical_status,getMedicationCount);
+ private _morphineCount = [_patient, "Morphine", false] call ACEFUNC(medical_status,getMedicationCount);
+ private _nalbuphineCount = [_patient, "Nalbuphine", false] call ACEFUNC(medical_status,getMedicationCount);
+ private _fentanylCount = [_patient, "Fentanyl", false] call ACEFUNC(medical_status,getMedicationCount);
+ private _ketamineCount = [_patient, "Ketamine", false] call ACEFUNC(medical_status,getMedicationCount);
+ if (_lidocaineCount <= 0.6 && _morphineCount <= 0.6 && _nalbuphineCount <= 0.6 && _fentanylCount <= 0.6 && _ketamineCount <= 0.6) then {[_patient, 0.8] call ACEFUNC(medical_status,adjustPainLevel)};
+ [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "FAST IO"]] call ACEFUNC(medical_treatment,addToLog);
+ [_patient, "FAST IO"] call ACEFUNC(medical_treatment,addToTriageCard);
+ };
+};
if (_usedItem isEqualTo "kat_IV_16") then {
_IVarray set [_partIndex, 2];
_patient setVariable [QGVAR(IV), _IVarray, true];
@@ -60,7 +89,7 @@ if (_usedItem isEqualTo "kat_IV_16") then {
[_patient, "FAST IO"] call ACEFUNC(medical_treatment,addToTriageCard);
};
-if (GVAR(IVdropEnable) && (_usedItem isEqualTo "kat_IV_16")) then {
+if (GVAR(IVdropEnable) && ((_usedItem isEqualTo "kat_IV_16") || (_usedItem isEqualTo "kat_IV_14") || (_usedItem isEqualTo "kat_IV_20"))) then {
[{
params ["_patient", "_partIndex", "_IVpfhActual"];
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 9d4a56ae3..487cfbf0d 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3785,10 +3785,10 @@
5ml Syringe/1g TXA
-
+
5ml Syringe loaded with 1 gram of TXA
-
+
5ml Syringe/2g TXA
@@ -3797,7 +3797,7 @@
5ml Syringe/7.5g EACA
-
+
5ml Syringe loaded with 7.5 grams of EACA
From ff2eba33ed816e0dedd32640d892abc5e6c8c591 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Mon, 9 Sep 2024 23:47:55 -0700
Subject: [PATCH 012/149] iv actions
---
.hemtt/launch.toml | 1 +
.../pharma/ACE_Medical_Treatment_Actions.hpp | 26 +++++++++++++++++++
addons/pharma/stringtable.xml | 6 +++++
3 files changed, 33 insertions(+)
diff --git a/.hemtt/launch.toml b/.hemtt/launch.toml
index 662ac1232..d5c0d1c2d 100644
--- a/.hemtt/launch.toml
+++ b/.hemtt/launch.toml
@@ -3,4 +3,5 @@ workshop = [
"450814997", # CBA_A3's Workshop ID
"463939057", # ACE3's Workshop ID
"2369477168", # Advanced Developer Tools's Workshop ID
+ ""1779063631", # ZEN
]
\ No newline at end of file
diff --git a/addons/pharma/ACE_Medical_Treatment_Actions.hpp b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
index fb05818ed..7f77ad9f5 100644
--- a/addons/pharma/ACE_Medical_Treatment_Actions.hpp
+++ b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
@@ -309,6 +309,32 @@ class ACE_Medical_Treatment_Actions {
litter[] = {};
sounds[] = {};
};
+ class Apply14IV: ApplyIV {
+ displayName = CSTRING(Apply_IV_14);
+ displayNameProgress = CSTRING(Applying_IV);
+ medicRequired = QGVAR(medLvl_ApplyIV);
+ category = "advanced";
+ allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
+ items[] = {"kat_IV_14"};
+ condition = QUOTE(!([ARR_3(_player,_patient,_bodyPart)] call FUNC(removeIV)));
+ treatmentTime = QGVAR(treatmentTime_ApplyIV);
+ callbackSuccess = QUOTE([ARR_4(_player,_patient,_bodyPart,'kat_IV_14')] call FUNC(applyIV));
+ litter[] = {};
+ sounds[] = {};
+ };
+ class Apply20IV: ApplyIV {
+ displayName = CSTRING(Apply_IV_20);
+ displayNameProgress = CSTRING(Applying_IV);
+ medicRequired = QGVAR(medLvl_ApplyIV);
+ category = "advanced";
+ allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
+ items[] = {"kat_IV_20"};
+ condition = QUOTE(!([ARR_3(_player,_patient,_bodyPart)] call FUNC(removeIV)));
+ treatmentTime = QGVAR(treatmentTime_ApplyIV);
+ callbackSuccess = QUOTE([ARR_4(_player,_patient,_bodyPart,'kat_IV_14')] call FUNC(applyIV));
+ litter[] = {};
+ sounds[] = {};
+ };
class ApplyIO: ApplyIV {
displayName = CSTRING(Apply_IO_45);
displayNameProgress = CSTRING(Applying_IV);
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 487cfbf0d..35b73aad7 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3842,5 +3842,11 @@
Injecting 2g TXA IM
+
+ Establish 14g IV
+
+
+ Establish 20g IV
+
From 873b5428852392bcf839ec02c7eda120af42a76f Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Mon, 9 Sep 2024 23:50:37 -0700
Subject: [PATCH 013/149] Update launch.toml
---
.hemtt/launch.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.hemtt/launch.toml b/.hemtt/launch.toml
index d5c0d1c2d..9103063db 100644
--- a/.hemtt/launch.toml
+++ b/.hemtt/launch.toml
@@ -3,5 +3,5 @@ workshop = [
"450814997", # CBA_A3's Workshop ID
"463939057", # ACE3's Workshop ID
"2369477168", # Advanced Developer Tools's Workshop ID
- ""1779063631", # ZEN
+ "1779063631", # ZEN
]
\ No newline at end of file
From e73d64b81ee7bb2ff4610f191a9223f43eab7325 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Mon, 9 Sep 2024 23:58:34 -0700
Subject: [PATCH 014/149] Update fnc_applyIV.sqf
---
addons/pharma/functions/fnc_applyIV.sqf | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index c32111c04..dac5e38aa 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -39,22 +39,22 @@ if (_IVpfhActual > 0) then {
_patient setVariable [QGVAR(IVpfh), _IVpfh, true];
};
switch (_usedItem) do {
- case _usedItem isEqualTo "kat_IV_16": { _IVarray set [_partIndex, 2];
- _patient setVariable [QGVAR(IV), _IVarray, true];
-
- [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "16g IV"]] call ACEFUNC(medical_treatment,addToLog);
- [_patient, "16g IV"] call ACEFUNC(medical_treatment,addToTriageCard); };
- case _usedItem isEqualTo "kat_IV_14": { _IVarray set [_partIndex, 2];
+ case "kat_IV_16": {
+ _IVarray set [_partIndex, 2];
+ _patient setVariable [QGVAR(IV), _IVarray, true];
+ [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "16g IV"]] call ACEFUNC(medical_treatment,addToLog);
+ [_patient, "16g IV"] call ACEFUNC(medical_treatment,addToTriageCard); };
+ case "kat_IV_14": { _IVarray set [_partIndex, 2];
_patient setVariable [QGVAR(IV), _IVarray, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "14g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "14g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
- case _usedItem isEqualTo "kat_IV_20": { _IVarray set [_partIndex, 2];
+ case "kat_IV_20": { _IVarray set [_partIndex, 2];
_patient setVariable [QGVAR(IV), _IVarray, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "20g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "20g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
- default { _IVarray set [_partIndex, 1];
+ case "kat_IO_FAST" {_IVarray set [_partIndex, 1];
_patient setVariable [QGVAR(IV), _IVarray, true];
private _lidocaineCount = [_patient, "Lidocaine", false] call ACEFUNC(medical_status,getMedicationCount);
@@ -65,8 +65,8 @@ switch (_usedItem) do {
if (_lidocaineCount <= 0.6 && _morphineCount <= 0.6 && _nalbuphineCount <= 0.6 && _fentanylCount <= 0.6 && _ketamineCount <= 0.6) then {[_patient, 0.8] call ACEFUNC(medical_status,adjustPainLevel)};
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "FAST IO"]] call ACEFUNC(medical_treatment,addToLog);
- [_patient, "FAST IO"] call ACEFUNC(medical_treatment,addToTriageCard);
- };
+ [_patient, "FAST IO"] call ACEFUNC(medical_treatment,addToTriageCard);};
+ default {};
};
if (_usedItem isEqualTo "kat_IV_16") then {
_IVarray set [_partIndex, 2];
From 06492d6df76658ae4591e7efcd0dc5ef72daa686 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 00:02:59 -0700
Subject: [PATCH 015/149] Update fnc_applyIV.sqf
---
addons/pharma/functions/fnc_applyIV.sqf | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index dac5e38aa..6e6bd97d0 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -54,7 +54,8 @@ switch (_usedItem) do {
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "20g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "20g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
- case "kat_IO_FAST" {_IVarray set [_partIndex, 1];
+ case "kat_IO_FAST" {
+ _IVarray set [_partIndex, 1];
_patient setVariable [QGVAR(IV), _IVarray, true];
private _lidocaineCount = [_patient, "Lidocaine", false] call ACEFUNC(medical_status,getMedicationCount);
From 52567c602d3177bfb41b3d1a67b8a579e40b8c5d Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 00:04:28 -0700
Subject: [PATCH 016/149] Update fnc_applyIV.sqf
---
addons/pharma/functions/fnc_applyIV.sqf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index 6e6bd97d0..0e5aa0770 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -54,7 +54,7 @@ switch (_usedItem) do {
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "20g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "20g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
- case "kat_IO_FAST" {
+ case "kat_IO_FAST": {
_IVarray set [_partIndex, 1];
_patient setVariable [QGVAR(IV), _IVarray, true];
From a444afbc4bdfa38bdf8fc8b2c4c17f11f44eae6d Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 00:11:58 -0700
Subject: [PATCH 017/149] Update fnc_applyIV.sqf
---
addons/pharma/functions/fnc_applyIV.sqf | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index 0e5aa0770..619ad9572 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -69,26 +69,6 @@ switch (_usedItem) do {
[_patient, "FAST IO"] call ACEFUNC(medical_treatment,addToTriageCard);};
default {};
};
-if (_usedItem isEqualTo "kat_IV_16") then {
- _IVarray set [_partIndex, 2];
- _patient setVariable [QGVAR(IV), _IVarray, true];
-
- [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "16g IV"]] call ACEFUNC(medical_treatment,addToLog);
- [_patient, "16g IV"] call ACEFUNC(medical_treatment,addToTriageCard);
-} else {
- _IVarray set [_partIndex, 1];
- _patient setVariable [QGVAR(IV), _IVarray, true];
-
- private _lidocaineCount = [_patient, "Lidocaine", false] call ACEFUNC(medical_status,getMedicationCount);
- private _morphineCount = [_patient, "Morphine", false] call ACEFUNC(medical_status,getMedicationCount);
- private _nalbuphineCount = [_patient, "Nalbuphine", false] call ACEFUNC(medical_status,getMedicationCount);
- private _fentanylCount = [_patient, "Fentanyl", false] call ACEFUNC(medical_status,getMedicationCount);
- private _ketamineCount = [_patient, "Ketamine", false] call ACEFUNC(medical_status,getMedicationCount);
- if (_lidocaineCount <= 0.6 && _morphineCount <= 0.6 && _nalbuphineCount <= 0.6 && _fentanylCount <= 0.6 && _ketamineCount <= 0.6) then {[_patient, 0.8] call ACEFUNC(medical_status,adjustPainLevel)};
-
- [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "FAST IO"]] call ACEFUNC(medical_treatment,addToLog);
- [_patient, "FAST IO"] call ACEFUNC(medical_treatment,addToTriageCard);
-};
if (GVAR(IVdropEnable) && ((_usedItem isEqualTo "kat_IV_16") || (_usedItem isEqualTo "kat_IV_14") || (_usedItem isEqualTo "kat_IV_20"))) then {
[{
From ffa00c747e82248e79e3f0d282c9ba23712c3e86 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 00:24:39 -0700
Subject: [PATCH 018/149] Removal
---
addons/pharma/functions/fnc_applyIV.sqf | 13 +++++++------
addons/pharma/functions/fnc_retrieveIV.sqf | 11 ++++++-----
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index 619ad9572..6f4695fc2 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -44,12 +44,12 @@ switch (_usedItem) do {
_patient setVariable [QGVAR(IV), _IVarray, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "16g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "16g IV"] call ACEFUNC(medical_treatment,addToTriageCard); };
- case "kat_IV_14": { _IVarray set [_partIndex, 2];
+ case "kat_IV_14": { _IVarray set [_partIndex, 3];
_patient setVariable [QGVAR(IV), _IVarray, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "14g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "14g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
- case "kat_IV_20": { _IVarray set [_partIndex, 2];
+ case "kat_IV_20": { _IVarray set [_partIndex, 4];
_patient setVariable [QGVAR(IV), _IVarray, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "20g IV"]] call ACEFUNC(medical_treatment,addToLog);
@@ -94,10 +94,11 @@ if (GVAR(IVdropEnable) && ((_usedItem isEqualTo "kat_IV_16") || (_usedItem isEqu
private _IVactual = _IVarray select _partIndex;
if(GVAR(IVreuse)) then {
- if (_IVactual == 1) then {
- _patient addItem "kat_IO_FAST";
- } else {
- _patient addItem "kat_IV_16";
+ switch (_IVactual) do {
+ case "1":{_patient addItem "kat_IO_FAST"}
+ case "2":{_patient addItem "kat_IV_16"}
+ case "3":{_patient addItem "kat_IV_14"}
+ case "4":{_patient addItem "kat_IV_20"}
};
};
diff --git a/addons/pharma/functions/fnc_retrieveIV.sqf b/addons/pharma/functions/fnc_retrieveIV.sqf
index a3e68c693..b181645d0 100644
--- a/addons/pharma/functions/fnc_retrieveIV.sqf
+++ b/addons/pharma/functions/fnc_retrieveIV.sqf
@@ -25,11 +25,12 @@ private _newArray = _patient getVariable [QACEGVAR(medical,ivBags), []];
private _IVactual = _IVarray select _partIndex;
if(GVAR(IVreuse)) then {
- if (_IVactual == 1) then {
- _medic addItem "kat_IO_FAST";
- } else {
- _medic addItem "kat_IV_16";
- };
+ switch (_IVactual) do {
+ case "1":{_patient addItem "kat_IO_FAST"}
+ case "2":{_patient addItem "kat_IV_16"}
+ case "3":{_patient addItem "kat_IV_14"}
+ case "4":{_patient addItem "kat_IV_20"}
+ };
};
_IVarray set [_partIndex, 0];
From 5ed12ecf23211f02d415da23e0f7bd4500a5e465 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 00:28:51 -0700
Subject: [PATCH 019/149] fixes
---
addons/pharma/functions/fnc_applyIV.sqf | 8 ++++----
addons/pharma/functions/fnc_retrieveIV.sqf | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index 6f4695fc2..3237b3281 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -95,10 +95,10 @@ if (GVAR(IVdropEnable) && ((_usedItem isEqualTo "kat_IV_16") || (_usedItem isEqu
if(GVAR(IVreuse)) then {
switch (_IVactual) do {
- case "1":{_patient addItem "kat_IO_FAST"}
- case "2":{_patient addItem "kat_IV_16"}
- case "3":{_patient addItem "kat_IV_14"}
- case "4":{_patient addItem "kat_IV_20"}
+ case "1": {_patient addItem "kat_IO_FAST"};
+ case "2": {_patient addItem "kat_IV_16"};
+ case "3": {_patient addItem "kat_IV_14"};
+ case "4": {_patient addItem "kat_IV_20"};
};
};
diff --git a/addons/pharma/functions/fnc_retrieveIV.sqf b/addons/pharma/functions/fnc_retrieveIV.sqf
index b181645d0..4ff967575 100644
--- a/addons/pharma/functions/fnc_retrieveIV.sqf
+++ b/addons/pharma/functions/fnc_retrieveIV.sqf
@@ -26,10 +26,10 @@ private _IVactual = _IVarray select _partIndex;
if(GVAR(IVreuse)) then {
switch (_IVactual) do {
- case "1":{_patient addItem "kat_IO_FAST"}
- case "2":{_patient addItem "kat_IV_16"}
- case "3":{_patient addItem "kat_IV_14"}
- case "4":{_patient addItem "kat_IV_20"}
+ case "1": {_patient addItem "kat_IO_FAST"};
+ case "2": {_patient addItem "kat_IV_16"};
+ case "3": {_patient addItem "kat_IV_14"};
+ case "4": {_patient addItem "kat_IV_20"};
};
};
From c4fca7d95a787da3e01f1e911ffb45bab6875d6d Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 00:36:55 -0700
Subject: [PATCH 020/149] fixes
---
addons/pharma/ACE_Medical_Treatment_Actions.hpp | 2 +-
addons/pharma/functions/fnc_applyIV.sqf | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/addons/pharma/ACE_Medical_Treatment_Actions.hpp b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
index 7f77ad9f5..eaeb59cad 100644
--- a/addons/pharma/ACE_Medical_Treatment_Actions.hpp
+++ b/addons/pharma/ACE_Medical_Treatment_Actions.hpp
@@ -331,7 +331,7 @@ class ACE_Medical_Treatment_Actions {
items[] = {"kat_IV_20"};
condition = QUOTE(!([ARR_3(_player,_patient,_bodyPart)] call FUNC(removeIV)));
treatmentTime = QGVAR(treatmentTime_ApplyIV);
- callbackSuccess = QUOTE([ARR_4(_player,_patient,_bodyPart,'kat_IV_14')] call FUNC(applyIV));
+ callbackSuccess = QUOTE([ARR_4(_player,_patient,_bodyPart,'kat_IV_20')] call FUNC(applyIV));
litter[] = {};
sounds[] = {};
};
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index 3237b3281..d0599c0ed 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -44,16 +44,19 @@ switch (_usedItem) do {
_patient setVariable [QGVAR(IV), _IVarray, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "16g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "16g IV"] call ACEFUNC(medical_treatment,addToTriageCard); };
+
case "kat_IV_14": { _IVarray set [_partIndex, 3];
_patient setVariable [QGVAR(IV), _IVarray, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "14g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "14g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
+
case "kat_IV_20": { _IVarray set [_partIndex, 4];
_patient setVariable [QGVAR(IV), _IVarray, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "20g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "20g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
+
case "kat_IO_FAST": {
_IVarray set [_partIndex, 1];
_patient setVariable [QGVAR(IV), _IVarray, true];
From 7a010068abba73c7ce0f4529977cfcbf33405abb Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 02:28:05 -0700
Subject: [PATCH 021/149] Update fnc_retrieveIV.sqf
---
addons/pharma/functions/fnc_retrieveIV.sqf | 1 +
1 file changed, 1 insertion(+)
diff --git a/addons/pharma/functions/fnc_retrieveIV.sqf b/addons/pharma/functions/fnc_retrieveIV.sqf
index 4ff967575..ac98f6cf7 100644
--- a/addons/pharma/functions/fnc_retrieveIV.sqf
+++ b/addons/pharma/functions/fnc_retrieveIV.sqf
@@ -30,6 +30,7 @@ if(GVAR(IVreuse)) then {
case "2": {_patient addItem "kat_IV_16"};
case "3": {_patient addItem "kat_IV_14"};
case "4": {_patient addItem "kat_IV_20"};
+ default: {}
};
};
From 93dd5a22d90b4b6b82ab35250940486e4e9ac7cd Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 02:33:42 -0700
Subject: [PATCH 022/149] Update fnc_retrieveIV.sqf
---
addons/pharma/functions/fnc_retrieveIV.sqf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/pharma/functions/fnc_retrieveIV.sqf b/addons/pharma/functions/fnc_retrieveIV.sqf
index ac98f6cf7..e9a967291 100644
--- a/addons/pharma/functions/fnc_retrieveIV.sqf
+++ b/addons/pharma/functions/fnc_retrieveIV.sqf
@@ -30,7 +30,7 @@ if(GVAR(IVreuse)) then {
case "2": {_patient addItem "kat_IV_16"};
case "3": {_patient addItem "kat_IV_14"};
case "4": {_patient addItem "kat_IV_20"};
- default: {}
+ default {};
};
};
From 7c2d797c31fd3a60771209733d49f662e905ad4d Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 18:09:24 -0700
Subject: [PATCH 023/149] Update fnc_retrieveIV.sqf
---
addons/pharma/functions/fnc_retrieveIV.sqf | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/addons/pharma/functions/fnc_retrieveIV.sqf b/addons/pharma/functions/fnc_retrieveIV.sqf
index e9a967291..d15317b80 100644
--- a/addons/pharma/functions/fnc_retrieveIV.sqf
+++ b/addons/pharma/functions/fnc_retrieveIV.sqf
@@ -26,10 +26,10 @@ private _IVactual = _IVarray select _partIndex;
if(GVAR(IVreuse)) then {
switch (_IVactual) do {
- case "1": {_patient addItem "kat_IO_FAST"};
- case "2": {_patient addItem "kat_IV_16"};
- case "3": {_patient addItem "kat_IV_14"};
- case "4": {_patient addItem "kat_IV_20"};
+ case 1: {_patient addItem "kat_IO_FAST"};
+ case 2: {_patient addItem "kat_IV_16"};
+ case 3: {_patient addItem "kat_IV_14"};
+ case 4: {_patient addItem "kat_IV_20"};
default {};
};
};
From b4488d5cb288c13835a2dc1e8c44aae2c99e5c40 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 18:31:42 -0700
Subject: [PATCH 024/149] fixes
---
addons/pharma/CfgWeapons.hpp | 10 +++++-----
addons/pharma/stringtable.xml | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/addons/pharma/CfgWeapons.hpp b/addons/pharma/CfgWeapons.hpp
index f8deb5fcc..c8b8ec064 100644
--- a/addons/pharma/CfgWeapons.hpp
+++ b/addons/pharma/CfgWeapons.hpp
@@ -278,7 +278,7 @@ class CfgWeapons {
mass = 1;
};
};
- class kat_10ml_syringe_txa_2: ACE_ItemCore {
+ class kat_syringe_txa_10ml_2: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Syringe_txa_10_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
@@ -289,7 +289,7 @@ class CfgWeapons {
mass = 1;
};
};
- class kat_5ml_syringe_txa_1: ACE_ItemCore {
+ class kat_syringe_txa_5ml_1: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Syringe_txa_5_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
@@ -300,7 +300,7 @@ class CfgWeapons {
mass = 1;
};
};
- class kat_5ml_syringe_txa_2: ACE_ItemCore {
+ class kat_syringe_txa_5ml_2: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Syringe_txa_5_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
@@ -311,7 +311,7 @@ class CfgWeapons {
mass = 1;
};
};
- class kat_5ml_syringe_eaca_1: ACE_ItemCore {
+ class kat_syringe_eaca_5ml_1: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Syringe_eaca_5_1_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
@@ -322,7 +322,7 @@ class CfgWeapons {
mass = 1;
};
};
- class kat_5ml_syringe_eaca_2: ACE_ItemCore {
+ class kat_syringe_eaca_5ml_2: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Syringe_eaca_5_2_Display);
picture = QPATHTOF(ui\icon_fast_io.paa);
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 35b73aad7..25765178f 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3800,7 +3800,7 @@
5ml Syringe loaded with 7.5 grams of EACA
-
+
5ml Syringe/15g EACA
From a1b4471839c84bdf993d0429a39f03f0864db781 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 18:36:24 -0700
Subject: [PATCH 025/149] Update stringtable.xml
---
addons/pharma/stringtable.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml
index 25765178f..7dd92271d 100644
--- a/addons/pharma/stringtable.xml
+++ b/addons/pharma/stringtable.xml
@@ -3800,7 +3800,7 @@
5ml Syringe loaded with 7.5 grams of EACA
-
+
5ml Syringe/15g EACA
From f549e5d08380cdf404d58bb38e6e944fe0679d83 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 18:51:27 -0700
Subject: [PATCH 026/149] Update fnc_gui_updateInjuryListPart.sqf
---
addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf b/addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf
index 91ea65d69..dc5153064 100644
--- a/addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf
+++ b/addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf
@@ -29,4 +29,13 @@ if (_IVactual > 0) then {
} else {
_entries pushBack [LLSTRING(IV_16_Display), [0.3, 0.6, 0.3, 1]];
};
+};
+if (_IVactual > 0) then {
+ switch (_IVactual) do {
+ case 1: { _entries pushBack [LLSTRING(IO_45_Display), [0.3, 0.6, 0.3, 1]]};
+ case 2: { _entries pushBack [LLSTRING(IV_16_Display), [0.3, 0.6, 0.3, 1]]};
+ case 3: { _entries pushBack [LLSTRING(IV_14_Display), [0.3, 0.6, 0.3, 1]]};
+ case 4: { _entries pushBack [LLSTRING(IV_20_Display), [0.3, 0.6, 0.3, 1]]};
+ default {};
+ };
};
\ No newline at end of file
From f22081bc6a0aa65c71d8bd07d522426c16edb50d Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Tue, 10 Sep 2024 18:55:18 -0700
Subject: [PATCH 027/149] Update fnc_gui_updateInjuryListPart.sqf
---
addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf | 7 -------
1 file changed, 7 deletions(-)
diff --git a/addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf b/addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf
index dc5153064..1a3399722 100644
--- a/addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf
+++ b/addons/pharma/functions/fnc_gui_updateInjuryListPart.sqf
@@ -23,13 +23,6 @@ params ["_ctrl", "_target", "_selectionN", "_entries"];
private _placed = _target getVariable [QGVAR(IV), [0,0,0,0,0,0]];
private _IVactual = _placed select _selectionN;
-if (_IVactual > 0) then {
- if (_IVactual == 1) then {
- _entries pushBack [LLSTRING(IO_45_Display), [0.3, 0.6, 0.3, 1]];
- } else {
- _entries pushBack [LLSTRING(IV_16_Display), [0.3, 0.6, 0.3, 1]];
- };
-};
if (_IVactual > 0) then {
switch (_IVactual) do {
case 1: { _entries pushBack [LLSTRING(IO_45_Display), [0.3, 0.6, 0.3, 1]]};
From c77878e888d4606ef05809cba5a794a1ad6d3e7c Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 11 Sep 2024 02:25:12 -0700
Subject: [PATCH 028/149] Add rates and fixed blockages
---
addons/pharma/functions/fnc_applyIV.sqf | 52 +++++++++++--------
addons/pharma/functions/fnc_fullHealLocal.sqf | 1 +
.../functions/fnc_getBloodVolumeChange.sqf | 3 +-
.../pharma/functions/fnc_inspectCatheter.sqf | 2 +-
.../pharma/functions/fnc_medicationLocal.sqf | 2 +-
addons/pharma/functions/fnc_salineCheck.sqf | 2 +-
.../pharma/functions/fnc_tourniquetRemove.sqf | 2 +-
.../fnc_treatmentAdvanced_EACALocal.sqf | 10 ++--
.../fnc_treatmentAdvanced_FlushLocal.sqf | 2 +-
.../fnc_treatmentAdvanced_TXALocal.sqf | 10 ++--
10 files changed, 48 insertions(+), 38 deletions(-)
diff --git a/addons/pharma/functions/fnc_applyIV.sqf b/addons/pharma/functions/fnc_applyIV.sqf
index d0599c0ed..81c57adf9 100644
--- a/addons/pharma/functions/fnc_applyIV.sqf
+++ b/addons/pharma/functions/fnc_applyIV.sqf
@@ -27,6 +27,7 @@ private _IVarray = _patient getVariable [QGVAR(IV), [0,0,0,0,0,0]];
private _IVactual = _IVarray select _partIndex;
private _IVpfh = _patient getVariable [QGVAR(IVpfh), [0,0,0,0,0,0]];
private _IVpfhActual = _IVpfh select _partIndex;
+private _IVrate = _patient getVariable [QGVAR(IVrate), [0,0,0,0,0,0]];
if (_IVpfhActual > 0) then {
[_IVpfhActual] call CBA_fnc_removePerFrameHandler;
@@ -41,35 +42,42 @@ if (_IVpfhActual > 0) then {
switch (_usedItem) do {
case "kat_IV_16": {
_IVarray set [_partIndex, 2];
+ _IVrate set [_partIndex, 1];
_patient setVariable [QGVAR(IV), _IVarray, true];
+ _patient setVariable [QGVAR(IVrate), _IVrate, true];
[_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "16g IV"]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "16g IV"] call ACEFUNC(medical_treatment,addToTriageCard); };
- case "kat_IV_14": { _IVarray set [_partIndex, 3];
- _patient setVariable [QGVAR(IV), _IVarray, true];
-
- [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "14g IV"]] call ACEFUNC(medical_treatment,addToLog);
- [_patient, "14g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
-
- case "kat_IV_20": { _IVarray set [_partIndex, 4];
- _patient setVariable [QGVAR(IV), _IVarray, true];
+ case "kat_IV_14": {
+ _IVarray set [_partIndex, 3];
+ _IVrate set [_partIndex, 1.5];
+ _patient setVariable [QGVAR(IV), _IVarray, true];
+ _patient setVariable [QGVAR(IVrate), _IVrate, true];
+ [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "14g IV"]] call ACEFUNC(medical_treatment,addToLog);
+ [_patient, "14g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
- [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "20g IV"]] call ACEFUNC(medical_treatment,addToLog);
- [_patient, "20g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
+ case "kat_IV_20": {
+ _IVarray set [_partIndex, 4];
+ _IVrate set [_partIndex, 0.5];
+ _patient setVariable [QGVAR(IV), _IVarray, true];
+ _patient setVariable [QGVAR(IVrate), _IVrate, true];
+ [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "20g IV"]] call ACEFUNC(medical_treatment,addToLog);
+ [_patient, "20g IV"] call ACEFUNC(medical_treatment,addToTriageCard);};
case "kat_IO_FAST": {
- _IVarray set [_partIndex, 1];
- _patient setVariable [QGVAR(IV), _IVarray, true];
-
- private _lidocaineCount = [_patient, "Lidocaine", false] call ACEFUNC(medical_status,getMedicationCount);
- private _morphineCount = [_patient, "Morphine", false] call ACEFUNC(medical_status,getMedicationCount);
- private _nalbuphineCount = [_patient, "Nalbuphine", false] call ACEFUNC(medical_status,getMedicationCount);
- private _fentanylCount = [_patient, "Fentanyl", false] call ACEFUNC(medical_status,getMedicationCount);
- private _ketamineCount = [_patient, "Ketamine", false] call ACEFUNC(medical_status,getMedicationCount);
- if (_lidocaineCount <= 0.6 && _morphineCount <= 0.6 && _nalbuphineCount <= 0.6 && _fentanylCount <= 0.6 && _ketamineCount <= 0.6) then {[_patient, 0.8] call ACEFUNC(medical_status,adjustPainLevel)};
-
- [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "FAST IO"]] call ACEFUNC(medical_treatment,addToLog);
- [_patient, "FAST IO"] call ACEFUNC(medical_treatment,addToTriageCard);};
+ _IVarray set [_partIndex, 1];
+ _IVrate set [_partIndex, 0.2];
+ _patient setVariable [QGVAR(IV), _IVarray, true];
+ _patient setVariable [QGVAR(IVrate), _IVrate, true];
+ private _lidocaineCount = [_patient, "Lidocaine", false] call ACEFUNC(medical_status,getMedicationCount);
+ private _morphineCount = [_patient, "Morphine", false] call ACEFUNC(medical_status,getMedicationCount);
+ private _nalbuphineCount = [_patient, "Nalbuphine", false] call ACEFUNC(medical_status,getMedicationCount);
+ private _fentanylCount = [_patient, "Fentanyl", false] call ACEFUNC(medical_status,getMedicationCount);
+ private _ketamineCount = [_patient, "Ketamine", false] call ACEFUNC(medical_status,getMedicationCount);
+ if (_lidocaineCount <= 0.6 && _morphineCount <= 0.6 && _nalbuphineCount <= 0.6 && _fentanylCount <= 0.6 && _ketamineCount <= 0.6) then {[_patient, 0.8] call ACEFUNC(medical_status,adjustPainLevel)};
+
+ [_patient, "activity", LSTRING(iv_log), [[_medic] call ACEFUNC(common,getName), "FAST IO"]] call ACEFUNC(medical_treatment,addToLog);
+ [_patient, "FAST IO"] call ACEFUNC(medical_treatment,addToTriageCard);};
default {};
};
diff --git a/addons/pharma/functions/fnc_fullHealLocal.sqf b/addons/pharma/functions/fnc_fullHealLocal.sqf
index 14befa1c7..cecc267fb 100644
--- a/addons/pharma/functions/fnc_fullHealLocal.sqf
+++ b/addons/pharma/functions/fnc_fullHealLocal.sqf
@@ -31,6 +31,7 @@ _patient setVariable [QGVAR(alphaAction), 1, true];
_patient setVariable [QGVAR(IV), [0,0,0,0,0,0], true];
_patient setVariable [QGVAR(IVflow), [0,0,0,0,0,0], true];
_patient setVariable [QGVAR(IVpfh), [0,0,0,0,0,0], true];
+_patient setVariable [QGVAR(IVrate), [0,0,0,0,0,0], true];
_patient setVariable [QGVAR(active), false, true];
_patient setVariable [QGVAR(IVPharma_PFH), nil, true];
_patient setVariable [QGVAR(externalPh), 0, true];
diff --git a/addons/pharma/functions/fnc_getBloodVolumeChange.sqf b/addons/pharma/functions/fnc_getBloodVolumeChange.sqf
index 0be5e9913..9bf422406 100644
--- a/addons/pharma/functions/fnc_getBloodVolumeChange.sqf
+++ b/addons/pharma/functions/fnc_getBloodVolumeChange.sqf
@@ -55,7 +55,8 @@ if (!isNil {_unit getVariable [QACEGVAR(medical,ivBags),[]]}) then {
if ((_tourniquets select _bodyPart isEqualTo 0) && (_IVarray select _bodyPart isNotEqualTo 3)) then {
private _IVflow = _unit getVariable [QGVAR(IVflow), [0,0,0,0,0,0]];
- private _bagChange = (_flowCalculation * (_IVflow select _bodyPart)) min _bagVolumeRemaining; // absolute value of the change in miliLiters
+ private _IVrate = _unit getVariable [QGVAR(IVrate), [0,0,0,0,0,0]];
+ private _bagChange = (_flowCalculation * (_IVflow select _bodyPart) * (_IVrate select _bodyPart)) min _bagVolumeRemaining; // absolute value of the change in miliLiters
_bagVolumeRemaining = _bagVolumeRemaining - _bagChange;
if (_hypothermia) then {
diff --git a/addons/pharma/functions/fnc_inspectCatheter.sqf b/addons/pharma/functions/fnc_inspectCatheter.sqf
index c8178f00e..172e96bc9 100644
--- a/addons/pharma/functions/fnc_inspectCatheter.sqf
+++ b/addons/pharma/functions/fnc_inspectCatheter.sqf
@@ -23,7 +23,7 @@ private _partIndex = ALL_BODY_PARTS find toLower _bodyPart;
private _IVarray = _patient getVariable [QGVAR(IV), [0,0,0,0,0,0]];
private _IVactual = _IVarray select _partIndex;
-if (_IVactual == 3) exitWith {
+if (_IVactual == 7) exitWith {
private _output = LLSTRING(IVblock_closed);
[_output, 1.5, _medic] call ACEFUNC(common,displayTextStructured);
};
diff --git a/addons/pharma/functions/fnc_medicationLocal.sqf b/addons/pharma/functions/fnc_medicationLocal.sqf
index 78dcfc1cd..b3f41f84d 100644
--- a/addons/pharma/functions/fnc_medicationLocal.sqf
+++ b/addons/pharma/functions/fnc_medicationLocal.sqf
@@ -57,7 +57,7 @@ TRACE_1("Running treatmentMedicationLocal with Advanced configuration for",_pati
private _partIndex = ALL_BODY_PARTS find toLower _bodyPart;
// Handle IV blockage
-if (((_patient getVariable [QGVAR(IV), [0,0,0,0,0,0]]) select _partIndex) isEqualTo 3) exitWith {
+if (((_patient getVariable [QGVAR(IV), [0,0,0,0,0,0]]) select _partIndex) isEqualTo 7) exitWith {
private _occludedMedications = _patient getVariable [QACEGVAR(medical,occludedMedications), []];
_occludedMedications pushBack [_partIndex, _classname];
_patient setVariable [QACEGVAR(medical,occludedMedications), _occludedMedications, true];
diff --git a/addons/pharma/functions/fnc_salineCheck.sqf b/addons/pharma/functions/fnc_salineCheck.sqf
index 574c8db41..96e249386 100644
--- a/addons/pharma/functions/fnc_salineCheck.sqf
+++ b/addons/pharma/functions/fnc_salineCheck.sqf
@@ -22,7 +22,7 @@ params ["_medic", "_patient", "_bodyPart"];
private _partIndex = ALL_BODY_PARTS find toLower _bodyPart;
private _IVarray = _patient getVariable [QGVAR(IV), [0,0,0,0,0,0]];
private _IVactual = _IVarray select _partIndex;
-if (_IVactual != 3) exitWith {false};
+if (_IVactual != 7) exitWith {false};
private _fluidCheck = _patient getVariable [QACEGVAR(medical,ivBags), []];
private _check = false;
diff --git a/addons/pharma/functions/fnc_tourniquetRemove.sqf b/addons/pharma/functions/fnc_tourniquetRemove.sqf
index 135824569..38a5fc8a4 100644
--- a/addons/pharma/functions/fnc_tourniquetRemove.sqf
+++ b/addons/pharma/functions/fnc_tourniquetRemove.sqf
@@ -46,7 +46,7 @@ private _receiver = [_patient, _medic, _medic] select ACEGVAR(medical_treatment,
private _occludedMedications = _patient getVariable [QACEGVAR(medical,occludedMedications), []];
private _arrayModified = false;
-if !(((_patient getVariable [QGVAR(IV), [0,0,0,0,0,0]]) select _partIndex) isEqualTo 3) then {
+if !(((_patient getVariable [QGVAR(IV), [0,0,0,0,0,0]]) select _partIndex) isEqualTo 7) then {
{
_x params ["_bodyPartN", "_medication"];
diff --git a/addons/pharma/functions/fnc_treatmentAdvanced_EACALocal.sqf b/addons/pharma/functions/fnc_treatmentAdvanced_EACALocal.sqf
index 2a815a6df..1d08d1597 100644
--- a/addons/pharma/functions/fnc_treatmentAdvanced_EACALocal.sqf
+++ b/addons/pharma/functions/fnc_treatmentAdvanced_EACALocal.sqf
@@ -29,26 +29,26 @@ private _cycleTime = missionNamespace getVariable [QGVAR(bandageCycleTime_EACA),
if (_IVactual > 1) then {
private _randomNumber = random 100;
- if (_IVactual != 4) exitWith {
+ if (_IVactual != 8) exitWith {
if (_randomNumber < GVAR(blockChance)) then {
[{
params ["_patient", "_IVarray", "_partIndex"];
- if (_IVactual > 1 && _IVactual != 4) exitWith {};
- _IVarray set [_partIndex, 3];
+ if (_IVactual > 1 && _IVactual != 8) exitWith {};
+ _IVarray set [_partIndex, 7];
_patient setVariable [QGVAR(IV), _IVarray, true];
},
[_patient, _IVarray, _partIndex], (random 300)] call CBA_fnc_waitAndExecute;
};
};
- _IVarray set [_partIndex, 2];
+ _IVarray set [_partIndex, 6];
_patient setVariable [QGVAR(IV), _IVarray, true];
};
if (!(GVAR(coagulation)) || GVAR(coagulation_allow_EACA_script)) then {
- if (_IVactual != 3) then {
+ if (_IVactual != 5) then {
if (_countEACA > 1 && !(_allowStack)) exitWith {};
[{
diff --git a/addons/pharma/functions/fnc_treatmentAdvanced_FlushLocal.sqf b/addons/pharma/functions/fnc_treatmentAdvanced_FlushLocal.sqf
index 5ffaf00f9..8043d2004 100644
--- a/addons/pharma/functions/fnc_treatmentAdvanced_FlushLocal.sqf
+++ b/addons/pharma/functions/fnc_treatmentAdvanced_FlushLocal.sqf
@@ -23,7 +23,7 @@ private _partIndex = ALL_BODY_PARTS find toLower _bodyPart;
private _IVarray = _patient getVariable [QGVAR(IV), [0,0,0,0,0,0]];
private _IVactual = _IVarray select _partIndex;
-_IVarray set [_partIndex, 4];
+_IVarray set [_partIndex, 8];
_patient setVariable [QGVAR(IV), _IVarray, true];
private _occludedMedications = _patient getVariable [QACEGVAR(medical,occludedMedications), []];
diff --git a/addons/pharma/functions/fnc_treatmentAdvanced_TXALocal.sqf b/addons/pharma/functions/fnc_treatmentAdvanced_TXALocal.sqf
index c52d0a4be..6aea3c45b 100644
--- a/addons/pharma/functions/fnc_treatmentAdvanced_TXALocal.sqf
+++ b/addons/pharma/functions/fnc_treatmentAdvanced_TXALocal.sqf
@@ -29,26 +29,26 @@ private _cycleTime = missionNamespace getVariable [QGVAR(bandageCycleTime_TXA),
if (_IVactual > 1) then {
private _randomNumber = random 100;
- if (_IVactual != 4) exitWith {
+ if (_IVactual != 8) exitWith {
if (_randomNumber < GVAR(blockChance)) then {
[{
params["_patient", "_IVarray", "_partIndex"];
- if (_IVactual > 1 && _IVactual != 4) exitWith {};
- _IVarray set [_partIndex, 3];
+ if (_IVactual > 1 && _IVactual != 8) exitWith {};
+ _IVarray set [_partIndex, 7];
_patient setVariable [QGVAR(IV), _IVarray, true];
},
[_patient, _IVarray, _partIndex], (random 300)] call CBA_fnc_waitAndExecute;
};
};
- _IVarray set [_partIndex, 2];
+ _IVarray set [_partIndex, 6];
_patient setVariable [QGVAR(IV), _IVarray, true];
};
if (!(GVAR(coagulation)) || GVAR(coagulation_allow_TXA_script)) then {
- if (_IVactual != 3) then {
+ if (_IVactual != 5) then {
if (_countTXA > 1 && !(_allowStack)) exitWith {};
From cf729744cdafc673b438ea07d4f15caec59f616d Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 11 Sep 2024 02:35:40 -0700
Subject: [PATCH 029/149] Update fnc_getBloodVolumeChange.sqf
---
addons/pharma/functions/fnc_getBloodVolumeChange.sqf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/pharma/functions/fnc_getBloodVolumeChange.sqf b/addons/pharma/functions/fnc_getBloodVolumeChange.sqf
index 9bf422406..997394903 100644
--- a/addons/pharma/functions/fnc_getBloodVolumeChange.sqf
+++ b/addons/pharma/functions/fnc_getBloodVolumeChange.sqf
@@ -53,7 +53,7 @@ if (!isNil {_unit getVariable [QACEGVAR(medical,ivBags),[]]}) then {
private _tourniquets = GET_TOURNIQUETS(_unit);
- if ((_tourniquets select _bodyPart isEqualTo 0) && (_IVarray select _bodyPart isNotEqualTo 3)) then {
+ if ((_tourniquets select _bodyPart isEqualTo 0) && (_IVarray select _bodyPart isNotEqualTo 7)) then {
private _IVflow = _unit getVariable [QGVAR(IVflow), [0,0,0,0,0,0]];
private _IVrate = _unit getVariable [QGVAR(IVrate), [0,0,0,0,0,0]];
private _bagChange = (_flowCalculation * (_IVflow select _bodyPart) * (_IVrate select _bodyPart)) min _bagVolumeRemaining; // absolute value of the change in miliLiters
From 7c8e95e32600c2d801e93c545177223df74fffa1 Mon Sep 17 00:00:00 2001
From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Date: Wed, 11 Sep 2024 03:14:17 -0700
Subject: [PATCH 030/149] Create fnc_overdose.sqf
---
addons/pharma/functions/fnc_overdose.sqf | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 addons/pharma/functions/fnc_overdose.sqf
diff --git a/addons/pharma/functions/fnc_overdose.sqf b/addons/pharma/functions/fnc_overdose.sqf
new file mode 100644
index 000000000..52188229c
--- /dev/null
+++ b/addons/pharma/functions/fnc_overdose.sqf
@@ -0,0 +1,24 @@
+/*
+ * Author: Cplhardcore
+ * Applies Overdose effects
+ *
+ * Arguments:
+ * 0: Patient