Skip to content

Commit

Permalink
Medical - Refactor target blood pressure (acemod#10081)
Browse files Browse the repository at this point in the history
Refactor target blood pressure
  • Loading branch information
Kexanone authored Jun 20, 2024
1 parent 5ea202c commit c4fb858
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions addons/medical_vitals/functions/fnc_updateHeartRate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,9 @@ if IN_CRDC_ARRST(_unit) then {
private _spo2 = GET_SPO2(_unit);
private _painLevel = GET_PAIN_PERCEIVED(_unit);

private _targetBP = 107;
if (_bloodVolume < BLOOD_VOLUME_CLASS_2_HEMORRHAGE) then {
_targetBP = _targetBP * (_bloodVolume / DEFAULT_BLOOD_VOLUME);
};

_targetHR = DEFAULT_HEART_RATE;
if (_bloodVolume < BLOOD_VOLUME_CLASS_3_HEMORRHAGE) then {
private _targetBP = 107 * (_bloodVolume / DEFAULT_BLOOD_VOLUME);
_targetHR = _heartRate * (_targetBP / (45 max _meanBP));
};
if (_painLevel > 0.2) then {
Expand Down

0 comments on commit c4fb858

Please sign in to comment.