HelpCSGO Aimbot Angle -180-180 gap problem.

Posts 1–3 of 3 · Page 1 of 1
CSGO Aimbot Angle -180-180 gap problem.
hello i have made an Aimbot and its in early development and i have a problem with it.
when the angle goes up to 180 and then needs to go to -180 then it will do 360. in game 180 to -180 that is no distance at all but with math i does 360 to get to that location.
are there any fixes for this or what should i do?

i would post allot of pictures and videos to show this problem but im new and are not allowed.

using c++ and sendinput.
solved it.


newangleX = myviewangleX - angletoenemyX;

if (newangleX > 180)
{
newangleX -= 360;
}
if (newangleX < -180)
{
newangleX += 360;
}

what i did here was comparing the distance my crosshair was needed to travel to get to the location i wanted . and this does it the shortest way. i think dont quote me on this hahah.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us