- 46
- 7
Код аирбрейка:
#include "pch.h"
float* coordinates = (*(DWORD*)0xB6F5F0) ? (float*)(*(DWORD*)(*(DWORD*)0xB6F5F0 + 0x14) + 0x30) : NULL;
DWORD Gravity = *(DWORD*)0x863984;
void airbrake() {
bool CheatOn = false;
while (1) {
if (GetAsyncKeyState(VK_RSHIFT) && CheatOn == false)
{
CheatOn = true;
*(DWORD*)0x863984 = 0.013;
}
if (CheatOn == true) {
if (GetAsyncKeyState(VK_DELETE))
{
CheatOn = false;
}
GetAsyncKeyState(VK_UP) ? coordinates[2] += 0.0002f : NULL;
GetAsyncKeyState(VK_DOWN) ? coordinates[2] -= 0.0002f : NULL;
GetAsyncKeyState(VK_RIGHT) ? coordinates[0] += 0.0002f : NULL;
GetAsyncKeyState(VK_LEFT) ? coordinates[0] -= 0.0002f : NULL;
GetAsyncKeyState(0x57) ? coordinates[1] += 0.0002f : NULL;
GetAsyncKeyState(0x53) ? coordinates[1] -= 0.0002f : NULL;
}
if (CheatOn == false) {
*(DWORD*)0x863984 = Gravity;
}
}
}
void init() {
while (*(DWORD*)0xC8D4C0 != 9)
Sleep(100);
airbrake();
}
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)init, NULL, NULL, NULL);
}
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}