-
Автор темы
- #1
//enemycheck code for your shit ikaros paste
Код:
bool cAntiAim::EnemyPlayerAlive()
{
auto alive = 0;
for (auto i = 1; i <= Ikaros.m_pEngine->GetMaxClients(); i++)
{
auto pBaseEntity = (C_BasePlayer*)Ikaros.m_pEntList->GetClientEntity(i);
if (!pBaseEntity
|| pBaseEntity == Ikaros.m_pMyPlayer->BaseEnt()
|| Ikaros.m_pPlayerlist[pBaseEntity->index].bFriend
|| !Ikaros.m_pEntity->GetLifeState(pBaseEntity))
continue;
if (pBaseEntity->GetTeamNumber() != Ikaros.m_pMyPlayer->BaseEnt()->GetTeamNumber())
alive++;
}
return (alive == 0);
}
Последнее редактирование: