Results 1 to 10 of 10
  1. #1
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep

    [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; 
    
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  2. The Following User Says Thank You to xbeatsszzx For This Useful Post:

    littlegandhi1199 (04-13-2011)

  3. #2
    littlegandhi1199's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    27
    Reputation
    9
    Thanks
    19
    My Mood
    Amused
    does it auto-aim after you shoot the weapon? hence "self waittill("weapon_fired");"...So it is only most affective for automatic weapons?
    KISS
    KEEP IT SIMPLE STUPID


  4. #3
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,627
    Reputation
    11
    Thanks
    325
    My Mood
    Angelic
    What a nice aimbot

  5. #4
    littlegandhi1199's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    27
    Reputation
    9
    Thanks
    19
    My Mood
    Amused
    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()
    KISS
    KEEP IT SIMPLE STUPID


  6. #5
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep
    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.
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  7. #6
    Shaunnn's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    So like, noob here...Where do I put this, and will it work in private match?

  8. #7
    Lukas2255's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    2
    how do i use this code

  9. #8
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep
    Quote Originally Posted by Lukas2255 View Post
    how do i use this code
    nice bump....
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  10. #9
    FredzDiet's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    0
    My Mood
    Aggressive
    Where do i place this code? ;s

  11. #10
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    416
    Thanks
    1,614
    bumped since 4 weeks, equivalent to the bump rule,
    /closed