Skip to content

Commit

Permalink
Prevent Self-Damage From Generating Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Apr 8, 2024
1 parent 6c9d2d0 commit 0169791
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/IGPlus_HitFeedbackMessage.uc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ static function ClientReceive(
if (RelatedPRI_1 == none || RelatedPRI_2 == none)
return;

if (RelatedPRI_1 == RelatedPRI_2)
return; // self-damage doesnt need feedback

if (P.IsA('bbPlayer'))
Settings = bbPlayer(P).Settings;
else if (P.IsA('bbCHSpectator'))
Expand Down

0 comments on commit 0169791

Please sign in to comment.