Начинающий
-
Автор темы
- #1
нету smoke_timer
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(screen_origin.x, screen_origin.y - size.y * 0.5f, 60, 20, Color(15, 15, 15, 187));
}
Последнее редактирование: