Skip to content

Commit

Permalink
Update addons/medical_vitals/functions/fnc_updateOxygen.sqf
Browse files Browse the repository at this point in the history
Co-authored-by: Grim <[email protected]>
  • Loading branch information
BrettMayson and LinkIsGrim authored Jan 2, 2024
1 parent 570ac7a commit 22a4c91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/medical_vitals/functions/fnc_updateOxygen.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ private _oxygenSaturation = (IDEAL_PPO2 min _po2) / IDEAL_PPO2;
// Base oxygen consumption rate
private _negativeChange = BASE_OXYGEN_USE;

// Fatigue will demand more oxygen
// Fatigue & exercise will demand more oxygen
// Assuming a trained male in midst of peak exercise will have a peak heart rate of ~180 BPM
// Ref: https://academic.oup.com/bjaed/article-pdf/4/6/185/894114/mkh050.pdf table 2, though we don't take stroke volume change into account
if (_unit == ACE_player && {missionNamespace getVariable [QEGVAR(advanced_fatigue,enabled), false]}) then {
_negativeChange = _negativeChange - ((1 - EGVAR(advanced_fatigue,aeReservePercentage)) * 0.5);
_negativeChange = _negativeChange - ((1 - EGVAR(advanced_fatigue,aeReservePercentage)) * 0.5) - ((1 - EGVAR(advanced_fatigue,anReservePercentage)) * 0.15);
};

// Effectiveness of capturing oxygen
Expand Down

0 comments on commit 22a4c91

Please sign in to comment.