From ca35fbb19fec09af05184bcbd9dde306ec572e61 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Wed, 31 Aug 2022 16:17:02 -0500 Subject: [PATCH] iw4x integration - add delay before sending up persistent data --- GameFiles/GameInterface/_integration_iw4x.gsc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GameFiles/GameInterface/_integration_iw4x.gsc b/GameFiles/GameInterface/_integration_iw4x.gsc index 87af86e6a..fa66a23c0 100644 --- a/GameFiles/GameInterface/_integration_iw4x.gsc +++ b/GameFiles/GameInterface/_integration_iw4x.gsc @@ -93,6 +93,8 @@ Log2Console( logLevel, message ) SetPersistentData() { + self endon( "disconnect" ); + guidHigh = self GetPlayerData( "bests", "none" ); guidLow = self GetPlayerData( "awards", "none" ); persistentGuid = guidHigh + "," + guidLow; @@ -100,6 +102,8 @@ SetPersistentData() if ( guidIsStored ) { + // give IW4MAdmin time to collect IP + wait( 15 ); scripts\_integration_base::LogDebug( "Uploading persistent guid " + persistentGuid ); scripts\_integration_base::SetClientMeta( "PersistentClientGuid", persistentGuid ); return;