mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
While in revive state, ensure vitals are never above 0 for adv medical
This commit is contained in:
@ -66,6 +66,11 @@ if (((_reviveVal == 1 && {[_unit] call EFUNC(common,isPlayer)} || _reviveVal ==
|
|||||||
_unit setvariable [QGVAR(reviveStartTime), nil];
|
_unit setvariable [QGVAR(reviveStartTime), nil];
|
||||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||||
};
|
};
|
||||||
|
if (GVAR(level) >= 2) then {
|
||||||
|
if (_unit getvariable [QGVAR(heartRate), 60] > 0) then {
|
||||||
|
_unit setvariable [QGVAR(heartRate), 0];
|
||||||
|
};
|
||||||
|
};
|
||||||
}, 1, [_unit] ] call CBA_fnc_addPerFrameHandler;
|
}, 1, [_unit] ] call CBA_fnc_addPerFrameHandler;
|
||||||
false;
|
false;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user