public void ResetPuck() { MemoryEditor.WriteFloat(1f, 0x187B708); MemoryEditor.WriteFloat(0f, 0x187B70C); MemoryEditor.WriteFloat(0f, 0x187B710); MemoryEditor.WriteFloat(0f, 0x187B714); MemoryEditor.WriteFloat(1f, 0x187B718); MemoryEditor.WriteFloat(0f, 0x187B71C); MemoryEditor.WriteFloat(0f, 0x187B720); MemoryEditor.WriteFloat(0f, 0x187B72C); MemoryEditor.WriteFloat(0f, 0x187B730); MemoryEditor.WriteFloat(0f, 0x187B734); MemoryEditor.WriteFloat(0f, 0x187B724); MemoryEditor.WriteFloat(1f, 0x187B728); MemoryEditor.WriteFloat(0f, 0x187B744); MemoryEditor.WriteFloat(0f, 0x187B748); MemoryEditor.WriteFloat(0f, 0x187B74C); }
private void HandleCamera(float deltaTime) { // Check Hotkeys for key presses and adjust camera accordingly, get mouse location etc! if (((Hotkeys)pitchIncreaseHotkey.Tag).IsTriggered()) { pitch += speed * deltaTime; m.WriteFloat(PitchAddress, pitch); } else if (((Hotkeys)pitchDecreaseHotkey.Tag).IsTriggered()) { pitch -= speed * deltaTime; m.WriteFloat(PitchAddress, pitch); } if (((Hotkeys)yawIncreaseHotkey.Tag).IsTriggered()) { yaw += speed * deltaTime; m.WriteFloat(YawAddress, yaw); } else if (((Hotkeys)yawDecreaseHotkey.Tag).IsTriggered()) { yaw -= speed * deltaTime; m.WriteFloat(YawAddress, yaw); } if (((Hotkeys)cameraHeightIncreaseHotkey.Tag).IsTriggered()) { cameraHeight += speed * deltaTime; m.WriteFloat(CameraHeightAddress, cameraHeight); } else if (((Hotkeys)cameraHeightDecreaseHotkey.Tag).IsTriggered()) { cameraHeight -= speed * deltaTime; m.WriteFloat(CameraHeightAddress, cameraHeight); } if (((Hotkeys)drawDistanceIncreaseHotkey.Tag).IsTriggered()) { drawDistance += 15.0f * speed * deltaTime; m.WriteFloat(DrawDistanceAddress, drawDistance); } else if (((Hotkeys)drawDistanceDecreaseHotkey.Tag).IsTriggered()) { drawDistance -= 15.0f * speed * deltaTime; m.WriteFloat(DrawDistanceAddress, drawDistance); } if (((Hotkeys)speedIncreaseHotkey.Tag).IsTriggered()) { speed += 0.1f; } else if (((Hotkeys)speedDecreaseHotkey.Tag).IsTriggered()) { speed -= 0.1f; } if (((Hotkeys)restoreDefaultsHotkey.Tag).IsTriggered()) { RestoreDefaults(); } }
public static void Highlight(int value) //0=disable 1=red 2=blue { int shape_a = 0x0043585D; int shape_h = 0x004358EA; int shape_b = 0x004355B9; int color = 0x004355BE; int color_change = 0x04600081; int y = 0x07D3490C; if (value == 0 && highlighted) { Debug.Print("disable highlight"); MemoryEditor.WriteBytes(new byte[2] { 0x6A, 0x04 }, shape_a); MemoryEditor.WriteBytes(new byte[7] { 0xC7, 0x45, 0xF0, 0x00, 0x00, 0x80, 0x3C }, shape_h); MemoryEditor.WriteBytes(new byte[5] { 0x68, 0x00, 0x00, 0x80, 0x3E }, shape_b); MemoryEditor.WriteBytes(new byte[6] { 0x6A, 0x00, 0x6A, 0x00, 0x6A, 0x00 }, color); MemoryEditor.WriteFloat(352f, y); System.Threading.Thread.Sleep(1000); highlighted = false; } if (value == 1 && !highlighted) { highlighted = true; Debug.Print("red highlight"); MemoryEditor.WriteBytes(new byte[2] { 0x6A, 0x06 }, shape_a); MemoryEditor.WriteBytes(new byte[7] { 0xC7, 0x45, 0xF0, 0x00, 0x00, 0x80, 0x3F }, shape_h); MemoryEditor.WriteBytes(new byte[5] { 0x68, 0x00, 0x00, 0x80, 0x3F }, shape_b); MemoryEditor.WriteBytes(new byte[6] { 0xE9, 0xBE, 0xAA, 0x1C, 0x04, 0x90 }, color); MemoryEditor.WriteBytes(new byte[14] { 0x6A, 0x00, 0x6A, 0x00, 0x68, 0x00, 0x00, 0x80, 0x3F, 0xE9, 0x35, 0x55, 0xE3, 0xFB }, color_change); MemoryEditor.WriteFloat(1352f, y); } if (value == 2 && !highlighted) { highlighted = true; Debug.Print("blue highlight"); MemoryEditor.WriteBytes(new byte[2] { 0x6A, 0x06 }, shape_a); MemoryEditor.WriteBytes(new byte[7] { 0xC7, 0x45, 0xF0, 0x00, 0x00, 0x80, 0x3F }, shape_h); MemoryEditor.WriteBytes(new byte[5] { 0x68, 0x00, 0x00, 0x80, 0x3F }, shape_b); MemoryEditor.WriteBytes(new byte[6] { 0xE9, 0xBE, 0xAA, 0x1C, 0x04, 0x90 }, color); MemoryEditor.WriteBytes(new byte[14] { 0x68, 0x00, 0x00, 0x80, 0x3F, 0x6A, 0x00, 0x6A, 0x00, 0xE9, 0x35, 0x55, 0xE3, 0xFB }, color_change); MemoryEditor.WriteFloat(1352f, y); } }