Skip to content

Commit

Permalink
Rephrase comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrschick committed Nov 7, 2024
1 parent 370f1bf commit 2bb02d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/common/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ GVAR(OldIsCamera) = false;
["ace_activeCameraChanged", [_player, GVAR(OldIsCamera)]] call CBA_fnc_localEvent;
}, true] call CBA_fnc_addPlayerEventHandler;

// Update veh audio attunation when player veh changes
// Update vehicle audio attenuation when player vehicle changes
GVAR(playerVehAttenuation) = 1;
["vehicle", {
params ["_player", "_vehicle"];
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 25°, no backblast at all
// Angles below 25° don't cause backblast reflection
if (_angle < 25) exitWith {_distance = 999};
// Angles is below 45° the distance is increased according to the difference
// At angles below 45° the distance is increased according to the difference
if (_angle < 45) exitWith {_distance = _distance * (5 - 4 * sqrt ((_angle - 25)/20))};
// Angles above 45° create full backblast
// Angles above 45° create full backblast reflection
};
};
} forEach _intersections;
Expand Down

0 comments on commit 2bb02d7

Please sign in to comment.