Example #1
0
        public static void StartSkipFERace()
        {
            int v1; // eax
            int v2; // ecx


            //MWDBG.writeMem((IntPtr)0x904FC4 = LODWORD(SkipFEDifficulty);
            MWDBG.writeMem <int>((IntPtr)0x904FD8, MWDBG.readMem <int>(Info.SkipFE.NumLaps));
            MWDBG.writeMem <int>((IntPtr)0x904FB8, MWDBG.readMem <int>(Info.SkipFE.TrackNumber));
            MWDBG.writeMem <int>((IntPtr)0x905008, MWDBG.readMem <int>(Info.SkipFE.MaxCops));
            MWDBG.writeMem <int>((IntPtr)0x904FCC, 1);//RaceType
            MWDBG.writeMem <int>((IntPtr)0x904FDC, MWDBG.readMem <int>(Info.SkipFE.NumPlayerCars));
            MWDBG.writeMem <int>((IntPtr)0x904FE0, MWDBG.readMem <int>(Info.SkipFE.NumAICars));
            MWDBG.writeMem <byte>((IntPtr)0x904FED, (byte)(MWDBG.readMem <int>(Info.SkipFE.NumAICars) + 2));
            MWDBG.writeMem <byte>((IntPtr)0x904FEC, (byte)(MWDBG.readMem <int>(Info.SkipFE.NumAICars) + 1));

            MWDBG.writeMem <int>((IntPtr)0x90501C, 1065353216);
            MWDBG.writeMem <int>((IntPtr)0x905020, 1065353216);
            MWDBG.writeMem <int>((IntPtr)0x905030, 0);
            MWDBG.m[(IntPtr)0x56C5B0 - 0x400000].Execute();

            /*dword_ = SkipFEMaxCops;
             * dword_904FBC = SkipFETrackDirection;
             * dword_ = SkipFERaceType;
             * dword_904FD0 = dword_92609C;
             * dword_905014 = SkipFEDifficulty_0;
             * dword_90500C = SkipFEDifficulty_0;
             * dword_ = SkipFENumPlayerCars;
             * dword_ = SkipFENumAICars;
             * byte_ = SkipFENumAICars + 2;
             * byte_904FEE = dword_8F86D0 != 0;
             * byte_[0] = SkipFENumAICars + 1;*/
        }
Example #2
0
 public static void SkipFE_Load()
 {
     if (MWDBG.readMem <int>(Info.GameState) != 3)
     {
         MWDBG.m[(IntPtr)0x6052B0 - 0x400000].Execute();
         while (MWDBG.readMem <int>(Info.GameState) != 3)
         {
             Thread.Sleep(20);
         }
     }
     MWDBG.writeMem <int>(Info.SkipFE.Enabled, 1);
     MWDBG.m[(IntPtr)0x56C5B0 - 0x400000].Execute();
 }
Example #3
0
        private void SkipFeOk_Click(object sender, RoutedEventArgs e)
        {
            MWDBG.m.Windows.MainWindow.Activate();

            string name     = (string)SkipFeCarBox.SelectedItem;
            var    MemModel = MWDBG.m.Memory.Allocate(name.Length);

            MemModel.WriteString(name);
            MemModel.MustBeDisposed = false;

            MWDBG.writeMem <int>(Info.SkipFE.PlayerCar, MemModel.BaseAddress.ToInt32());

            MWD.SkipFE_Load();
        }
Example #4
0
 public static void Set(MemorySharp m, float value)
 {
     MWDBG.writeMem <float>(Info.GameSpeed, value);
 }
Example #5
0
 public static void Increase(MemorySharp m)
 {
     MWDBG.writeMem <float>(Info.GameSpeed, Get(m) + 0.1f);
 }