mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove ear ringing upon spectator entry
Volume updating was disabled, however any existing ringing would persist. Setting the volume to 0 should make the hearing PFH stop playing sound.
This commit is contained in:
parent
b6dd7b941f
commit
cf368f240f
@ -30,7 +30,10 @@ if (!hasInterface) exitWith {};
|
||||
if (_set isEqualTo GVAR(isSet)) exitwith {};
|
||||
|
||||
// Handle common addon audio
|
||||
if (["ace_hearing"] call EFUNC(common,isModLoaded)) then {EGVAR(hearing,disableVolumeUpdate) = _set};
|
||||
if (["ace_hearing"] call EFUNC(common,isModLoaded)) then {
|
||||
EGVAR(hearing,disableVolumeUpdate) = _set;
|
||||
EGVAR(hearing,deafnessDV) = 0;
|
||||
};
|
||||
if (["acre_sys_radio"] call EFUNC(common,isModLoaded)) then {[_set] call acre_api_fnc_setSpectator};
|
||||
if (["task_force_radio"] call EFUNC(common,isModLoaded)) then {[player, _set] call TFAR_fnc_forceSpectator};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user