// Token: 0x06001C0D RID: 7181 RVA: 0x0008EE20 File Offset: 0x0008D020 private IEnumerator StartNewSpeedhackDetection() { yield return(new WaitForSeconds(5f)); CheatDetection.SyncSystemTime(); LimitedQueue <float> timeDifference = new LimitedQueue <float>(5); for (;;) { yield return(new WaitForSeconds(5f)); if (GameState.Current.HasJoinedGame) { timeDifference.Enqueue((float)this.GameTime / (float)this.RealTime); CheatDetection.SyncSystemTime(); if (timeDifference.Count == 5) { float avg = this.averageSpeedHackResults(timeDifference); if (avg != -1f) { if ((double)avg >= 0.75) { break; } timeDifference.Clear(); } } } } AutoMonoBehaviour <CommConnectionManager> .Instance.Client.Lobby.Operations.SendSpeedhackDetectionNew(timeDifference.ToList <float>()); yield break; }
// Token: 0x06001A90 RID: 6800 RVA: 0x0008AAA8 File Offset: 0x00088CA8 public void StartMatch(int roundNumber, int endTime) { this.roundStartTime = endTime - this.RoomData.TimeLimit * 1000; this.LeadStatus.Reset(); Singleton <GameStateController> .Instance.Client.Peer.FetchServerTimestamp(); CheatDetection.SyncSystemTime(); LevelCamera.ResetFeedback(); GameState.Current.PlayerData.RemainingKills.Value = this.RoomData.KillLimit; GameState.Current.PlayerData.RemainingTime.Value = 0; }