Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Menu::Window.MiscTab.Watermark.GetState()) {
- const auto charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*abcdefghijklmnopqrstuvwxyz";
- char buildDate[256];
- sprintf_s(buildDate, "vsonyp0wer.cf FlowHook Build 1.37", __DATE__);
- static int len = std::string(buildDate).length();
- static bool bSleep = false;
- static int delayTime;
- static int pos = 0;
- if (pos > -1) {
- for (int i = 0; i < len; ++i) {
- if (i >= pos) buildDate[i] = charset[rand() % strlen(charset) - 1];
- }
- }
- if (!bSleep) {
- pos++;
- bSleep = true;
- delayTime = GetTickCount() + 50;
- if (pos == len) {
- pos = -1;
- delayTime += 500;
- }
- }
- else if (delayTime < GetTickCount()) {
- bSleep = false;
- }
- draw.text(5, 10, buildDate, draw.fonts.esp_small, Color(0, 255, 0));
- }
- // =========================================================== ESP LBY , CHOKE ETC THINGS ======================================
- void otheresp::indicators()
- {
- auto local_player = static_cast<player_t *>(g_csgo.m_entitylist()->GetClientEntity(g_csgo.m_engine()->GetLocalPlayer()));
- auto weapon = local_player->m_hActiveWeapon().Get();
- int w = 0, h = 0;
- g_csgo.m_engine()->GetScreenSize(w, h);
- static auto draw_bar = [](int x, int y, float val, float max, const wchar_t* name) {
- if (val > max)
- val = max;
- render::get().draw_wide_string(true, fonts[INDICATORFONT], x + 125 / 2, y - 8, Color(255, 255, 255, 255), const_cast<wchar_t*>(name));
- render::get().draw_filled_rect(x, y, 125, 15, Color(50, 50, 50, 75));
- render::get().draw_filled_rect(x, y, 125 * (val / max), 15, Color(0, 255, 0, 75));
- };
- static auto last_fake_origin = Vector();
- static auto last_origin = Vector();
- if(!g_csgo.m_clientstate()->m_nChokedCommands) {
- last_fake_origin = last_origin;
- last_origin = local_player->m_vecOrigin();
- }
- auto nci = g_csgo.m_engine()->GetNetChannelInfo();
- if (!nci)
- return;
- if (local_player->is_valid_player() && local_player->is_alive()) {
- if (g_cfg.esp.croked_indicator)
- draw_bar(10, h / 2 - 100, g_csgo.m_clientstate()->m_nChokedCommands, 15.0f, L"choke");
- if (g_cfg.esp.extend_indicator)
- draw_bar(10, h / 2, (weapon->m_iClip1()) * 1000.0f, 400.0f, L"extend");
- if (g_cfg.esp.lc_indicator) {
- draw_bar(10, h / 2 + 100, last_fake_origin.DistToSqr(last_origin), 15.0f, L"lc");
- }
- }
- else if (local_player && g_csgo.m_engine()->IsInGame() && g_csgo.m_engine()->IsConnected()) {
- if (g_cfg.esp.croked_indicator)
- draw_bar(15, h / 2 - 150, 0.0f, 1.0f, L"choke");
- if (g_cfg.esp.extend_indicator)
- draw_bar(15, h / 2, 0.0f, 2.0f, L"extend");
- if (g_cfg.esp.lc_indicator)
- draw_bar(15, h / 2 + 150, 0.0f, 2.0f, L"lc");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement