Skip to content

Commit

Permalink
Mitigate dependency from addon/hearing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrschick committed Sep 25, 2024
1 parent a2d3786 commit 3e86ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/overpressure/functions/fnc_firedEHBB.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private _distance = 2 * ([_position, _direction, _backblastRange, _shooter] call

TRACE_1("Distance",_distance);

if (_distance < _backblastRange && {EGVAR(hearing,playerVehAttenuation) > 0.8}) then {
if (_distance < _backblastRange && {isNil QEGVAR(hearing,playerVehAttenuation) || {EGVAR(hearing,playerVehAttenuation) > 0.8}}) then {
TRACE_2("",isDamageAllowed _shooter,_shooter getVariable [ARR_2(QEGVAR(medical,allowDamage),true)]);

// Skip damage if not allowed
Expand Down

0 comments on commit 3e86ccd

Please sign in to comment.