Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int screenSizeX, screenCenterX;
- int screenSizeY, screenCenterY;
- auto lineSize = 8;
- g_pEngine->GetScreenSize(screenSizeX, screenSizeY);
- //std::array< vec2_t, 3 >points{ vec2_t(screenSizeX / 2 - 16, screenSizeY / 2 - 16),
- //vec2_t(screenSizeX / 2 + 16, screenSizeY / 2),
- //vec2_t(screenSizeX / 2 - 16, screenSizeY / 2 + 16) };
- screenCenterX = screenSizeX / 2;
- screenCenterY = screenSizeY / 2;
- if (Hitmarkertime > 0) {
- Hitmarkertime = max(Hitmarkertime - 2, 0);
- g_pSurface->Line(screenCenterX + 6, screenCenterY + 6, screenCenterX + 3, screenCenterY + 3, Color::White(Hitmarkertime));// Bottom right to center
- g_pSurface->Line(screenCenterX - 6, screenCenterY + 6, screenCenterX - 3, screenCenterY + 3, Color::White(Hitmarkertime));//Bottom left to center
- g_pSurface->Line(screenCenterX + 6, screenCenterY - 6, screenCenterX + 3, screenCenterY - 3, Color::White(Hitmarkertime));//Top right to center
- g_pSurface->Line(screenCenterX - 6, screenCenterY - 6, screenCenterX - 3, screenCenterY - 3, Color::White(Hitmarkertime));//Top left to center
- }
- Vector ViewAngs;
- if (c_config::get().watermark) {
- screenCenterX = screenSizeX / 2;
- screenCenterY = screenSizeY / 2;
- int fps = static_cast<int>(1.f / g_pGlobalVars->frametime);
- int tickrate = 1.f / g_pGlobalVars->intervalPerTick;
- SIZE sz;
- time_t current = time(0);
- std::string nomezao;
- nomezao += (" blooms.pw.pub | ");
- nomezao += ("fps: ");
- std::string timer;
- timer += std::to_string(current);
- std::string bouncyfps;
- bouncyfps += std::to_string(fps);
- std::string infozao = nomezao;
- auto net_channel = g_pEngine->GetNetChannelInfo();
- auto local_player = reinterpret_cast<C_BaseEntity*>(g_pEntityList->GetClientEntity(g_pEngine->GetLocalPlayer()));
- std::string incoming = local_player ? std::to_string((int)(net_channel->GetLatency(FLOW_INCOMING) * 1000)) : "0";
- std::string outgoing = local_player ? std::to_string((int)(net_channel->GetLatency(FLOW_OUTGOING) * 1000)) : "0";
- int x, y;
- g_pEngine->GetScreenSize(x, y);
- int w_s, h_s;
- int w, h;
- int w0, h0;
- g_pEngine->GetScreenSize(w_s, h_s);
- w = w_s / 2; h = h_s / 2;
- //197
- x = 790 + 790, y = 5, w = 250, h = 30;
- g_pSurface->DrawSetColor(Color(11, 11, 11));
- auto watermark = [](int x, int y, int w, int h, Color c) {
- g_pSurface->Line(x, y, x, y + h, c);
- g_pSurface->Line(x, y + h, x + w + 1, y + h, c);
- g_pSurface->Line(x + w, y, x + w, y + h, c);
- g_pSurface->Line(x, y, x + w, y, c);
- };
- static int u = 0;
- float watermarkScrollSpeed = 1.5f;
- g_pSurface->FilledRect(x, y, w, h, Color(11, 11, 11));
- watermark(x - 0, y - 0, w + 0 * 2, h + 0 * 2, Color(18, 18, 18));
- watermark(x - 1, y - 1, w + 1 * 2, h + 1 * 2, Color(53, 53, 53));
- watermark(x - 2, y - 2, w + 2 * 2, h + 2 * 2, Color(28, 28, 28));
- watermark(x - 3, y - 3, w + 3 * 2, h + 3 * 2, Color(28, 28, 28));
- watermark(x - 4, y - 4, w + 4 * 2, h + 4 * 2, Color(28, 28, 28));
- watermark(x - 5, y - 5, w + 5 * 2, h + 5 * 2, Color(53, 53, 53));
- watermark(x - 6, y - 6, w + 6 * 2, h + 6 * 2, Color(18, 18, 18));
- //1700 + 5, 14
- //25, 65
- static double rainbow;
- rainbow += 0.001;
- if (rainbow > 1.f)
- rainbow = 0;
- Color color = Color::FromHSB(rainbow, 1.f, 1.f);
- g_pSurface->DrawT(1600 + 3, 10, Color(c_config::get().menu_color_r, c_config::get().menu_color_g, c_config::get().menu_color_b), Globals::NEWFont, false, " FPS: PING: TICK: ");
- g_pSurface->DrawT(1650, 10, color, Globals::NEWFont, infozao.c_str(), bouncyfps.c_str());
- g_pSurface->DrawT(1740, 10, color, Globals::NEWFont, incoming.c_str(), outgoing.c_str());
- ////////
- w = w_s / 2; h = h_s / 2;
- //197
- x = 930 + 930, y = 5, w = 50, h = 30;
- auto watermark1 = [](int x, int y, int w, int h, Color c) {
- g_pSurface->Line(x, y, x, y + h, c);
- g_pSurface->Line(x, y + h, x + w + 1, y + h, c);
- g_pSurface->Line(x + w, y, x + w, y + h, c);
- g_pSurface->Line(x, y, x + w, y, c);
- };
- static int u1 = 0;
- float watermarkScrollSpeed1 = 1.5f;
- // g_pSurface->DrawLine(x, y, w, h, 11, 11, 11));
- g_pSurface->FilledRect(x, y, w, h, Color(11, 11, 11));
- watermark1(x - 0, y - 0, w + 0 * 2, h + 0 * 2, Color(18, 18, 18));
- watermark1(x - 1, y - 1, w + 1 * 2, h + 1 * 2, Color(53, 53, 53));
- watermark1(x - 2, y - 2, w + 2 * 2, h + 2 * 2, Color(28, 28, 28));
- watermark1(x - 3, y - 3, w + 3 * 2, h + 3 * 2, Color(28, 28, 28));
- watermark1(x - 4, y - 4, w + 4 * 2, h + 4 * 2, Color(28, 28, 28));
- watermark1(x - 5, y - 5, w + 5 * 2, h + 5 * 2, Color(53, 53, 53));
- watermark1(x - 6, y - 6, w + 6 * 2, h + 6 * 2, Color(18, 18, 18));
- //1700 + 5, 14
- //25, 65
- g_pSurface->DrawT(1865 + 1, 7, color, Globals::WTTFont, false, "BS");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement