
if ( !EntityBase ) continue;
if(entitybase != 0)
int Target = int ClosestEnemyToCrosshair( maxfov );
if (Player->Dormant( Target ) || Player->Health( Target ) < 1 || Player->Teammate( Target ))
continue; //or set the target to -1.
//Calculations here.
Local->SetViewAngles( Vector( Target ) );