#include <Windows.h>
#include <cmath>
#include <iostream>
#define OFFSET_DW_LOCAL_PLAYER 0x1A29B8
#define OFFSET_DW_ENTITY_LIST 0x1A2A78
#define OFFSET_M_I_HEALTH 0x1F8
#define OFFSET_M_I_TEAM_NUM 0xF0
#define OFFSET_M_VEC_ORIGIN 0x130
#define OFFSET_M_VEC_VIEW_OFFSET 0x104
#define OFFSET_M_ANG_ROTATION 0x110
HANDLE processHandle;
DWORD clientBase;
HWND gameWindow;
int main() {
gameWindow = FindWindowA(NULL, "Counter-Strike");
if (!gameWindow) { MessageBoxA(NULL, "CS 1.6 не найдена", "Ошибка", MB_OK); return 1; }
DWORD pid;
GetWindowThreadProcessId(gameWindow, &pid);
processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
HMODULE modules[1024];
DWORD needed;
EnumProcessModules(processHandle, modules, sizeof(modules), &needed);
for (int i = 0; i < needed / sizeof(HMODULE); i++) {
char name[256];
GetModuleBaseNameA(processHandle, modules[i], name, sizeof(name));
if (strcmp(name, "hw.dll") == 0) clientBase = (DWORD)modules[i];
}
MessageBoxA(NULL, "Чит запущен", "CS 1.6 Aimbot", MB_OK);
while (true) {
if (GetAsyncKeyState(VK_MBUTTON) & 0x8000) {
// Здесь будет логика аима
}
Sleep(10);
}
return 0;
}