Can anyone make this seem a bit more legit?? This looks good, but not good enough, people can still assume you're hacking, with good reason (if you get headshots...without really getting them).


[SPOILER]autoAim()
{
self endon( "death" );
self endon( "disconnect" );

for(;
{
wait 0.01;
aimAt = undefined;
foreach(player in level.players)
{
if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) )
continue;
//if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) ) //Remove this and the next line to use it through walls
// 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" ) ) ) ); //Remove me to enable/disable aim assist!
if( self AttackButtonPressed() ){
aimAt thread [[level.callbackPlayerDamage]] ( self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0 );
}
}
}
}[/SPOILER]

I simply want this to look better and a bit more realistic, if anyone could help me, it would mean a ton...thanks!