BO2 Autoshoot Code (Source)

Loyola

New Member
Messages
7
Reaction score
10
Points
3
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
 

VerTical

CEO
Donator
Messages
0
Reaction score
-85
Points
664
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!
 
Top