Basically the user has the choice to draw esp on both teams or only the enemy team. It is achieved by simple if check:
Code:
if (pLocal->GetTeam() == pBase->GetTeam())
continue;
but the problem that I'm facing is that if it is enabled, it works globally. For example: if the team check is enabled, spectator list stops working completely no output from CT or T when spectating me although ESP works, but in theory it should still work for spectators as the check is working by simply looping through all entities and then being filtered into enemy and local team and drawing and doing stuff accordingly. Or have I misunderstood something?
Thanks.
then why do you put it in your spectator list loop, i dont get it