Changed: Remove ear ringing from flashbang explosions when wearing protective gear (e.g. ComTacs) (#6746)

* Remove ear ringing from flashbangs when wearing protective gear, reduce strength by damageCoefficent
This commit is contained in:
Jo David 2018-12-28 14:46:13 +01:00 committed by GitHub
parent cd09c2b3de
commit cf1910eb79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,8 +92,10 @@ if (hasInterface && {!isNull ACE_player} && {alive ACE_player}) then {
_strength = _strength * _losCoefficient;
// Add ace_hearing ear ringing sound effect
if (isClass (configFile >> "CfgPatches" >> "ACE_Hearing") && {_strength > 0}) then {
[40 * _strength] call EFUNC(hearing,earRinging);
if (isClass (configFile >> "CfgPatches" >> "ACE_Hearing") && {_strength > 0 && {EGVAR(hearing,damageCoefficent) > 0.25}}) then {
private _earringingStrength = 40 * _strength * EGVAR(hearing,damageCoefficent);
[_earringingStrength] call EFUNC(hearing,earRinging);
TRACE_1("Earringing Strength",_earringingStrength);
};
// add ace_medical pain effect: