Skip to content

Commit

Permalink
Pharma - Improve IV Epinephrine (#585)
Browse files Browse the repository at this point in the history
**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}`.
  • Loading branch information
Cplhardcore authored Aug 29, 2024
1 parent 7e94711 commit 663e41f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions addons/circulation/functions/fnc_cprLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ private _fnc_advRhythm = {
{
_epiBoost = 1.5;
};
case "EpinephrineIV":
{
_epiBoost = 1.5;
};
case "Amiodarone":
{
_amiBoost = _amiBoost + (random [8,14,20]);
Expand Down
4 changes: 2 additions & 2 deletions addons/pharma/ACE_Medical_Treatment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ACE_ADDON(Medical_Treatment) {
maxDose = 6;
maxDoseDeviation = 4;
incompatibleMedication[] = {};
alphaFactor = 0.15;
alphaFactor = -0.15;
onOverDose = "";
};
class EpinephrineIV {
Expand All @@ -50,7 +50,7 @@ class ACE_ADDON(Medical_Treatment) {
maxDose = 4;
maxDoseDeviation = 2;
incompatibleMedication[] = {};
alphaFactor = 0.3;
alphaFactor = -0.3;
onOverDose = "";
};
class Morphine {
Expand Down
2 changes: 1 addition & 1 deletion addons/pharma/functions/fnc_handleRespawn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion addons/pharma/functions/fnc_init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 663e41f

Please sign in to comment.