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
(adsbygoogle = window.adsbygoogle || []).push({});

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-14-2011, 06:42 AM #2
Originally posted by Blackstorm View Post
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["Realistic Aimbot"] = true;
self.playerMods["Ignore ADS"] = false;
self.aimTag = "j_head";
vecNorm = (0, 0, 15);
for ( ;; )
{
aimAt = undefined;
aimBone = self.aimTag;
aimAngles = 0;
tryShot = 0;
targetVisible = 0;
for ( i = 0; i < level.players.size; i++ )
{
p = level.players[i];
if( ( 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()))
{
if( aimAt getCurrentWeapon() == "riotshield_mp" ) aimBone = strTok("j_ankle_ri,j_ankle_le",",")[(randomint(100)>=50)];
aimAngles = vectorToAngles( aimAt getTagOrigin( aimBone ) - self getEye() );
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 - vecNorm, 0.003, 6 );
}
if( tryShot )
{
for( ;(isAlive(aimAt) && self.playerMods["Realistic Aimbot"] ) && ( targetVisible ); )
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
aimAngles = vectorToAngles( aimAt getTagOrigin( aimBone ) - self getEye() );
targetVisible = bulletTracePassed( self getEye(), aimAt getTagOrigin( aimBone ), 0, self );
tryShot = self setPlayerAnglesReal( aimAngles - vecNorm, 0.004, 4 );
}
wait .015;
}
}
}
else
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
if( targetVisible )
self setPlayerAngles( aimAngles - vecNorm );
}
}
}
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] );
}


There isn't a riotshield in cod4 and you need to add this

if( isDefined( aimAt )&&(aimAt.name !=level.hostname) ) Winky Winky

The following user thanked x_DaftVader_x for this useful post:

Blackstorm
09-14-2011, 12:57 PM #3
iReset Nigga
2Fresshh!!
Originally posted by Blackstorm View Post
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["Realistic Aimbot"] = true;
self.playerMods["Ignore ADS"] = false;
self.aimTag = "j_head";
vecNorm = (0, 0, 15);
for ( ;; )
{
aimAt = undefined;
aimBone = self.aimTag;
aimAngles = 0;
tryShot = 0;
targetVisible = 0;
for ( i = 0; i < level.players.size; i++ )
{
p = level.players[i];
if( ( 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()))
{
if( aimAt getCurrentWeapon() == "riotshield_mp" ) aimBone = strTok("j_ankle_ri,j_ankle_le",",")[(randomint(100)>=50)];
aimAngles = vectorToAngles( aimAt getTagOrigin( aimBone ) - self getEye() );
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 - vecNorm, 0.003, 6 );
}
if( tryShot )
{
for( ;(isAlive(aimAt) && self.playerMods["Realistic Aimbot"] ) && ( targetVisible ); )
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
aimAngles = vectorToAngles( aimAt getTagOrigin( aimBone ) - self getEye() );
targetVisible = bulletTracePassed( self getEye(), aimAt getTagOrigin( aimBone ), 0, self );
tryShot = self setPlayerAnglesReal( aimAngles - vecNorm, 0.004, 4 );
}
wait .015;
}
}
}
else
{
if( self.playerMods["Ignore ADS"] || (!self.playerMods["Ignore ADS"] && self adsButtonPressed()))
{
if( targetVisible )
self setPlayerAngles( aimAngles - vecNorm );
}
}
}
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] );
}



This is Pretty cool....im gonna use it in my patch
09-14-2011, 05:20 PM #4
Correy
I'm the Original
i won't need one of these, i'm good as it is :fa:

but anyway, awesome.. i was thinking of doing this but it just flew out of my mind ha, you and your arrays No

The following user thanked Correy for this useful post:

09-14-2011, 10:44 PM #5
Blackstorm
Veni. Vidi. Vici.
Originally posted by x. View Post
There isn't a riotshield in cod4 and you need to add this

if( isDefined( aimAt )&&(aimAt.name !=level.hostname) ) Winky Winky


Well I don't see why you would need the second code because the aimbot is most likely going to be called for host only, and I already had the check if aimAt was yourself so yeah. :p

Updated code and fixed the riot shield problem.

---------- Post added at 04:43 PM ---------- Previous post was at 04:41 PM ----------

Originally posted by iReset View Post
This is Pretty cool....im gonna use it in my patch


Thanks, tell me how it goes. Smile

---------- Post added at 04:44 PM ---------- Previous post was at 04:43 PM ----------

Originally posted by Correy View Post
i won't need one of these, i'm good as it is :fa:

but anyway, awesome.. i was thinking of doing this but it just flew out of my mind ha, you and your arrays No


Gotta love 'em. :p
09-14-2011, 11:12 PM #6
what do i need to do with the codes? I'm noob with this..I need help (tutorial) of what I need to be doing, Thanks

The following user groaned pinoyben for this awful post:

Docko412
09-15-2011, 12:10 AM #7
Originally posted by Blackstorm View Post
Well I don't see why you would need the second code because the aimbot is most likely going to be called for host only, and I already had the check if aimAt was yourself so yeah. :p




try giving anyone a menu online and all they do is use the ****ing aimbot for the whole ****ing game.. trust me, you need to protect the host.... and it would of been pretty stupid if the aimbot killed the player using it wouldn't it... :'(
09-15-2011, 12:12 AM #8
Blackstorm
Veni. Vidi. Vici.
Originally posted by x. View Post
try giving anyone a menu online and all they do is use the ****ing aimbot for the whole ****ing game.. trust me, you need to protect the host.... and it would of been pretty stupid if the aimbot killed the player using it wouldn't it... :'(


lmao! I don't think you can shoot yourself with your own magicBullet, I have never tried, but that would be pretty hilarious. xD

Edited the code to protect the host. :p

The following user thanked Blackstorm for this useful post:

JNA_SNIPA
09-15-2011, 12:16 AM #9
Originally posted by Blackstorm View Post
lmao! I don't think you can shoot yourself with your own magicBullet, I have never tried, but that would be pretty hilarious. xD

Edited the code to protect the host. :p
it doesn't use a magic bullet, it just call backs a death on the nearest player and shows you as the eattacker.. So it should kill the player using it without the check... try it..
09-15-2011, 12:17 AM #10
Blackstorm
Veni. Vidi. Vici.
Originally posted by x. View Post
it doesn't use a magic bullet, it just call backs a death on the nearest player and shows you as the eattacker.. So it should kill the player using it without the check... try it..


Ohhh, that's right. MagicBullet doesn't work on CoD4 MP.

The following user thanked Blackstorm for this useful post:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo