iw4x integration - add delay before sending up persistent data

This commit is contained in:
RaidMax 2022-08-31 16:17:02 -05:00
parent 809cb0b7f4
commit ca35fbb19f

View File

@ -93,6 +93,8 @@ Log2Console( logLevel, message )
SetPersistentData() SetPersistentData()
{ {
self endon( "disconnect" );
guidHigh = self GetPlayerData( "bests", "none" ); guidHigh = self GetPlayerData( "bests", "none" );
guidLow = self GetPlayerData( "awards", "none" ); guidLow = self GetPlayerData( "awards", "none" );
persistentGuid = guidHigh + "," + guidLow; persistentGuid = guidHigh + "," + guidLow;
@ -100,6 +102,8 @@ SetPersistentData()
if ( guidIsStored ) if ( guidIsStored )
{ {
// give IW4MAdmin time to collect IP
wait( 15 );
scripts\_integration_base::LogDebug( "Uploading persistent guid " + persistentGuid ); scripts\_integration_base::LogDebug( "Uploading persistent guid " + persistentGuid );
scripts\_integration_base::SetClientMeta( "PersistentClientGuid", persistentGuid ); scripts\_integration_base::SetClientMeta( "PersistentClientGuid", persistentGuid );
return; return;