who are you dot idk
-
Автор темы
- #1
Хз вообще че за хуйня. На одном челе рисует только 1 маркер
damage marker :
Damage_marker struct
хукнут в painttraverse
Видео :
damage marker :
C++:
void otheresp::damage_marker_paint()
{
for (auto i = 0; i < m_globals()->m_maxclients; i++) //-V807
{
if (damage_marker[i].hurt_time + 1.0f > m_globals()->m_curtime)
{
Vector screen;
if (!math::world_to_screen(damage_marker[i].position, screen))
continue;
auto alpha = (int)((damage_marker[i].hurt_time + 2.0f - m_globals()->m_curtime) * 127.5);
damage_marker[i].hurt_color.SetAlpha(alpha);
render::get().text(fonts[DAMAGE_MARKER], screen.x, screen.y -= 0.5 * (127.5 - alpha), damage_marker[i].hurt_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "- %i", damage_marker[i].damage);
}
}
}
C++:
struct Damage_marker
{
Vector position = ZERO;
float hurt_time = FLT_MIN;
Color hurt_color = Color::White;
int damage = -1;
int hitgroup = -1;
void reset()
{
hurt_time = FLT_MIN;
hurt_color = Color::White;
damage = -1;
hitgroup = -1;
}
} damage_marker[65];
Видео :
Пожалуйста, авторизуйтесь для просмотра ссылки.
(noad)