mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - QGVAR(isUnconscious) -> "ACE_isUnconscious"
This commit is contained in:
parent
2eefb1265d
commit
048be00a0f
@ -181,7 +181,7 @@ if (_selection == "") then {
|
|||||||
if (_selection == "" and
|
if (_selection == "" and
|
||||||
_damageReturn >= UNCONSCIOUSNESSTRESHOLD and
|
_damageReturn >= UNCONSCIOUSNESSTRESHOLD and
|
||||||
_damageReturn < 1 and
|
_damageReturn < 1 and
|
||||||
!(_unit getVariable [QGVAR(isUnconscious), False]
|
!(_unit getVariable ["ACE_isUnconscious", False]
|
||||||
)) then {
|
)) then {
|
||||||
if (_unit getVariable [QGVAR(allowUnconscious), ([_unit] call EFUNC(common,isPlayer)) or random 1 > 0.3]) then {
|
if (_unit getVariable [QGVAR(allowUnconscious), ([_unit] call EFUNC(common,isPlayer)) or random 1 > 0.3]) then {
|
||||||
[_unit, true] call FUNC(setUnconscious);
|
[_unit, true] call FUNC(setUnconscious);
|
||||||
|
@ -81,7 +81,7 @@ if (GVAR(level) == 1) then {
|
|||||||
_blood = (_blood - 0.4 * (damage _unit) * _interval) max 0;
|
_blood = (_blood - 0.4 * (damage _unit) * _interval) max 0;
|
||||||
if (_blood != (_unit getVariable [QGVAR(bloodVolume), 100])) then {
|
if (_blood != (_unit getVariable [QGVAR(bloodVolume), 100])) then {
|
||||||
_unit setVariable [QGVAR(bloodVolume), _blood, _syncValues];
|
_unit setVariable [QGVAR(bloodVolume), _blood, _syncValues];
|
||||||
if (_blood <= 35 and !(_unit getVariable [QGVAR(isUnconscious), false])) then {
|
if (_blood <= 35 and !(_unit getVariable ["ACE_isUnconscious", false])) then {
|
||||||
[_unit, true] call FUNC(setUnconscious);
|
[_unit, true] call FUNC(setUnconscious);
|
||||||
};
|
};
|
||||||
if (_blood == 0) then {
|
if (_blood == 0) then {
|
||||||
|
@ -57,7 +57,7 @@ _unit setvariable [QGVAR(airwayCollapsed), false, true];
|
|||||||
// generic medical admin
|
// generic medical admin
|
||||||
_unit setvariable [QGVAR(addedToUnitLoop), false, true];
|
_unit setvariable [QGVAR(addedToUnitLoop), false, true];
|
||||||
_unit setvariable [QGVAR(inCardiacArrest), false, true];
|
_unit setvariable [QGVAR(inCardiacArrest), false, true];
|
||||||
_unit setVariable [QGVAR(isUnconscious), false, true];
|
_unit setVariable ["ACE_isUnconscious", false, true];
|
||||||
_unit setvariable [QGVAR(hasLostBlood), false, true];
|
_unit setvariable [QGVAR(hasLostBlood), false, true];
|
||||||
_unit setvariable [QGVAR(isBleeding), false, true];
|
_unit setvariable [QGVAR(isBleeding), false, true];
|
||||||
_unit setvariable [QGVAR(hasPain), false, true];
|
_unit setvariable [QGVAR(hasPain), false, true];
|
||||||
|
@ -52,7 +52,7 @@ if (alive _unit) exitwith {
|
|||||||
// generic medical admin
|
// generic medical admin
|
||||||
_unit setvariable [QGVAR(addedToUnitLoop), false, true];
|
_unit setvariable [QGVAR(addedToUnitLoop), false, true];
|
||||||
_unit setvariable [QGVAR(inCardiacArrest), false, true];
|
_unit setvariable [QGVAR(inCardiacArrest), false, true];
|
||||||
_unit setVariable [QGVAR(isUnconscious), false, true];
|
_unit setVariable ["ACE_isUnconscious", false, true];
|
||||||
_unit setvariable [QGVAR(hasLostBlood), false, true];
|
_unit setvariable [QGVAR(hasLostBlood), false, true];
|
||||||
_unit setvariable [QGVAR(isBleeding), false, true];
|
_unit setvariable [QGVAR(isBleeding), false, true];
|
||||||
_unit setvariable [QGVAR(hasPain), false, true];
|
_unit setvariable [QGVAR(hasPain), false, true];
|
||||||
|
Loading…
Reference in New Issue
Block a user