From 663e41f0bc2131a0c9671963b1a1515a1661efac Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:36:54 -0700 Subject: [PATCH] Pharma - Improve IV Epinephrine (#585) **When merged this pull request will:** - Add epi IV to the checks in cprLocal/init/handleRespawn - Make epi a vasoconstrictor rather then a vasodilator ### IMPORTANT - [Development Guidelines](https://ace3.acemod.org/wiki/development/) are read, understood and applied. - Title of this PR uses our standard template `Component - Add|Fix|Improve|Change|Make|Remove {changes}`. --- addons/circulation/functions/fnc_cprLocal.sqf | 4 ++++ addons/pharma/ACE_Medical_Treatment.hpp | 4 ++-- addons/pharma/functions/fnc_handleRespawn.sqf | 2 +- addons/pharma/functions/fnc_init.sqf | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/addons/circulation/functions/fnc_cprLocal.sqf b/addons/circulation/functions/fnc_cprLocal.sqf index f338990dd..8d2871964 100644 --- a/addons/circulation/functions/fnc_cprLocal.sqf +++ b/addons/circulation/functions/fnc_cprLocal.sqf @@ -75,6 +75,10 @@ private _fnc_advRhythm = { { _epiBoost = 1.5; }; + case "EpinephrineIV": + { + _epiBoost = 1.5; + }; case "Amiodarone": { _amiBoost = _amiBoost + (random [8,14,20]); diff --git a/addons/pharma/ACE_Medical_Treatment.hpp b/addons/pharma/ACE_Medical_Treatment.hpp index e59bfb257..4e96f8865 100644 --- a/addons/pharma/ACE_Medical_Treatment.hpp +++ b/addons/pharma/ACE_Medical_Treatment.hpp @@ -37,7 +37,7 @@ class ACE_ADDON(Medical_Treatment) { maxDose = 6; maxDoseDeviation = 4; incompatibleMedication[] = {}; - alphaFactor = 0.15; + alphaFactor = -0.15; onOverDose = ""; }; class EpinephrineIV { @@ -50,7 +50,7 @@ class ACE_ADDON(Medical_Treatment) { maxDose = 4; maxDoseDeviation = 2; incompatibleMedication[] = {}; - alphaFactor = 0.3; + alphaFactor = -0.3; onOverDose = ""; }; class Morphine { diff --git a/addons/pharma/functions/fnc_handleRespawn.sqf b/addons/pharma/functions/fnc_handleRespawn.sqf index 06c6c0561..6c5f1e970 100644 --- a/addons/pharma/functions/fnc_handleRespawn.sqf +++ b/addons/pharma/functions/fnc_handleRespawn.sqf @@ -36,7 +36,7 @@ params ["_unit","_dead"]; { _x params ["_medication"]; - if (_medication in ["Epinephrine", "Phenylephrine", "Nitroglycerin", "Lidocaine", "Norepinephrine"]) exitWith { + if (_medication in ["Epinephrine", "EpinephrineIV", "Phenylephrine", "Nitroglycerin", "Lidocaine", "Norepinephrine"]) exitWith { _action = true; }; } forEach (_medicationArray); diff --git a/addons/pharma/functions/fnc_init.sqf b/addons/pharma/functions/fnc_init.sqf index 8afb3986e..c4194367b 100644 --- a/addons/pharma/functions/fnc_init.sqf +++ b/addons/pharma/functions/fnc_init.sqf @@ -38,7 +38,7 @@ if (!local _unit) exitWith {}; { _x params ["_medication"]; - if (_medication in ["Epinephrine", "Phenylephrine", "Nitroglycerin", "Lidocaine", "Norepinephrine"]) exitWith { + if (_medication in ["Epinephrine", "EpinephrineIV", "Phenylephrine", "Nitroglycerin", "Lidocaine", "Norepinephrine"]) exitWith { _alpha = true; }; } forEach (_medicationArray);