Skip to content

Commit

Permalink
Add Shot Rejection Tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Mar 13, 2024
1 parent 35f7ee6 commit 4d6c402
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Classes/bbPlayer.uc
Original file line number Diff line number Diff line change
Expand Up @@ -3543,8 +3543,10 @@ function xxNN_Fire( float TimeStamp, int ProjIndex, vector ClientLoc, vector Cli
return;
LastFireTimeStamp = TimeStamp;

if (TimeStamp + zzUTPure.Settings.FireTimeout < CurrentTimeStamp)
if (TimeStamp + zzUTPure.Settings.FireTimeout < CurrentTimeStamp) {
Log("Rejected Shot"@self@TimeStamp@CurrentTimeStamp, 'IGPlus');
return;
}

xxEnableCarcasses();
zzNN_ProjIndex = ProjIndex;
Expand Down Expand Up @@ -3634,8 +3636,10 @@ function xxNN_AltFire( float TimeStamp, int ProjIndex, vector ClientLoc, vector
return;
LastAltFireTimeStamp = TimeStamp;

if (TimeStamp + zzUTPure.Settings.FireTimeout < CurrentTimeStamp)
if (TimeStamp + zzUTPure.Settings.FireTimeout < CurrentTimeStamp) {
Log("Rejected Shot"@self@TimeStamp@CurrentTimeStamp, 'IGPlus');
return;
}

xxEnableCarcasses();
zzNN_ProjIndex = ProjIndex;
Expand Down

0 comments on commit 4d6c402

Please sign in to comment.