On MW3 I decided to make a jump height, speed and gravity changer to host infected lobbies, this seemed simple enough and I got gravity and speed working but when I use my tool to change the jump height value it just won't change. I can change the value with cheat engine and server controls and the method I'm using to write the float value works for other addresses but not for jump height or addresses around that area in the memory. Anybody else know how to fix this?
I am using Jorndels memory class and here is the relevant code:
Code:
private void WriteF(int Address, float Value)
{
byte[] Buffer = BitConverter.GetBytes(Value);
IntPtr Zero = IntPtr.Zero;
WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero);
}
public void WriteFloat(int Address, float Value)
{
WriteF(Address, Value);
}
private void button1_Click(object sender, EventArgs e)
{
if (Process_Handle("iw5mp"))
{
WriteFloat(0x00871508, Convert.ToSingle(numericUpDown1.Value));
}
}
Thanks in advance c: