iq abuser
-
Автор темы
- #1
C++:
void worldesp::molotov_timer(entity_t* entity)
{
if (!g_cfg.esp.molotov_timer)
return;
auto inferno = reinterpret_cast<inferno_t*>(entity);
auto origin = inferno->GetAbsOrigin();
Vector screen_origin;
if (!math::world_to_screen(origin, screen_origin))
return;
auto spawn_time = inferno->get_spawn_time();
auto factor = (spawn_time + inferno_t::get_expiry_time() - m_globals()->m_curtime) / inferno_t::get_expiry_time();
static auto size = Vector2D(35.0f, 5.0f);
static auto alpha = 2.0f;
render::get().circle_filled(screen_origin.x, screen_origin.y - size.y * 0.5f, 60, 20, Color(15, 15, 15, 187));
render::get().Draw3DFilledCircle(origin, 144.0f, Color(240, 43, 43, 150));
render::get().CircularProgressBar(screen_origin.x, screen_origin.y - size.y * 0.5f, 17, 20, 0, 360 * factor, g_cfg.esp.molotov_timer_color, true);
render::get().text(fonts[GRENADES], screen_origin.x, screen_origin.y - size.y * 0.5f, g_cfg.esp.smoke_timer_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "l");
}
C++:
void worldesp::smoke_timer(entity_t* entity)
{
if (!g_cfg.esp.smoke_timer)
return;
auto smoke = reinterpret_cast<smoke_t*>(entity);
if (!smoke->m_nSmokeEffectTickBegin() || !smoke->m_bDidSmokeEffect())
return;
auto origin = smoke->GetAbsOrigin();
Vector screen_origin;
if (!math::world_to_screen(origin, screen_origin))
return;
auto spawn_time = TICKS_TO_TIME(smoke->m_nSmokeEffectTickBegin());
auto factor = (spawn_time + smoke_t::get_expiry_time() - m_globals()->m_curtime) / smoke_t::get_expiry_time();
static auto size = Vector2D(35.0f, 5.0f);
render::get().circle_filled(screen_origin.x, screen_origin.y - size.y * 0.5f, 60, 20, Color(15, 15, 15, 187));
render::get().Draw3DFilledCircle(origin, 144.0f, Color(30, 101, 232, 150));
render::get().CircularProgressBar(screen_origin.x, screen_origin.y - size.y * 0.5f, 17, 20, 0, 360 * factor, g_cfg.esp.molotov_timer_color, true);
render::get().text(fonts[GRENADES], screen_origin.x, screen_origin.y - size.y * 0.5f, g_cfg.esp.smoke_timer_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "k");
}