int DaBestTrg()
{
float lbot_aimbot_fov = cvar->lbot_aimbot_fov;
int iId;
float iClosest2cross;
for(int i = 0; i <= 128; i++)
{
entity->getPlayer(i);
if(entity->player == local_player->local)
continue;
iClosest2cross = engine->GetFOV(local_player->getAngles(), local_player->getEye(), entity->getEye());
if (iClosest2cross < lbot_aimbot_fov && local_player->Team() != entity->Team() && entity->ClassID() == 35 && !entity->DormantCheck() && entity->getHp() >= 1)
{
lbot_aimbot_fov =iClosest2cross;
iId = i;
}
else
if (iClosest2cross < lbot_aimbot_fov && local_player->Team() != entity->Team() && entity->ClassID() == 35 && !entity->DormantCheck() && !entity->getAlive())
{
// Dunno What's supposed to be there
}
}
return iId;
}