From ce27d4fe61ab367df9d2691560a3fff8234f5a24 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Tue, 22 Feb 2022 17:10:33 -0600 Subject: [PATCH] tweak for integration --- GameFiles/IW4x/userraw/scripts/_integration.gsc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GameFiles/IW4x/userraw/scripts/_integration.gsc b/GameFiles/IW4x/userraw/scripts/_integration.gsc index 88db25b9..eae7daa0 100644 --- a/GameFiles/IW4x/userraw/scripts/_integration.gsc +++ b/GameFiles/IW4x/userraw/scripts/_integration.gsc @@ -236,6 +236,11 @@ SaveTrackingMetrics() { IPrintLn( "Saving tracking metrics for " + self.persistentClientId ); } + + if ( !IsDefined( self.lastShotCount ) ) + { + self.lastShotCount = 0; + } currentShotCount = self getPlayerStat( "mostshotsfired" ); change = currentShotCount - self.lastShotCount;