From ee2d6bd7b9b9b13d0b05269fcf160dc242d67e67 Mon Sep 17 00:00:00 2001 From: Grim <69561145+LinkIsGrim@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:45:44 -0300 Subject: [PATCH] Hearing - Tone down strength of explosion hearing damage (#10409) * use sqrt of _maxDistance * divide maxDistance by 2 instead --- addons/hearing/functions/fnc_explosion.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hearing/functions/fnc_explosion.sqf b/addons/hearing/functions/fnc_explosion.sqf index 70ebfb47c37..2d3d5929895 100644 --- a/addons/hearing/functions/fnc_explosion.sqf +++ b/addons/hearing/functions/fnc_explosion.sqf @@ -48,8 +48,8 @@ if (_distance > _maxDistance) exitWith { TRACE_2("too far away",_distance,_maxDistance); }; -private _strength = _vehAttenuation * _explosive * _volume * _maxDistance / _distance^2; - +// Tone down _maxDistance to bring strength back to similar levels as a large burst of a loud weapon +private _strength = _vehAttenuation * _explosive * _volume * (_maxDistance / 2) / _distance^2; TRACE_6("strength",_vehAttenuation,_explosive,_volume,_maxDistance,_distance,_strength); // Call immediately, as it will get picked up later by the update thread anyway