mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix #2155
This commit is contained in:
parent
b291141d11
commit
ce42f5864f
@ -30,4 +30,4 @@ _resistance = _unit getvariable [QGVAR(peripheralResistance), 100];
|
||||
_bloodPressureHigh = (_cardiacOutput * MODIFIER_BP_HIGH) * _resistance;
|
||||
_bloodPressureLow = (_cardiacOutput * MODIFIER_BP_LOW) * _resistance;
|
||||
|
||||
[_bloodPressureLow, _bloodPressureHigh]
|
||||
[_bloodPressureLow max 0, _bloodPressureHigh max 0]
|
||||
|
@ -104,7 +104,7 @@ if (GVAR(level) >= 2) then {
|
||||
|
||||
// Set the vitals
|
||||
_heartRate = (_unit getvariable [QGVAR(heartRate), 80]) + (([_unit] call FUNC(getHeartRateChange)) * _interval);
|
||||
_unit setvariable [QGVAR(heartRate), _heartRate, _syncValues];
|
||||
_unit setvariable [QGVAR(heartRate), _heartRate max 0, _syncValues];
|
||||
|
||||
_bloodPressure = [_unit] call FUNC(getBloodPressure);
|
||||
_unit setvariable [QGVAR(bloodPressure), _bloodPressure, _syncValues];
|
||||
|
Loading…
Reference in New Issue
Block a user