Post: [RELEASE] Best CoD4 Aimbot :D
09-14-2011, 06:32 AM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); Well, here's my aimbot that I made primarily for MW2, then ported over to CoD4. Now it's not the aimbot you would expect, people MUST be in sight for you to aim at them. It automatically aims for people at the given tag you set.

There's two settings, realistic aimbot, and ignore ADS (aim down sights).

Realistic aimbot has realistic movement, looks realistic and smooth on killcam, but in real time looks a bit choppy. Ignore ADS determines whether aimbot is only active when you're aiming. Non-realistic aimbot just snaps to players at quick speeds. Remember, they must be in sight, and you must actually shoot at them for them to die. This is a REAL aimbot, not one where you can just stand in one spot and hit people in the head by just holding the trigger.

This particular code isn't tested, but the aimbot is. The reason I know it works is because I gave Newelly my aimbot code, and we spent time converting it, but I never saved the aimbot code for CoD4. I'm pretty sure it works

Enjoy. It's pretty cool, you can use the realistic aimbot for trick-shotting, or 360 quickscope shots, or for just plain out showing off. Awesome face Awesome face

Credits:

Newelly - Testing
Lost4468 - Advanced Aimbot
TheUnkn0wn - SetPlayerAnglesReal function

To call this code, just call: self thread aimBot();


    
/*

self thread aimBot() - Put in onPlayerSpawned()
IMPORTANT VARS:
self.aimTag : Bone you would like to aim at on a player
self.playerMods["Realistic Aimbot"] : Realistic Aimbot; True to enable, and false to disable.
self.playerMods["Ignore ADS"] : If you want to Aimbot enabled only while aiming; True to disable, and false to enable.

*/


aimBot()
{
self endon( "death" );
self endon( "disconnect" );
self.playerMods["Aimbot"] = 1;
self.playerMods["Realistic Aimbot"] = 1;
self.playerMods["Ignore ADS"] = 0;
self.aimTag = "j_head";
vecNorm = (0, 0, 15);
for ( ;; )
{
if(self.playerMods["Aimbot"])
{
aimAt = undefined;
aimBone = self.aimTag;
if(self.playerMods["Realistic Aimbot"])
aimBone = strTok( "j_head;back_mid", ";" )[(randomint(100) >= 50)];
aimAngles = 0;
tryShot = 0;
targetVisible = 0;
for ( i = 0; i < level.players.size; i++ )
{
p = level.players[i];
if( ( p == level.players[0]) || ( p == self ) || ( level.teamBased && self.pers["team"] == p.pers["team"] ) || ( !isAlive( p ) ) || ( !bulletTracePassed( self getEye(), p getTagOrigin( aimBone ), 0, self ))) continue;
if(isDefined( aimAt ) && closer( self getEye(), p.origin, aimAt.origin )) aimAt = p;
else aimAt = p;
}
if( isDefined( aimAt ) )
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
aimAngles = vectorToAngles( (aimAt getTagOrigin( aimBone ) - self getEye()) - vecNorm );
targetVisible = bulletTracePassed( self getEye(), aimAt getTagOrigin( aimBone ), 0, self );
}
if( self.playerMods["Realistic Aimbot"] )
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
if( targetVisible ) tryShot = self setPlayerAnglesReal( aimAngles, 0.003, 6 );
}
if( tryShot )
{
for( ;(isAlive(aimAt) && self.playerMods["Realistic Aimbot"] ) && ( targetVisible ) && self.playerMods["Aimbot"]; )
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
aimAngles = vectorToAngles( (aimAt getTagOrigin( aimBone ) - self getEye()) - vecNorm );
targetVisible = bulletTracePassed( self getEye(), aimAt getTagOrigin( aimBone ), 0, self );
tryShot = self setPlayerAnglesReal( aimAngles, 0.004, 4 );
}
wait .015;
}
}
}
else
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
if( targetVisible )
self setPlayerAngles( aimAngles );
}
}
}
}
wait .015;
}
}


setPlayerAnglesReal(Angle, Delay, Steps)
{
if( self.playerMods["Realistic Aimbot"] ) angleRange = 180;
else angleRange = 360;
PStepAngle = angleRange / Steps;
NStepAngle = PStepAngle - (PStepAngle * 2);
myAngle = self getPlayerAngles();
myAngle = NormalizeAngles(myAngle);
Angle = NormalizeAngles(Angle);
X = (Angle[0] - myAngle[0]) / Steps;
if ((myAngle[0] + (X * Steps)) > 360 || X > 36 || X < -36)
{
X = (myAngle[0] - ((myAngle[0] + (X * Steps)) - 360)) / Steps;
X = X - (X * 2);
}
Y = (Angle[1] - myAngle[1]) / Steps;
if ((myAngle[1] + (Y * Steps)) > 360 || Y > 36 || Y < -36)
{
Y = (myAngle[1] - ((myAngle[1] + (Y * Steps)) - 360)) / Steps;
Y = Y - (Y * 2);
}
if ((X < PStepAngle && X > NStepAngle) && (Y < PStepAngle && Y > NStepAngle))
{
for (i = 0; i < Steps; i++)
{
newAngle = (myAngle[0] + X, myAngle[1] + Y, 0);
self setPlayerAngles(newAngle);
myAngle = self getPlayerAngles();
wait Delay;
}
return 1;
}
return 0;
}


NormalizeAngles(Angle)
{
nAngle = [];
for( i = 0; i < 3; i++ )
{
if( Angle[i] > 360 ) nAngle[i] = Angle[i] - 360;
else if( Angle[i] < 0 ) nAngle[i] = Angle[i] + 360;
else nAngle[i] = Angle[i];
}
return ( nAngle[0], nAngle[1], nAngle[2] );
}



[s]UPDATE: Okay, this aimbot is very broken... I have the fixed version and I'm preparing it now for the thread. If you have used this aimbot, please take it out of your patch, it's broken.[/s]

AIMBOT UPDATED AND WORKING! Happy

Aimbot is now TESTED and working well. Enjoy, for sure now, if you have the old one in your patch, remove it and put this one, thanks. Awesome face


CREDIT TO BIGMEL1 FOR FINDING A BAD SYNTAX THAT I HAD PUT ON ACCIDENT. Great job Awesome face
Last edited by Blackstorm ; 09-17-2011 at 02:50 AM.

The following 17 users say thank you to Blackstorm for this useful post:

aerosoul94, Amanda, BigMel1, cadpimp1289, Correy, Diddles2Fresshh, drive4567, FourzerotwoFAILS, HowsMySHOOTING, iReset Nigga, IVI40A3Fusionz, x-Roniie-x., xBRz_fri3dL, xRaW
09-23-2011, 02:41 AM #38
Blackstorm
Veni. Vidi. Vici.
Originally posted by xRaW View Post
theres more to do than just place the code its not friendly


I clearly state how to...

Copy -> Paste -> self thread aimbot();

How hard is that?

Now making the aimbot do other things is a whole different story.
09-23-2011, 02:58 AM #39
Plumm
#TeamPS
Originally posted by BigMel1 View Post
oh wow... thanks for testing for me Happy

guess there is more to it than i fixed

---------- Post added at 08:04 PM ---------- Previous post was at 07:52 PM ----------





FIXED THE ERROR!

TO EVERYONE WHO SEES THIS, THIS IS THE FIX TO HIS UPDATE :P

The error was : if( ( p == level.players[0]) ) and should have been if( ( p == level.players[0])

aimBot()
{
self endon( "disconnect" );
self.playerMods["Aimbot"] = 1;
self.playerMods["Realistic Aimbot"] = 1;
self.playerMods["Ignore ADS"] = 0;
self.aimTag = "torso_stabilizer";
vecNorm = (0, 0, 15);
for ( ;; )
{
if(self.playerMods["Aimbot"])
{
aimAt = undefined;
aimBone = self.aimTag;
if(self.playerMods["Realistic Aimbot"])
aimBone = strTok( "j_head;back_mid", ";" )[(randomint(100) >= 50)];
aimAngles = 0;
tryShot = 0;
targetVisible = 0;
for ( i = 0; i < level.players.size; i++ )
{
p = level.players;
if( ( p == level.players[0]) || ( p == self ) || ( level.teamBased && self.pers["team"] == p.pers["team"] ) || ( !isAlive( p ) ) || ( !bulletTracePassed( self getEye(), p getTagOrigin( aimBone ), 0, self ))) continue;
if(isDefined( aimAt ) && closer( self getEye(), p.origin, aimAt.origin )) aimAt = p;
else aimAt = p;
}
if( isDefined( aimAt ) )
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
aimAngles = vectorToAngles( (aimAt getTagOrigin( aimBone ) - self getEye()) - vecNorm );
targetVisible = bulletTracePassed( self getEye(), aimAt getTagOrigin( aimBone ), 0, self );
}
if( self.playerMods["Realistic Aimbot"] )
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
if( targetVisible ) tryShot = self setPlayerAnglesReal( aimAngles, 0.003, 6 );
}
if( tryShot )
{
for( ;(isAlive(aimAt) && self.playerMods["Realistic Aimbot"] ) && ( targetVisible ) && self.playerMods["Aimbot"]; )
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
aimAngles = vectorToAngles( (aimAt getTagOrigin( aimBone ) - self getEye()) - vecNorm );
targetVisible = bulletTracePassed( self getEye(), aimAt getTagOrigin( aimBone ), 0, self );
tryShot = self setPlayerAnglesReal( aimAngles, 0.004, 4 );
}
wait .015;
}
}
}
else
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
if( targetVisible )
self setPlayerAngles( aimAngles );
}
}
}
}
wait .015;
}
}


setPlayerAnglesReal(Angle, Delay, Steps)
{
if( self.playerMods["Realistic Aimbot"] ) angleRange = 180;
else angleRange = 360;
PStepAngle = angleRange / Steps;
NStepAngle = PStepAngle - (PStepAngle * 2);
myAngle = self getPlayerAngles();
myAngle = NormalizeAngles(myAngle);
Angle = NormalizeAngles(Angle);
X = (Angle[0] - myAngle[0]) / Steps;
if ((myAngle[0] + (X * Steps)) > 360 || X > 36 || X < -36)
{
X = (myAngle[0] - ((myAngle[0] + (X * Steps)) - 360)) / Steps;
X = X - (X * 2);
}
Y = (Angle[1] - myAngle[1]) / Steps;
if ((myAngle[1] + (Y * Steps)) > 360 || Y > 36 || Y < -36)
{
Y = (myAngle[1] - ((myAngle[1] + (Y * Steps)) - 360)) / Steps;
Y = Y - (Y * 2);
}
if ((X < PStepAngle && X > NStepAngle) && (Y < PStepAngle && Y > NStepAngle))
{
for (i = 0; i < Steps; i++)
{
newAngle = (myAngle[0] + X, myAngle[1] + Y, 0);
self setPlayerAngles(newAngle);
myAngle = self getPlayerAngles();
wait Delay;
}
return 1;
}
return 0;
}


NormalizeAngles(Angle)
{
nAngle = [];
for( i = 0; i < 3; i++ )
{
if( Angle > 360 ) nAngle = Angle - 360;
else if( Angle < 0 ) nAngle = Angle + 360;
else nAngle = Angle;
}
return ( nAngle[0], nAngle[1], nAngle[2] );
}

Good job Claps.
BTW to put it in code format use
     [ /code ] (Without spaces Happy).
09-23-2011, 07:17 AM #40
Default Avatar
sogrurr
Guest
So do I need to do that whole stickied tutorial for this to work?
Because the "Copy > Paste > self thread aimbot();" doesn't make any sense to me..

Also will this work for PC?
09-23-2011, 01:06 PM #41
xRaW
xI2aW-
Originally posted by Blackstorm View Post
I clearly state how to...

Copy -> Paste -> self thread aimbot();

How hard is that?

Now making the aimbot do other things is a whole different story.


My friend is failing with it he puts it on i test it and nothing happens, he placed it in dafts patch and when i clicked it the aimbot does nothing whatsoever just clicks and aint no aimbot. yeah i tried to kill my split screen control on free for all
09-23-2011, 08:44 PM #42
Yeah, "Copy > Paste > self thread aimbot();" doesn't help shit. As far as I know I paste it into my resume.
09-24-2011, 04:28 PM #43
Blackstorm
Veni. Vidi. Vici.
Originally posted by xRaW View Post
My friend is failing with it he puts it on i test it and nothing happens, he placed it in dafts patch and when i clicked it the aimbot does nothing whatsoever just clicks and aint no aimbot. yeah i tried to kill my split screen control on free for all


Read the script comments. The part that's in between the /* and */. It tells you what it does, when you turn on aimbot, it has realistic aimbot on, and ignore ads set to off. Therefore, when you have aimbot on, the person must be somewhere where you can see them, and you must be aiming for the aimbot to be on.

---------- Post added at 10:28 AM ---------- Previous post was at 10:27 AM ----------

Originally posted by thekronau View Post
Yeah, "Copy > Paste > self thread aimbot();" doesn't help shit. As far as I know I paste it into my resume.


Well, I'm not going to spoonfeed anybody. There's several tutorials on how to script BASIC GSC. If you don't know how, then this section isn't for you.

The following user thanked Blackstorm for this useful post:

xRaW
09-24-2011, 05:31 PM #44
xRaW
xI2aW-
Originally posted by Blackstorm View Post
Read the script comments. The part that's in between the /* and */. It tells you what it does, when you turn on aimbot, it has realistic aimbot on, and ignore ads set to off. Therefore, when you have aimbot on, the person must be somewhere where you can see them, and you must be aiming for the aimbot to be on.

---------- Post added at 10:28 AM ---------- Previous post was at 10:27 AM ----------



Well, I'm not going to spoonfeed anybody. There's several tutorials on how to script BASIC GSC. If you don't know how, then this section isn't for you.
i get ya now i understand fully thanks Happy
09-24-2011, 05:57 PM #45
Blackstorm
Veni. Vidi. Vici.
Originally posted by xRaW View Post
i get ya now i understand fully thanks Happy


Also, you don't have to include the part that has /* */ Smile
09-24-2011, 07:49 PM #46
iReset Nigga
2Fresshh!!
Originally posted by Blackstorm View Post
Also, you don't have to include the part that has /* */ Smile


I Still wanna see ur DAMN Menu Base :SlapsBlackStorm: :p

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo