Skip to content

Commit

Permalink
Option 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Undid-Iridium committed Aug 7, 2024
1 parent d742766 commit b28c627
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ private static void ProcessEvent(FlashbangGrenade instance, float distance)
continue;
if (!ExiledEvents.Instance.Config.CanFlashbangsAffectThrower && instance.PreviousOwner.SameLife(new(referenceHub)))
continue;
if (Server.FriendlyFire)
{
targetToAffect.Add(player);
continue;
}

if (!IndividualFriendlyFire.CheckFriendlyFirePlayer(instance.PreviousOwner, player.ReferenceHub) && !instance.PreviousOwner.SameLife(new(referenceHub)))
continue;
if (Physics.Linecast(instance.transform.position, player.CameraTransform.position, instance._blindingMask))
Expand Down

0 comments on commit b28c627

Please sign in to comment.