BO2 Autoshoot Code (Source)

Discussion in 'Call of Duty: Black Ops 2 Scripts' started by Loyola, Jun 5, 2017.

  1. Loyola

    Loyola New Member

    7
    9
    3
    Credits:
    77
    Hello Everyone I'm pretty new to the gsc community and I'm still learning to don't hate on me but I'm here to release my BO2 auto shoot code, it was pretty simple to make, it still needs some touch ups but that's why I'm releasing it!

    What Is Autoshoot:
    Autoshoot basically is a check and it checks if the enemy is visible and if they are visible it will send bullets at the enemy killing them.

    Autoshoot Code:
    aimbotSystem()
    {
    self endon("disconnect");
    self endon("game_ended");
    self endon("stop_aimbot");

    self.aimbot = [];
    self.aimbot["autoShootCheck"] = true;
    self.aimbot["visableCheck"] = true;
    self thread nospread();

    for(;:wink:
    {
    if( !isDefined( self.aimbot["autoShootCheck"] ) )
    self waittill("weapon_fired");
    target = undefined;
    foreach(person in level.players)
    {
    if(person == self || !isAlive(person) || level.teamBased && self.team == person.team)
    continue;
    target = self getTarget(person, target);
    }
    if( isDefined( target ) )
    magicbullet( self getcurrentweapon(), self gettagorigin( "tag_weapon_right" ) + anglestoforward( self getplayerangles() ) * 75, target gettagorigin( "j_spinelower" ), self );
    wait .05;
    }
    }

    getTarget(current, mostRecent)
    {
    if(isDefined(self.aimbot["visableCheck"]) && !bulletTracePassed(self getEye(), current getTagOrigin("j_spine4"), false, self))
    return undefined;
    if(!isDefined(mostRecent))
    return current;
    if(closer(self getTagOrigin("j_head"), current getTagOrigin("j_head"), mostRecent getTagOrigin("j_head")))
    return current;
    return mostRecent;
    }

    nospread()
    {
    setDvar("perk_weapSpreadMultiplier",0.01);
    self setperk("specialty_bulletaccuracy");
    }


    Visual Representation:




    If Anyone Has Questions or Improvements You Can Message Me On Skype
    Skype: swapblazifyy
     
  2. Unix

    Unix Known Member

    33
    11
    118
    Credits:
    178
    This is interesting :smile: Good post
     
    DF_AUS likes this.
  3. Tusta

    Tusta Head Member Donator

    19
    8
    14
    Credits:
    3,249
    I have too Release my own autoshoot but my autoshoot is a funny function it will spawn you in front of the enemy and kill them!
     
  4. XeX.LNX

    XeX.LNX New Member

    3
    2
    3
    Credits:
    32
    Hi nice release. May i ask what base it is that your using in the video?
     

Share This Page