mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #1835 from jonpas/disableEarRingingOnTheFly
Exit Ear Ringing PFH when disabled during ringing
This commit is contained in:
commit
97f3ec4f65
@ -45,7 +45,7 @@ GVAR(earRingingPFH) = [{
|
||||
private ["_prior"];
|
||||
_prior = (_unit getvariable [QGVAR(dv), 0]) min 20;
|
||||
|
||||
if (!alive _unit || _prior <= 0) exitWith {
|
||||
if (!alive _unit || _prior <= 0 || GVAR(DisableEarRinging)) exitWith {
|
||||
_unit setVariable [QGVAR(dv), 0];
|
||||
_unit setVariable [QGVAR(prior), 0];
|
||||
GVAR(beep) = false;
|
||||
|
Loading…
Reference in New Issue
Block a user