diff --git a/addons/overpressure/functions/fnc_firedEHBB.sqf b/addons/overpressure/functions/fnc_firedEHBB.sqf index 8334bb24a44..e1f09cf6648 100644 --- a/addons/overpressure/functions/fnc_firedEHBB.sqf +++ b/addons/overpressure/functions/fnc_firedEHBB.sqf @@ -52,7 +52,7 @@ if (_distance < _backblastRange && {EGVAR(hearing,playerVehAttenuation) > 0.8}) // Skip if vehicle backblast reflection is disabled private _vehicle = vehicle _shooter; - if (_vehicle != _shooter && {getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(noReflection)) == 1}) exitWith {}; + if (_vehicle != _shooter && {getNumber (configOf _vehicle >> QGVAR(noReflection)) == 1}) exitWith {}; private _alpha = sqrt (1 - _distance / _backblastRange); private _beta = sqrt 0.5; diff --git a/addons/overpressure/functions/fnc_getDistance.sqf b/addons/overpressure/functions/fnc_getDistance.sqf index 48473f70820..62ca393c0d8 100644 --- a/addons/overpressure/functions/fnc_getDistance.sqf +++ b/addons/overpressure/functions/fnc_getDistance.sqf @@ -40,11 +40,11 @@ private _distance = 999; // Calculate the angle between the terrain and the back blast direction private _angle = 90 - acos (- (_surfaceNormal vectorDotProduct _direction)); TRACE_3("Terrain Intersect",_surfaceNormal,_direction,_angle); - // Angles is below 25deg, no backblast at all + // Angles is below 25°, no backblast at all if (_angle < 25) exitWith {_distance = 999}; - // Angles is below 45deg the distance is increased according to the difference + // Angles is below 45° the distance is increased according to the difference if (_angle < 45) exitWith {_distance = _distance * (5 - 4 * sqrt ((_angle - 25)/20))}; - // Angles above 45deg create full backblast + // Angles above 45° create full backblast }; }; } forEach _intersections;