mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fixes #1964
This commit is contained in:
parent
d56f3cea81
commit
1c9e88f213
@ -257,15 +257,29 @@ if (USE_WOUND_EVENT_SYNC) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
[
|
|
||||||
{(((_this select 0) getvariable [QGVAR(bloodVolume), 100]) < 65)},
|
|
||||||
{(((_this select 0) getvariable [QGVAR(pain), 0]) - ((_this select 0) getvariable [QGVAR(painSuppress), 0])) > 0.9},
|
["SettingsInitialized", {
|
||||||
{(([_this select 0] call FUNC(getBloodLoss)) > 0.25)},
|
if (GVAR(level) == 2) exitwith {
|
||||||
{((_this select 0) getvariable [QGVAR(inReviveState), false])},
|
[
|
||||||
{((_this select 0) getvariable [QGVAR(inCardiacArrest), false])},
|
{(((_this select 0) getvariable [QGVAR(bloodVolume), 100]) < 65)},
|
||||||
{((_this select 0) getvariable ["ACE_isDead", false])},
|
{(((_this select 0) getvariable [QGVAR(pain), 0]) - ((_this select 0) getvariable [QGVAR(painSuppress), 0])) > 0.9},
|
||||||
{(((_this select 0) getvariable [QGVAR(airwayStatus), 100]) < 80)}
|
{(([_this select 0] call FUNC(getBloodLoss)) > 0.25)},
|
||||||
] call FUNC(addUnconsciousCondition);
|
{((_this select 0) getvariable [QGVAR(inReviveState), false])},
|
||||||
|
{((_this select 0) getvariable [QGVAR(inCardiacArrest), false])},
|
||||||
|
{((_this select 0) getvariable ["ACE_isDead", false])},
|
||||||
|
{(((_this select 0) getvariable [QGVAR(airwayStatus), 100]) < 80)}
|
||||||
|
] call FUNC(addUnconsciousCondition);
|
||||||
|
};
|
||||||
|
|
||||||
|
[
|
||||||
|
{(((_this select 0) getvariable [QGVAR(bloodVolume), 100]) < 40)},
|
||||||
|
{(((_this select 0) getvariable [QGVAR(pain), 0]) - ((_this select 0) getvariable [QGVAR(painSuppress), 0])) > 0.6},
|
||||||
|
{(([_this select 0] call FUNC(getBloodLoss)) > 0.1)},
|
||||||
|
{((_this select 0) getvariable [QGVAR(inReviveState), false])},
|
||||||
|
{((_this select 0) getvariable ["ACE_isDead", false])}
|
||||||
|
] call FUNC(addUnconsciousCondition);
|
||||||
|
}] call FUNC(addEventHandler);
|
||||||
|
|
||||||
// Prevent all types of interaction while unconscious
|
// Prevent all types of interaction while unconscious
|
||||||
// @todo: probably remove this when CBA keybind hold key works properly
|
// @todo: probably remove this when CBA keybind hold key works properly
|
||||||
|
Loading…
Reference in New Issue
Block a user