private void timer2_Tick(object sender, EventArgs e) { //addresses tend to change when the player dies, so we update them every 5 seconds xAddress = MemoryFunctions.GetDMAAddy(hProc, physMod.BaseAddress + 0x25FC20, new IntPtr[] { (IntPtr)0x58, (IntPtr)0x0, (IntPtr)0x60, (IntPtr)0x0, (IntPtr)0x50, (IntPtr)0x20, (IntPtr)0x210 }); yAddress = MemoryFunctions.GetDMAAddy(hProc, physMod.BaseAddress + 0x25FC20, new IntPtr[] { (IntPtr)0x58, (IntPtr)0x0, (IntPtr)0x60, (IntPtr)0x0, (IntPtr)0x50, (IntPtr)0x20, (IntPtr)0x220 }); zAddress = MemoryFunctions.GetDMAAddy(hProc, physMod.BaseAddress + 0x25FC20, new IntPtr[] { (IntPtr)0x58, (IntPtr)0x0, (IntPtr)0x60, (IntPtr)0x0, (IntPtr)0x50, (IntPtr)0x20, (IntPtr)0x218 }); xSpeedAddress = MemoryFunctions.GetDMAAddy(hProc, mainMod.BaseAddress + 0x4942C48, new IntPtr[] { (IntPtr)0x20, (IntPtr)0x8, (IntPtr)0x0, (IntPtr)0x8, (IntPtr)0xd8, (IntPtr)0x0, (IntPtr)0x114 }); ySpeedAddress = MemoryFunctions.GetDMAAddy(hProc, mainMod.BaseAddress + 0x4942C48, new IntPtr[] { (IntPtr)0x20, (IntPtr)0x8, (IntPtr)0x0, (IntPtr)0x8, (IntPtr)0xd8, (IntPtr)0x0, (IntPtr)0x11C }); zSpeedAddress = MemoryFunctions.GetDMAAddy(hProc, mainMod.BaseAddress + 0x4942C48, new IntPtr[] { (IntPtr)0x20, (IntPtr)0x8, (IntPtr)0x0, (IntPtr)0x8, (IntPtr)0xd8, (IntPtr)0x0, (IntPtr)0x118 }); rotAddress = MemoryFunctions.GetDMAAddy(hProc, mainMod.BaseAddress + 0x45BB8F8, new IntPtr[] { (IntPtr)0x480, (IntPtr)0x1b0, (IntPtr)0xd0, (IntPtr)0x680, (IntPtr)0xb8, (IntPtr)0x8, (IntPtr)0x6CC }); orientAddress = MemoryFunctions.GetDMAAddy(hProc, mainMod.BaseAddress + 0x45BB8F8, new IntPtr[] { (IntPtr)0x480, (IntPtr)0x1b0, (IntPtr)0xd0, (IntPtr)0x680, (IntPtr)0xb8, (IntPtr)0x8, (IntPtr)0x7E4 }); }
private void timer2_Tick(object sender, EventArgs e) { //addresses tend to change when the player dies, so we update them every 5 seconds xAddress = MemoryFunctions.GetDMAAddy(hProc, physMod.BaseAddress + 0x25FC20, new IntPtr[] { (IntPtr)0x58, (IntPtr)0x0, (IntPtr)0x60, (IntPtr)0x0, (IntPtr)0x50, (IntPtr)0x20, (IntPtr)0x210 }); yAddress = xAddress + 0x10; zAddress = xAddress + 0x8; xSpeedAddress = MemoryFunctions.GetDMAAddy(hProc, physMod.BaseAddress + 0x25FC20, new IntPtr[] { (IntPtr)0x58, (IntPtr)0x0, (IntPtr)0x8, (IntPtr)0x8, (IntPtr)0xd8, (IntPtr)0x0, (IntPtr)0x114 }); ySpeedAddress = xSpeedAddress + 0x8; zSpeedAddress = xSpeedAddress + 0x4; orientAddress = MemoryFunctions.GetDMAAddy(hProc, mainMod.BaseAddress + 0x463C2E0, new IntPtr[] { (IntPtr)0x28, (IntPtr)0x18, (IntPtr)0x68, (IntPtr)0x20, (IntPtr)0xb0, (IntPtr)0xf8, (IntPtr)0x0 }); rotAddress = orientAddress + 0x10; }