From 4d6c4021015fc919adb9364da6aaea6aa166f873 Mon Sep 17 00:00:00 2001 From: Lukas Bagaric Date: Wed, 13 Mar 2024 18:49:59 +0100 Subject: [PATCH] Add Shot Rejection Tracing --- Classes/bbPlayer.uc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Classes/bbPlayer.uc b/Classes/bbPlayer.uc index f63c518..b4cb5bc 100644 --- a/Classes/bbPlayer.uc +++ b/Classes/bbPlayer.uc @@ -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; @@ -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;