Ejemplo n.º 1
0
 // Token: 0x060001D9 RID: 473 RVA: 0x0000B26C File Offset: 0x0000946C
 public void StartRecording()
 {
     Console.WriteLine("Started recording");
     this.RecordingStarted = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();
     this.RecordingName    = this.RecordingStarted.ToString() + "-" + base.GetType().Name;
     Program.GameConsole.SendCommand("stop; voice_scale 0; record " + this.RecordingName);
     Program.GameConsole.SendCommand("host_writeconfig reset.cfg");
     Thread.Sleep(1000);
     Program.GameConsole.SendCommand("clear");
     ReplayLogger.Log(Program.version, false, this.RecordingName);
 }
Ejemplo n.º 2
0
 // Token: 0x0600007F RID: 127 RVA: 0x00006AE0 File Offset: 0x00004CE0
 public virtual void AfterActivate(bool logging = true)
 {
     if (logging)
     {
         ReplayLogger.Log(base.GetType().Name, true, "");
         Analytics.TrackEvent("Punishments", base.GetType().Name, "", 0);
         if (Program.Debug.ShowDebugMessages)
         {
             Program.GameConsole.SendCommand("Say \"Punishment activated (" + base.GetType().Name + ")\"");
         }
     }
 }
Ejemplo n.º 3
0
 private void LogAll(MatchRender renderP1)
 {
     _logger.Log(renderP1);
     _replayLogger.Log(renderP1);
     _consoleLogger.Log(renderP1);
 }
Ejemplo n.º 4
0
 // Token: 0x060000BF RID: 191 RVA: 0x00007705 File Offset: 0x00005905
 public ReverseSpeedhack() : base(10000, true, 500)
 {
     ReplayLogger.Log(base.GetType().Name, true, "");
 }