• Я зарабатываю 100 000 RUB / месяц на этом сайте!

    А знаешь как? Я всего-лишь публикую (создаю темы), а админ мне платит. Трачу деньги на мороженое, робуксы и сервера в Minecraft. А ещё на паль из Китая. 

    Хочешь так же? Пиши и узнавай условия: https://t.me/alex_redact
    Реклама: https://t.me/yougame_official

CS:S Enemycheck code for ikaros

  • Автор темы Автор темы kekekek
  • Дата начала Дата начала
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
29 Июн 2018
Сообщения
40
Реакции
10
//enemycheck code for your shit ikaros paste
Код:
Expand Collapse Copy
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);
}
 
Последнее редактирование:
//enemycheck code for your shit ikaros paste
Код:
Expand Collapse Copy
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);
}
shit code :V

return (alive == 0);

() no need

and this need compare localplayer and entity pointer and this doesn't validate entity results can be wrong :P

and if this bool why u make alive integer :P

and u can replace alive++ to return 1 and return alive == 0 to return 0 xD
 
Назад
Сверху Снизу