Skip to content

Commit

Permalink
Requested Changes
Browse files Browse the repository at this point in the history
Co-Authored-By: johnb432 <[email protected]>
  • Loading branch information
mrschick and johnb432 committed Sep 25, 2024
1 parent 9586765 commit a2d3786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/overpressure/functions/fnc_firedEHBB.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions addons/overpressure/functions/fnc_getDistance.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a2d3786

Please sign in to comment.