Skip to content

Commit

Permalink
Use effects volume again for ear ringing
Browse files Browse the repository at this point in the history
  • Loading branch information
BaerMitUmlaut committed Nov 3, 2024
1 parent 0b1c451 commit a9d7d4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/hearing/functions/fnc_updateVolume.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ if (!_updateVolumeOnly) then {

GVAR(time3) = CBA_missionTime;

private _effectsVolume = getAudioOptionVolumes#0;
if (GVAR(deafnessDV) > 19.75) then {
playSoundUI [["ACE_Combat_Deafness_Heavy", "ACE_Combat_Deafness_Heavy_NoRing"] select GVAR(disableEarRinging)];
playSoundUI [["ACE_Combat_Deafness_Heavy", "ACE_Combat_Deafness_Heavy_NoRing"] select GVAR(disableEarRinging), _effectsVolume];
} else {
playSoundUI [["ACE_Combat_Deafness_Medium", "ACE_Combat_Deafness_Medium_NoRing"] select GVAR(disableEarRinging)];
playSoundUI [["ACE_Combat_Deafness_Medium", "ACE_Combat_Deafness_Medium_NoRing"] select GVAR(disableEarRinging), _effectsVolume];
};
};

Expand Down

0 comments on commit a9d7d4b

Please sign in to comment.