mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Move advanced bloodloss handling to advanced
This commit is contained in:
parent
4cc1b08196
commit
99899d6562
@ -65,19 +65,6 @@ if (_painStatus > 0) then {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
if (_bloodVolume < 30) exitwith {
|
||||
[_unit] call FUNC(setDead);
|
||||
};
|
||||
|
||||
if ([_unit] call EFUNC(common,isAwake)) then {
|
||||
if (_bloodVolume < 60) then {
|
||||
if (random(1) > 0.9) then {
|
||||
[_unit] call FUNC(setUnconscious);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
if (GVAR(level) == 1) then {
|
||||
// reduce pain
|
||||
if (_unit getVariable [QGVAR(pain), 0] > 0) then {
|
||||
@ -105,6 +92,17 @@ if (GVAR(level) == 1) then {
|
||||
|
||||
// handle advanced medical, with vitals
|
||||
if (GVAR(level) >= 2) then {
|
||||
if (_bloodVolume < 30) exitwith {
|
||||
[_unit] call FUNC(setDead);
|
||||
};
|
||||
|
||||
if ([_unit] call EFUNC(common,isAwake)) then {
|
||||
if (_bloodVolume < 60) then {
|
||||
if (random(1) > 0.9) then {
|
||||
[_unit] call FUNC(setUnconscious);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
// Set the vitals
|
||||
_heartRate = (_unit getvariable [QGVAR(heartRate), 0]) + ([_unit] call FUNC(getHeartRateChange)) * _interval;
|
||||
|
Loading…
Reference in New Issue
Block a user