@bandi12
totally disagree with you. when i was using my homemade memory aimbot i never missed a single headshot
@kypk
i was using a technique like this in my aimbot feel free to use it too
distance:
Code:
int closest = -1; //if it remains -1 there is no enemies around
float distance = 9999.9;
//loop these for all enemies that meets other checks (not over walls, not ghosts, etc)
//assume that me is a position vector of your local player , him is a position vector of enemy and index is the enemy local index
float tdist = sqrt(pow(me.x-him.x, 2)+pow(me.y-him.y, 2)+pow(me.z-him.z, 2));
if (tdist<distance)
{
distance = tdist;
closest = index;
}
crosshair (fov check included too ):
Code:
int closest = -1; //if it remains -1 there is no enemies around
float distance = 9999.9;
//loop these for all enemies that meets other checks (not over walls, not ghosts, etc)
//assume that camyaw, campitch are the current camera rotation angles, aimyaw, aimpitch are angles calculated by aimbot routine and index is the enemy local index
float ncamyaw = camyaw>=0?camyaw:camyaw+2*M_PI;
float ncampitch = campitch>=0?campitch:campitch+2*M_PI;
float naimyaw = aimyaw>=0?aimyaw:aimyaw+2*M_PI;
float naimpitch = aimpitch>=0?aimpitch:aimpitch+2*M_PI;
float ydif = abs(naimyaw-ncamyaw); //validate this value which should be <= fov/2
float pdif =abs(naimpitch-ncampitch);
if (pdif+ydif<distance)
{
distance = pdif+ydif;
closest = index;
}
---------- Post added at 06:23 PM ---------- Previous post was at 06:10 PM ----------
Originally Posted by
bandi12
Nope i snap it from the current angel to the calculed angel whit one operation. The magic is the math on angel's. You need to find a solution that the difference between the yaw/pitch and the calculed yaw/pitch to be the minimal as possible. (there are some trick's how to get the wanted angel whit minimal change on yaw/pitch)
---------- Post added at 08:31 PM ---------- Previous post was at 08:26 PM ----------
No offense but your math is silly. I made the perfect angel math on 10 line's 100% headshoot on every shoot.
exactly 4 lines here (ignoring checks)
ps:how many times should i tell you its spelled with not whit?