Пользователь
-
Автор темы
- #1
otc3 watermark
ss
ss
C++:
if (!g_cfg.menu.watermark)
return;
auto width = 0, height = 0;
m_engine()->GetScreenSize(width, height);
std::string cheat_name = "onetap";
auto watermark = cheat_name + (" | ") + g_ctx.username + (" | ") + g_ctx.globals.time;
if (m_engine()->IsInGame())
{
INetChannelInfo* nci = m_engine()->GetNetChannelInfo();
if (nci)
{
const char* server = nci->GetAddress();
if (!strcmp(server, ("loopback")))
server = ("local server");
else if (m_gamerules()->m_bIsValveDS())
server = ("valve");
auto tickrate = std::to_string((int)(1.0f / m_globals()->m_intervalpertick));
watermark = cheat_name + (" | ") + g_ctx.username + (" | ") + server + (" | delay: ") + std::to_string(g_ctx.globals.ping) + ("ms | ") + tickrate + ("tick | ") + g_ctx.globals.time;
}
}
auto box_width = render::get().text_width(fonts[NAME], watermark.c_str()) + 10;
render::get().gradient(width - 10 - box_width, 10, box_width / 2, 2, Color(208, 167, 121), Color(247, 229, 181), GRADIENT_HORIZONTAL);
render::get().gradient(width - 10 - box_width + (box_width / 2), 10, box_width / 2, 2, Color(247, 229, 181), Color(208, 167, 121), GRADIENT_HORIZONTAL);
render::get().rect_filled(width - 10 - box_width, 12, box_width, 14, Color(10, 10, 10, 150));
render::get().text(fonts[NAME], width - 10 - box_width + 5, 19, Color(255, 255, 255, 220), HFONT_CENTERED_Y, watermark.c_str());