if (checkBox_radar) {
DWORD LocalPlayer = *(DWORD*)(moduleBase + dwLocalPlayer);
if (LocalPlayer == NULL) continue;
int myTeam = *(int*)(LocalPlayer + m_iTeamNum);
for (int x = 0; x < 32; x++) {
int Entity = *(int*)(moduleBase + dwEntityList + x * 0x10);
int entityTeam = *(int*)(Entity + m_iTeamNum);
int entityDormant = *(int*)(Entity + m_bDormant);
if (entityTeam != myTeam && !entityDormant) {
*(bool*)(Entity + m_bSpotted, true);
}
}