Compare angles triggerbot
After the failiure with the traceray triggerbot because of it being to advanced I decided to develop a view angle trigger.
The problem I am having is comparing the view angles. If I make it a aimbot by setting the calc angle it directly goes to the head but when I compare them with a if statement it does not shoot when I aim for the headbone. Keep in mind this is not hitbox, only going after the headbone.
The problem I am having is comparing the view angles. If I make it a aimbot by setting the calc angle it directly goes to the head but when I compare them with a if statement it does not shoot when I aim for the headbone. Keep in mind this is not hitbox, only going after the headbone.
Code:
int main()
{
DWORD pId;
HWND hwnd = FindWindow(NULL, "Counter-Strike: Global Offensive");
GetWindowThreadProcessId(hwnd, &pId);
HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, NULL, pId);
DWORD clientDll = getDll(pId, "client.dll");
DWORD engineDll = getDll(pId, "engine.dll");
while (true)
{
Vector localPosition = Player.getPosition(hProc, clientDll);
Vector viewAngle = Player.getViewAngle(hProc, engineDll);
for (int i = 0; i < 64; ++i)
{
Vector headBone = Entity.getHeadPos(hProc, clientDll, i);
Vector vAngle = CalcAngle(localPosition, headBone);
if (viewAngle.x == vAngle.x && GetAsyncKeyState(0x02)) // I dont care about the elevation.
{
click(); //If I replace this with Player.setViewAngle(hProc, clientDll, vAngle); it works like a charm.
}
}
Sleep(1); system("cls");
}
return 0;
}

