protected override ConsoleCmdResult ProcessConsoleCmd(BinaryReader br) { ConsoleCmdResult consoleCmdResult = base.ProcessConsoleCmd(br); StringBuilder stringBuilder = this._debugBuffer; object[] currentTick = new object[] { base.CurrentTick, ": ", consoleCmdResult.Command, Environment.NewLine }; stringBuilder.Append(string.Concat(currentTick)); if (this._startAdjustType == null && base.CurrentTick > 0 && consoleCmdResult.Command == "ss_force_primary_fullscreen 0") { this._startAdjustType = "Portal2 co-op course 6 Start Standard"; this._startTick = base.CurrentTick; } if (this._endAdjustType == null && base.CurrentTick > 0) { if (consoleCmdResult.Command.StartsWith("playvideo_end_level_transition") && base.Map != "mp_coop_paint_crazy_box") { this._endAdjustType = "Portal2 co-op course 6 End Standard"; this._endTick = base.CurrentTick; } else if (consoleCmdResult.Command == "playvideo_exitcommand_nointerrupt dlc1_endmovie end_movie movie_outro" && base.Map == "mp_coop_paint_crazy_box") { this._endAdjustType = "Portal2 co-op course 6 Run End"; this._endTick = base.CurrentTick; } } return(consoleCmdResult); }
protected override ConsoleCmdResult ProcessConsoleCmd(BinaryReader br) { ConsoleCmdResult consoleCmdResult = base.ProcessConsoleCmd(br); StringBuilder stringBuilder = this._debugBuffer; object[] currentTick = new object[] { base.CurrentTick, ": ", consoleCmdResult.Command, Environment.NewLine }; stringBuilder.Append(string.Concat(currentTick)); return(consoleCmdResult); }
protected override ConsoleCmdResult ProcessConsoleCmd(BinaryReader br) { ConsoleCmdResult consoleCmdResult = base.ProcessConsoleCmd(br); if (this._endAdjustType == null && base.Map == "escape_02" && consoleCmdResult.Command == "startneurotoxins 99999") { this._endAdjustType = "Crosshair Disappear"; this._endTick = base.CurrentTick + 1; } return(consoleCmdResult); }
protected override ConsoleCmdResult ProcessConsoleCmd(BinaryReader br) { long position = br.BaseStream.Position; int num = br.ReadInt32(); string str = Encoding.ASCII.GetString(br.ReadBytes(num)).TrimEnd(new char[1]); ConsoleCmdResult consoleCmdResult = new ConsoleCmdResult() { Read = br.BaseStream.Position - position, Command = str }; return(consoleCmdResult); }