mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Redoing this
This commit is contained in:
parent
e6a0772adb
commit
80ff709676
@ -63,6 +63,10 @@ GVAR(bloodTickCounter) = 0;
|
||||
[true, _unit] call EFUNC(common,setVolume);
|
||||
|
||||
[QUOTE(ADDON), 1, false] call EFUNC(common,setHearingCapability);
|
||||
|
||||
//Force stop heart beat effect
|
||||
GVAR(heartBeatEffectRunning) = false;
|
||||
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Update effects to match new unit's current status (this also handles respawn)
|
||||
|
@ -17,6 +17,10 @@
|
||||
|
||||
private _heartRate = GET_HEART_RATE(ACE_player);
|
||||
|
||||
if (!GVAR(heartBeatEffectRunning)) exitWith {
|
||||
TRACE_1("Ending heart beat effect - force stopped",_heartRate);
|
||||
};
|
||||
|
||||
if (_heartRate == 0) exitWith {
|
||||
TRACE_1("Ending heart beat effect - zero",_heartRate);
|
||||
GVAR(heartBeatEffectRunning) = false;
|
||||
|
@ -23,6 +23,7 @@ if (EGVAR(common,OldIsCamera) || {!alive ACE_player}) exitWith {
|
||||
[false] call FUNC(effectBloodVolume);
|
||||
[false] call FUNC(effectBloodVolumeIcon);
|
||||
[false] call FUNC(effectBleeding);
|
||||
GVAR(heartBeatEffectRunning) = false;
|
||||
};
|
||||
|
||||
BEGIN_COUNTER(handleEffects);
|
||||
|
Loading…
Reference in New Issue
Block a user