Fix medical_feedback override hearing settings (#7744)

This commit is contained in:
Serg Vergun 2020-06-13 23:55:59 +03:00 committed by GitHub
parent a5ba5abb42
commit 56b397ffa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,8 @@ GVAR(bloodTickCounter) = 0;
[!_unconscious, _unit] call EFUNC(common,setVolume); [!_unconscious, _unit] call EFUNC(common,setVolume);
// Greatly reduce player's hearing ability while unconscious (affects radio addons) // Greatly reduce player's hearing ability while unconscious (affects radio addons)
[QUOTE(ADDON), VOL_UNCONSCIOUS, _unconscious] call EFUNC(common,setHearingCapability); private _volume = missionNamespace getVariable [QEGVAR(hearing,unconsciousnessVolume), VOL_UNCONSCIOUS];
[QUOTE(ADDON), _volume, _unconscious] call EFUNC(common,setHearingCapability);
[true] call FUNC(handleEffects); [true] call FUNC(handleEffects);
["unconscious", _unconscious] call EFUNC(common,setDisableUserInputStatus); ["unconscious", _unconscious] call EFUNC(common,setDisableUserInputStatus);
@ -70,7 +71,8 @@ GVAR(bloodTickCounter) = 0;
[!_status, _new] call EFUNC(common,setVolume); [!_status, _new] call EFUNC(common,setVolume);
[QUOTE(ADDON), VOL_UNCONSCIOUS, _status] call EFUNC(common,setHearingCapability); private _volume = missionNamespace getVariable [QEGVAR(hearing,unconsciousnessVolume), VOL_UNCONSCIOUS];
[QUOTE(ADDON), _volume, _status] call EFUNC(common,setHearingCapability);
[true] call FUNC(handleEffects); [true] call FUNC(handleEffects);
["unconscious", _status] call EFUNC(common,setDisableUserInputStatus); ["unconscious", _status] call EFUNC(common,setDisableUserInputStatus);
}] call CBA_fnc_addPlayerEventHandler; }] call CBA_fnc_addPlayerEventHandler;