mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Hearing - Fix deafness reducing when game is paused (#10039)
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
This commit is contained in:
parent
d9a2aa01a4
commit
98f4b51c52
@ -15,6 +15,8 @@
|
|||||||
* Public: No
|
* Public: No
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (isGamePaused) exitWith {};
|
||||||
|
|
||||||
if (!alive ACE_player) exitWith {
|
if (!alive ACE_player) exitWith {
|
||||||
if (missionNamespace getVariable [QGVAR(disableVolumeUpdate), false]) exitWith {};
|
if (missionNamespace getVariable [QGVAR(disableVolumeUpdate), false]) exitWith {};
|
||||||
|
|
||||||
@ -39,8 +41,6 @@ if (!_updateVolumeOnly) then {
|
|||||||
|
|
||||||
GVAR(time3) = CBA_missionTime;
|
GVAR(time3) = CBA_missionTime;
|
||||||
|
|
||||||
if (!isGameFocused) exitWith {};
|
|
||||||
|
|
||||||
if (GVAR(deafnessDV) > 19.75) then {
|
if (GVAR(deafnessDV) > 19.75) then {
|
||||||
playSound (["ACE_Combat_Deafness_Heavy", "ACE_Combat_Deafness_Heavy_NoRing"] select GVAR(disableEarRinging));
|
playSound (["ACE_Combat_Deafness_Heavy", "ACE_Combat_Deafness_Heavy_NoRing"] select GVAR(disableEarRinging));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user