Skip to content

Commit

Permalink
Frag - Filter remote projectiles from Explosion EH (#10467)
Browse files Browse the repository at this point in the history
Co-authored-by: Grim <[email protected]>
  • Loading branch information
lambdatiger and LinkIsGrim authored Oct 30, 2024
1 parent 1ed7a7d commit 2dc6774
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/frag/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
[{
params ["_projectile", "_posASL"];

if (_projectile getVariable [QGVAR(blacklisted), false]) exitWith {};
// check if a projectile is blacklisted and that it will inflict damage when it explodes to avoid
// multiple events being sent from different clients for one explosion
if (_projectile getVariable [QGVAR(blacklisted), false] || !(_projectile getShotInfo 5)) exitWith {};

private _ammo = typeOf _projectile;
if (GVAR(reflectionsEnabled)) then {
Expand Down

0 comments on commit 2dc6774

Please sign in to comment.