Дай код своего
void otheresp::damage_marker_paint()
{
for (auto i = 1; i < m_globals()->m_maxclients; i++) //-V807
{
if (damage_marker[i].hurt_time + 2.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.5f);
damage_marker[i].hurt_color.SetAlpha(alpha);
render::get().text(fonts[DAMAGE_MARKER], screen.x, screen.y, damage_marker[i].hurt_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "%i", damage_marker[i].damage);
}
}
}
credits: chatgptКод:void otheresp::damage_marker_paint() { for (auto i = 1; i < m_globals()->m_maxclients; i++) //-V807 { if (damage_marker[i].hurt_time + 2.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.5f); damage_marker[i].hurt_color.SetAlpha(alpha); render::get().text(fonts[DAMAGE_MARKER], screen.x, screen.y, damage_marker[i].hurt_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "%i", damage_marker[i].damage); } } }
void otheresp::damage_marker_paint()
{
for (auto i = 1; i < m_globals()->m_maxclients; i++)
{
if (damage_marker[i].hurt_time + 2.0f > m_globals()->m_curtime)
{
Vector screen;
if (!math::world_to_screen(damage_marker[i].position, screen))
continue;
auto time_since_hurt = m_globals()->m_curtime - damage_marker[i].hurt_time;
auto alpha = static_cast<int>((2.0f - time_since_hurt) * 127.5f);
damage_marker[i].hurt_color.SetAlpha(alpha);
// Calculate vertical offset for text animation
auto vertical_offset = static_cast<int>(time_since_hurt * 20.0f);
// Adjust the Y-coordinate for animation
int text_y = screen.y - vertical_offset;
render::get().text(fonts[DAMAGE_MARKER], screen.x, text_y, damage_marker[i].hurt_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "%i", damage_marker[i].damage);
}
}
}
thankscredits: chatgpt
c++:void otheresp::damage_marker_paint() { for (auto i = 1; i < m_globals()->m_maxclients; i++) { if (damage_marker[i].hurt_time + 2.0f > m_globals()->m_curtime) { Vector screen; if (!math::world_to_screen(damage_marker[i].position, screen)) continue; auto time_since_hurt = m_globals()->m_curtime - damage_marker[i].hurt_time; auto alpha = static_cast<int>((2.0f - time_since_hurt) * 127.5f); damage_marker[i].hurt_color.SetAlpha(alpha); // Calculate vertical offset for text animation auto vertical_offset = static_cast<int>(time_since_hurt * 20.0f); // Adjust the Y-coordinate for animation int text_y = screen.y - vertical_offset; render::get().text(fonts[DAMAGE_MARKER], screen.x, text_y, damage_marker[i].hurt_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "%i", damage_marker[i].damage); } } }
хахахха ебатьcredits: chatgpt
c++:void otheresp::damage_marker_paint() { for (auto i = 1; i < m_globals()->m_maxclients; i++) { if (damage_marker[i].hurt_time + 2.0f > m_globals()->m_curtime) { Vector screen; if (!math::world_to_screen(damage_marker[i].position, screen)) continue; auto time_since_hurt = m_globals()->m_curtime - damage_marker[i].hurt_time; auto alpha = static_cast<int>((2.0f - time_since_hurt) * 127.5f); damage_marker[i].hurt_color.SetAlpha(alpha); // Calculate vertical offset for text animation auto vertical_offset = static_cast<int>(time_since_hurt * 20.0f); // Adjust the Y-coordinate for animation int text_y = screen.y - vertical_offset; render::get().text(fonts[DAMAGE_MARKER], screen.x, text_y, damage_marker[i].hurt_color, HFONT_CENTERED_X | HFONT_CENTERED_Y, "%i", damage_marker[i].damage); } } }
Проект предоставляет различный материал, относящийся к сфере киберспорта, программирования, ПО для игр, а также позволяет его участникам общаться на многие другие темы. Почта для жалоб: admin@yougame.biz