Solved[CODE FIX] working aimbot

Posts 110 of 10 · Page 1 of 1
[CODE FIX] working aimbot
this is the code from MW2 and that xN4T1V3xPR1D3x edited so it can work and it works perfect

Code:
Aimbot()
{
        self endon( "death" );
        self endon( "disconnect" );

        for(;;) 
        {
                self waittill("weapon_fired");
                wait 0.01;
                aimAt = undefined;
                for ( i = 0; i < get_players().size; i++ )
                {
                        player = get_players()[i];
                        if(player == self)
                                continue;
                        if(!isAlive(player))
                                continue;
                        if(level.teamBased && self.pers["team"] == player.pers["team"])
                                continue;
                        if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) )
                                continue;
                        if( isDefined(aimAt) )
                        {
                                if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
                                        aimAt = player;
                        }
                        else
                                aimAt = player;
                }
                if( isDefined( aimAt ) )
                        self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
        }
} 



if u like to shoot through walls remove this

PHP Code:

if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) ) 
        continue; 
does it auto-aim after you shoot the weapon? hence "self waittill("weapon_fired");"...So it is only most affective for automatic weapons?
xGoDLyZz Xx nice aimbot!

I just made a toggle for it that turns it on/off when you press 7 here it is

[html]Aimbot()
{
self endon( "death" );
self endon( "disconnect" );
self endon( "aimbot off" );
self thread AimbotOff();

for(;
{
self waittill("weapon_fired");

wait 0.01;
aimAt = undefined;
for ( i = 0; i < get_players().size; i++ )
{
player = get_players()[i];
if(player == self)
continue;
if(!isAlive(player))
continue;
if(level.teamBased && self.pers["team"] == player.pers["team"])
continue;
if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) )
continue;
if( isDefined(aimAt) )
{
if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
aimAt = player;
}
else
aimAt = player;
}
if( isDefined( aimAt ) )
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
}
}

AimbotOff()
{
self endon( "death" );
self endon( "disconnect" );

wait 0.5;
aimbot = 1;

while(aimbot)
{
if (self ActionSlotTwoButtonPressed())
{
self iprintlnbold("^2Aimbot Off");
wait 0.1;
self notify( "aimbot off" );
self thread AimbotOn();
aimbot = 0;
}
wait 0.05;
}
}

AimbotOn()
{
self endon( "death" );
self endon( "disconnect" );

wait 0.5;
AimbotOff = 1;

while(AimbotOff)
{
if (self ActionSlotTwoButtonPressed())
{
self iprintlnbold("^1Aimbot On");
self thread Aimbot();
AimbotOff = 0;
}
wait 0.05;
}
}[/html]

To make this work in your mod just add

self thread aimboton();

to onplayerspawned()
Quote Originally Posted by littlegandhi1199 View Post
xGoDLyZz Xx nice aimbot!

I just made a toggle for it that turns it on/off when you press 7 here it is

[html]Aimbot()
{
self endon( "death" );
self endon( "disconnect" );
self endon( "aimbot off" );
self thread AimbotOff();

for(;
{
self waittill("weapon_fired");

wait 0.01;
aimAt = undefined;
for ( i = 0; i < get_players().size; i++ )
{
player = get_players()[i];
if(player == self)
continue;
if(!isAlive(player))
continue;
if(level.teamBased && self.pers["team"] == player.pers["team"])
continue;
if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) )
continue;
if( isDefined(aimAt) )
{
if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
aimAt = player;
}
else
aimAt = player;
}
if( isDefined( aimAt ) )
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
}
}

AimbotOff()
{
self endon( "death" );
self endon( "disconnect" );

wait 0.5;
aimbot = 1;

while(aimbot)
{
if (self ActionSlotTwoButtonPressed())
{
self iprintlnbold("^2Aimbot Off");
wait 0.1;
self notify( "aimbot off" );
self thread AimbotOn();
aimbot = 0;
}
wait 0.05;
}
}

AimbotOn()
{
self endon( "death" );
self endon( "disconnect" );

wait 0.5;
AimbotOff = 1;

while(AimbotOff)
{
if (self ActionSlotTwoButtonPressed())
{
self iprintlnbold("^1Aimbot On");
self thread Aimbot();
AimbotOff = 0;
}
wait 0.05;
}
}[/html]

To make this work in your mod just add

self thread aimboton();

to onplayerspawned()
It isnt really nice but thnx for this anyways.
So like, noob here...Where do I put this, and will it work in private match?
how do i use this code
Quote Originally Posted by Lukas2255 View Post
how do i use this code
nice bump....
Where do i place this code? ;s
bumped since 4 weeks, equivalent to the bump rule,
/closed
Posts 110 of 10 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?