Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. if (Menu::Window.MiscTab.Watermark.GetState()) {
  2. const auto charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*abcdefghijklmnopqrstuvwxyz";
  3. char buildDate[256];
  4. sprintf_s(buildDate, "vsonyp0wer.cf FlowHook Build 1.37", __DATE__);
  5. static int len = std::string(buildDate).length();
  6. static bool bSleep = false;
  7. static int delayTime;
  8. static int pos = 0;
  9.  
  10. if (pos > -1) {
  11. for (int i = 0; i < len; ++i) {
  12. if (i >= pos) buildDate[i] = charset[rand() % strlen(charset) - 1];
  13. }
  14. }
  15.  
  16. if (!bSleep) {
  17. pos++;
  18. bSleep = true;
  19. delayTime = GetTickCount() + 50;
  20. if (pos == len) {
  21. pos = -1;
  22. delayTime += 500;
  23. }
  24. }
  25. else if (delayTime < GetTickCount()) {
  26. bSleep = false;
  27. }
  28. draw.text(5, 10, buildDate, draw.fonts.esp_small, Color(0, 255, 0));
  29. }
  30.  
  31.  
  32. // =========================================================== ESP LBY , CHOKE ETC THINGS ======================================
  33.  
  34.  
  35. void otheresp::indicators()
  36. {
  37. auto local_player = static_cast<player_t *>(g_csgo.m_entitylist()->GetClientEntity(g_csgo.m_engine()->GetLocalPlayer()));
  38. auto weapon = local_player->m_hActiveWeapon().Get();
  39. int w = 0, h = 0;
  40. g_csgo.m_engine()->GetScreenSize(w, h);
  41.  
  42. static auto draw_bar = [](int x, int y, float val, float max, const wchar_t* name) {
  43. if (val > max)
  44. val = max;
  45.  
  46. render::get().draw_wide_string(true, fonts[INDICATORFONT], x + 125 / 2, y - 8, Color(255, 255, 255, 255), const_cast<wchar_t*>(name));
  47. render::get().draw_filled_rect(x, y, 125, 15, Color(50, 50, 50, 75));
  48. render::get().draw_filled_rect(x, y, 125 * (val / max), 15, Color(0, 255, 0, 75));
  49. };
  50. static auto last_fake_origin = Vector();
  51. static auto last_origin = Vector();
  52.  
  53. if(!g_csgo.m_clientstate()->m_nChokedCommands) {
  54. last_fake_origin = last_origin;
  55. last_origin = local_player->m_vecOrigin();
  56. }
  57. auto nci = g_csgo.m_engine()->GetNetChannelInfo();
  58.  
  59. if (!nci)
  60. return;
  61. if (local_player->is_valid_player() && local_player->is_alive()) {
  62. if (g_cfg.esp.croked_indicator)
  63. draw_bar(10, h / 2 - 100, g_csgo.m_clientstate()->m_nChokedCommands, 15.0f, L"choke");
  64.  
  65.  
  66. if (g_cfg.esp.extend_indicator)
  67. draw_bar(10, h / 2, (weapon->m_iClip1()) * 1000.0f, 400.0f, L"extend");
  68.  
  69. if (g_cfg.esp.lc_indicator) {
  70. draw_bar(10, h / 2 + 100, last_fake_origin.DistToSqr(last_origin), 15.0f, L"lc");
  71. }
  72. }
  73. else if (local_player && g_csgo.m_engine()->IsInGame() && g_csgo.m_engine()->IsConnected()) {
  74. if (g_cfg.esp.croked_indicator)
  75. draw_bar(15, h / 2 - 150, 0.0f, 1.0f, L"choke");
  76.  
  77. if (g_cfg.esp.extend_indicator)
  78. draw_bar(15, h / 2, 0.0f, 2.0f, L"extend");
  79.  
  80. if (g_cfg.esp.lc_indicator)
  81. draw_bar(15, h / 2 + 150, 0.0f, 2.0f, L"lc");
  82. }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement