11-10-2011, 04:36
Hey guys, there is this aimbot code that locks on to heads GREATLY, is there a way to loosen the aim lock? I want an aim assist thing, like consoles for easier QS.
heres the mod:
also can you make it to lock on anywhere, not head, hence the aim ASSIST, not aimbot. Thanks.[/code]
heres the mod:
Code:
Aimassist()
{
self endon( "death" );
self endon( "disconnect" );
for(;;)
{
wait 0.05;
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( 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" ) ) ) );
}
}