mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
cd09c2b3de
commit
cf1910eb79
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user