Skip to content

Commit

Permalink
Hearing - Tone down strength of explosion hearing damage (#10409)
Browse files Browse the repository at this point in the history
* use sqrt of _maxDistance

* divide maxDistance by 2 instead
  • Loading branch information
LinkIsGrim authored Oct 14, 2024
1 parent 1496ddf commit ee2d6bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/hearing/functions/fnc_explosion.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee2d6bd

Please sign in to comment.