#include #include #include #include #include #include #include #include DWORD WINAPI Sa_Thread(LPVOID); DWORD APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { switch (fdwReason) { case DLL_PROCESS_ATTACH: CreateThread(NULL, NULL, Sa_Thread, NULL, NULL, NULL); break; case DLL_PROCESS_DETACH: break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; } return TRUE; } void airbrake() { float* position = (*(DWORD*)0xB6F5F0) ? (float*)(*(DWORD*)(*(DWORD*)0xB6F5F0 + 0x14) + 0x30) : NULL; while (true) { if (GetAsyncKeyState(VK_UP)) { position[0] += 0.00001f; } else if (GetAsyncKeyState(VK_DOWN)) { position[0] -= 0.0001f; } else if (GetAsyncKeyState(VK_RIGHT)) { position[1] += 0.0001f; } else if (GetAsyncKeyState(VK_LEFT)) { position[1] -= 0.0001f; } else if (GetAsyncKeyState(VK_SPACE)) { position[2] += 0.0001f; } else if (GetAsyncKeyState(VK_SHIFT)) { position[2] -= 0.0001f; } } } DWORD WINAPI Sa_Thread(LPVOID) { airbrake(); return 0; }