crazygamer53 (06-05-2010),michael_87 (06-24-2010)
[php]void SetCrosshairOnEnemy(BYTE PlayerNumber)
{
PLAYER_DATA oP = GetPlayerData(PlayerNumber);
PLAYER_DATA cP = GetMyPlayerData();
double EWdif;
double NSdif;
double UDdif;
double angleA;
double angleP;
double angleB;
double angleBP;
double newValue;
DWORD newValue2;
double newValueb;
DWORD newValueb2;
double halfCircle = 0xFFFFFFFF/2;
/*Sec 1*/
if(oP.coordEW > cP.coordEW && oP.coordNS <= cP.coordNS)
{
EWdif = oP.coordEW - cP.coordEW;
NSdif = cP.coordNS - oP.coordNS;
angleA = atan(NSdif/EWdif) * 57.29578;
angleP = (angleA/360);
newValue = 0xFFFFFFFF - (0xFFFFFFFF*angleP);
newValue2 = newValue;
Poke((void*)cP.lookXa, &newValue2,4);
}
/*Sec 2*/
if(oP.coordEW <= cP.coordEW && oP.coordNS < cP.coordNS)
{
EWdif = cP.coordEW - oP.coordEW;
NSdif = cP.coordNS - oP.coordNS;
angleA = atan(NSdif/EWdif) * 57.29578;
angleP = (angleA/360);
newValue = halfCircle + (0xFFFFFFFF*angleP);
newValue2 = newValue;
Poke((void*)cP.lookXa, &newValue2,4);
}
/*Sec 3*/
if(oP.coordEW < cP.coordEW && oP.coordNS >= cP.coordNS)
{
EWdif = cP.coordEW - oP.coordEW;
NSdif = oP.coordNS - cP.coordNS;
angleA = atan(NSdif/EWdif) * 57.29578;
angleP = (angleA/360);
newValue = halfCircle - (0xFFFFFFFF*angleP);
newValue2 = newValue;
Poke((void*)cP.lookXa, &newValue2,4);
}
/*Sec 4*/
if(oP.coordEW >= cP.coordEW && oP.coordNS > cP.coordNS)
{
EWdif = oP.coordEW - cP.coordEW;
NSdif = oP.coordNS - cP.coordNS;
angleA = atan(NSdif/EWdif) * 57.29578;
angleP = (angleA/360);
newValue = 0 + (0xFFFFFFFF*angleP);
newValue2 = newValue;
Poke((void*)cP.lookXa, &newValue2,4);
}
// Done the X-look, now this is for the Y-look
double flatDist = sqrt((EWdif*EWdif)+(NSdif*NSdif)); // Get the level distance between us and the enemy, using pythagoras
if(oP.coordUD == cP.coordUD)
{
BYTE zero4[4] = {0x00,0x00,0x00,0x00};
Poke((void*)cP.lookYa,zero4, 4); // If we are equal height, set our Y-look to 0 (level)
} else if(oP.coordUD > cP.coordUD)
{
UDdif = oP.coordUD - cP.coordUD; // Work out our UDdif
angleB = atan(UDdif/flatDist) * 57.29578; // Same old stuff as before
angleBP = (angleB/360);
newValueb = 0 + (0xFFFFFFFF*angleBP);
newValueb2 = newValueb;
Poke((void*)cP.lookYa, &newValueb2,4);
} else if (oP.coordUD < cP.coordUD)
{
UDdif = cP.coordUD - oP.coordUD;
angleB = atan(UDdif/flatDist) * 57.29578;
angleBP = (angleB/360);
newValueb = 0xFFFFFFFF - (0xFFFFFFFF*angleBP);
newValueb2 = newValueb;
Poke((void*)cP.lookYa, &newValueb2,4);
}
}[/php]
Last edited by Zoom; 06-05-2010 at 09:31 PM.
crazygamer53 (06-05-2010),michael_87 (06-24-2010)
I dont want to flame or anything but this looks leached if so u should give proper credit.
but otherwise nice release. maybe a public aimbot can be released soon
well its better than nothing and u dont know this could be just what someone was lookin for to finish there aimbot
ohhhh my bad i dont know to much about aimbots
just how to pwn wit them
srry man
I don't know how to code much, but this is great. I'm saving the link, could come in handy some day
Don't be afraid to click thanks if I helped.
P.S. I only bite on Wednesdays
Goals = complete = not yet
Get banned once
Get banned three times
Get banned 10 times
Get a legit ultrakill
Get a legit Fantastic
Get a legit Unbelievable
Own A vip hacker
Get VIP
Make my own mod
Make my own hack
looks real... but then again i dunno shit..
but i know aimbots have a lot to do with coordinates and angles and what not.
the code looks kind of short to me tho..
lol... this is leeched from a another forum (of 2009) -.-...
Starting my own Web hosting service
Finaly completed.
Progress for Exchange Server : 100%
what exactly is the point of spam
Last edited by crazygamer53; 06-05-2010 at 12:30 PM. Reason: Question
Don't be afraid to click thanks if I helped.
P.S. I only bite on Wednesdays
Goals = complete = not yet
Get banned once
Get banned three times
Get banned 10 times
Get a legit ultrakill
Get a legit Fantastic
Get a legit Unbelievable
Own A vip hacker
Get VIP
Make my own mod
Make my own hack
Yes because i already got that base last year -.-... and that one is missing some lines to make it workCode:Quick question- God, u sure this is leeched from way back then? It would've been hard to find
Starting my own Web hosting service
Finaly completed.
Progress for Exchange Server : 100%