Merge pull request #1954 from acemod/improve-adv-med-pain

Improvement for handling minor levels of pain in advanced medical
This commit is contained in:
Glowbal 2015-08-01 19:05:47 +02:00
commit 19a4f3fbb1

View File

@ -110,6 +110,11 @@ if (GVAR(level) >= 2) then {
_bloodPressure = [_unit] call FUNC(getBloodPressure);
_unit setvariable [QGVAR(bloodPressure), _bloodPressure, _syncValues];
if (_painStatus > 0 && {_painStatus < 10}) then {
_painReduce = if (_painStatus > 5) then {0.002} else {0.001};
_unit setVariable [QGVAR(pain), (_painStatus - _painReduce * _interval) max 0, _syncValues];
};
// TODO Disabled until implemented fully
// Handle airway
/*if (GVAR(setting_allowAirwayInjuries)) then {