Гайд Grenade esp for weave

Пользователь
Статус
Оффлайн
Регистрация
18 Май 2020
Сообщения
188
Реакции[?]
71
Поинты[?]
0
yes
Код:
void CVisuals::GrenadeEsp(IBasePlayer* entity)
{
    Vector pos, pos3D;
    pos3D = entity->GetAbsOrigin();
    if (!Math::WorldToScreen(pos3D, pos))
        return;

    auto local_player = interfaces.ent_list->GetClientEntity(interfaces.engine->GetLocalPlayer());
    if (!local_player) return;

    auto cClass = entity->GetClientClass();

    std::string model_name = interfaces.models.model_info->GetModelName(entity->GetModel());

    if (!model_name.empty())
    {
        if (cClass->m_ClassID == (int)ClassId->CBaseCSGrenadeProjectile) {

            if (model_name.find("fraggrenade") != std::string::npos) {
                //Drawing::DrawFilledCircle(pos.x, pos.y, 10, 100, color_t(255, 255, 255, 150));
                Drawing::DrawString(fonts::esp_name, pos.x, pos.y, color_t(255, 255, 255), render::centered_x | render::centered_y, "he");
            }
            else if (model_name.find("bang") != std::string::npos) {
                //Drawing::DrawFilledCircle(pos.x, pos.y, 10, 100, color_t(255, 255, 255, 150));
                Drawing::DrawString(fonts::esp_name, pos.x, pos.y, color_t(255, 255, 255), render::centered_x | render::centered_y, "flash");

            }

        }
        if (cClass->m_ClassID == (int)ClassId->CDecoyProjectile) {

            if (model_name.find("decoy") != std::string::npos) {
                //Drawing::DrawFilledCircle(pos.x, pos.y, 10, 100, color_t(255, 255, 255, 150));
                Drawing::DrawString(fonts::esp_name, pos.x, pos.y, color_t(255, 255, 255), render::centered_x | render::centered_y, "decoy");
            }
        }
        if (cClass->m_ClassID == (int)ClassId->CMolotovProjectile) {

            if (model_name.find("molotov") != std::string::npos) {
                //    Drawing::DrawFilledCircle(pos.x, pos.y, 10, 100, color_t(255, 255, 255, 150));
                Drawing::DrawString(fonts::esp_name, pos.x, pos.y, color_t(255, 255, 255), render::centered_x | render::centered_y, "molotov");
            }
            else if (model_name.find("incendiary") != std::string::npos) {
                //Drawing::DrawFilledCircle(pos.x, pos.y, 10, 100, color_t(255, 255, 255, 150));
                Drawing::DrawString(fonts::esp_name, pos.x, pos.y, color_t(255, 255, 255), render::centered_x | render::centered_y, "incendiary");
            }
        }
    }
}
 
Сверху Снизу