mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix incorrect macro usages with whitespace
This commit is contained in:
parent
9d2e76e67a
commit
f552acd7da
@ -34,5 +34,5 @@ private _damageThreshold = if (isPlayer _unit) then {
|
||||
};
|
||||
|
||||
if ((_headDamage > _damageThreshold / 2) || {_bodyDamage > _damageThreshold} || {(_painLevel >= PAIN_UNCONSCIOUS) && {random 1 < 0.1}}) then {
|
||||
[QEGVAR(medical, CriticalInjury), _unit] call CBA_fnc_localEvent;
|
||||
[QEGVAR(medical,CriticalInjury), _unit] call CBA_fnc_localEvent;
|
||||
};
|
||||
|
@ -60,7 +60,7 @@ if (_knockOut) then {
|
||||
}, [_unit], _minWaitingTime] call CBA_fnc_waitAndExecute;
|
||||
};
|
||||
if (EGVAR(medical,spontaneousWakeUpChance) > 0) then {
|
||||
_unit setVariable [QEGVAR(medical, lastWakeUpCheck), CBA_missionTime + _minWaitingTime - SPONTANEOUS_WAKE_UP_INTERVAL];
|
||||
_unit setVariable [QEGVAR(medical,lastWakeUpCheck), CBA_missionTime + _minWaitingTime - SPONTANEOUS_WAKE_UP_INTERVAL];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -52,7 +52,7 @@ private _bloodLoss = GET_BLOOD_LOSS(_unit);
|
||||
if (_bloodLoss > 0) then {
|
||||
_unit setVariable [QGVAR(bloodloss), _bloodLoss, _syncValues];
|
||||
|
||||
[QEGVAR(medical, Injury), _unit] call CBA_fnc_localEvent;
|
||||
[QEGVAR(medical,Injury), _unit] call CBA_fnc_localEvent;
|
||||
|
||||
if !IS_BLEEDING(_unit) then {
|
||||
_unit setVariable [VAR_IS_BLEEDING, true, true];
|
||||
@ -87,7 +87,7 @@ _unit setVariable [VAR_BLOOD_PRESS, _bloodPressure, _syncValues];
|
||||
|
||||
private _cardiacOutput = [_unit] call EFUNC(medical_status,getCardiacOutput);
|
||||
if (_bloodLoss > BLOOD_LOSS_KNOCK_OUT_THRESHOLD * _cardiacOutput) then {
|
||||
[QEGVAR(medical, CriticalVitals), _unit] call CBA_fnc_localEvent;
|
||||
[QEGVAR(medical,CriticalVitals), _unit] call CBA_fnc_localEvent;
|
||||
};
|
||||
|
||||
#ifdef DEBUG_MODE_FULL
|
||||
@ -98,10 +98,10 @@ if (!isPlayer _unit) then {
|
||||
|
||||
_bloodPressure params ["_bloodPressureL", "_bloodPressureH"];
|
||||
if (_bloodPressureL < 40 || {_heartRate < 30}) then {
|
||||
[QEGVAR(medical, CriticalVitals), _unit] call CBA_fnc_localEvent;
|
||||
[QEGVAR(medical,CriticalVitals), _unit] call CBA_fnc_localEvent;
|
||||
};
|
||||
if ((_heartRate < 20) || {_heartRate > 220} || {_bloodPressureH < 50}) then {
|
||||
[QEGVAR(medical, FatalVitals), _unit] call CBA_fnc_localEvent;
|
||||
[QEGVAR(medical,FatalVitals), _unit] call CBA_fnc_localEvent;
|
||||
};
|
||||
|
||||
END_COUNTER(Vitals);
|
||||
|
Loading…
Reference in New Issue
Block a user