コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: HL2GameHandler.cs プロジェクト: Traderain/VVDemLib
        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);
        }