littlegandhi1199 (04-13-2011)
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.
littlegandhi1199 (04-13-2011)
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
What a nice aimbot
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
So like, noob here...Where do I put this, and will it work in private match?
Where do i place this code? ;s
bumped since 4 weeks, equivalent to the bump rule,
/closed