Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Вопрос /del

  • Автор темы Автор темы notdaisy
  • Дата начала Дата начала
this code alone won't be enough for us to help you.
show us what your is_c4_owner and your isEntityC4owner is
I already discussed it with Saivior and came to conclusion that it's not worth to even try because of much higher cpu usage. Also, isEntityDefusing works fine :)
Anyway, thanks for replying <3

P.S.: is_c4_owner is just a signature dumped w/ hazedumper
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Вопрос в названии темы. Проблема заключается в том, что IsC4Owner (см. код) возвращает ультра всратые значения (уж точно не 0/1, а порой 40, 85, 133, 200+ и тд), т.е. почти все помечаются как "с4 овнеры и/или дефузеры". Заранее спасибо за помощь.

C++:
Expand Collapse Copy
    bool IsC4Owner(DWORD entity)
    {
        return Mem.Read<bool>(entity + is_c4_owner);
    }

    bool IsDefuser(DWORD entity)
    {
        return Mem.Read<bool>(entity + m_bIsDefusing);
    }

C++:
Expand Collapse Copy
if (Config::Visuals::HIGHLIGHT_C4 && (isEntityC4owner || isEntityDefusing)) {}
Код:
Expand Collapse Copy
bool entity_t::HasC4()
{
    static auto fnHasC4 = reinterpret_cast<bool(__thiscall*)(void*)>(util::FindSignature("client.dll", "56 8B F1 85 F6 74 31"));

    return fnHasC4(this);
}
 
Назад
Сверху Снизу