SHARE
TWEET

Rampage esp ;)

a guest Aug 17th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool hs;
  2. static int test = 0;
  3. void Misc::pEvents(GameEvent* event) noexcept {
  4.     if (!interfaces.engine->isInGame() || !interfaces.engine->isConnected()) return;
  5.     if (!strcmp(event->getName(), "player_hurt")
  6.         && interfaces.engine->getPlayerForUserID(event->getInt("attacker")) == interfaces.engine->getLocalPlayer()) {
  7.         damagessptime = 255;
  8.         damage = event->getInt("dmg_health");
  9.         if (config.misc.hitmarker) {
  10.             Hitmarkertime = 255;
  11.             hitmarkerDeathEvent = false;
  12.         }
  13.     }
  14.     if (!strcmp(event->getName(), "player_death")
  15.         && interfaces.engine->getPlayerForUserID(event->getInt("attacker")) == interfaces.engine->getLocalPlayer()) {
  16.  
  17.         if (config.misc.hitmarker) {
  18.             Hitmarkertime = 255;
  19.             hitmarkerDeathEvent = true;
  20.         }
  21.         KillmarkerTime = 255;
  22.         killstreak++;
  23.     }
  24.     if (!strcmp(event->getName(), "player_death")
  25.         && interfaces.engine->getPlayerForUserID(event->getInt("userid")) == interfaces.engine->getLocalPlayer()) {
  26.         killstreak = 0;
  27.     }
  28.     if (!strcmp(event->getName(), "player_death")
  29.         && event->getBool("headshot")) {
  30.         hs = true;
  31.     }
  32.     if (!strcmp(event->getName(), "player_death")
  33.         && !event->getBool("headshot")) {
  34.         hs = false;
  35.     }
  36.     if (!strcmp(event->getName(), "round_start")) {
  37.         killstreak = 0;
  38.     }
  39. }
  40.  
  41. std::wstring killcount() {
  42.     if (killstreak == 1)
  43.         return (L"FIRST BLOOD!");
  44.     else if (killstreak == 2)
  45.         return (L"DOUBLE KILL!");
  46.     else if (killstreak == 3)
  47.         return (L"TRIPLE KILL!");
  48.     else if (killstreak == 4)
  49.         return (L"DOMINATING!");
  50.     else if (killstreak == 5)
  51.         return (L"COMBOWHORE!");
  52.     else if (killstreak == 6)
  53.         return (L"RAMPAGE!");
  54.     else if (killstreak == 7)
  55.         return (L"KILLINGSPREE!");
  56.     else if (killstreak == 8)
  57.         return (L"MONSTERKILL!");
  58.     else if (killstreak == 9)
  59.         return (L"UNSTOPPABLE!");
  60.     else if (killstreak == 10)
  61.         return (L"GODLIKE!");
  62.     else if (killstreak > 10)
  63.         return (L"GODLIKE!");
  64.     else if (killstreak > 50)
  65.         return (L"KYS ALREADY!");
  66.     else
  67.         return(L":)");
  68. }
  69.  
  70. void Misc::hmmMarker() noexcept {
  71.     if (!interfaces.engine->isInGame() || !interfaces.engine->isConnected()) return;
  72.     const auto localPlayer = interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer());
  73.     if (!localPlayer || !localPlayer->isAlive()) return;
  74.     static unsigned font = interfaces.surface->createFont();
  75.     static bool init = interfaces.surface->setFontGlyphSet(font, "Terminal", 24, 700, 0, 0, 128);
  76.     interfaces.surface->setTextFont(font);
  77.     interfaces.surface->setTextColor(config.extra.active_menu_theme_r, config.extra.active_menu_theme_g, config.extra.active_menu_theme_b, KillmarkerTime);
  78.     const auto [x, y] = interfaces.surface->getScreenSize();
  79.     if (KillmarkerTime > 0) {
  80.         switch (killstreak) {
  81.         case 1: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) + test); break;
  82.         case 2: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) + test); break;
  83.         case 3: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) - test); break;
  84.         case 4: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) - test); break;
  85.         case 5: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) + test); break;
  86.         case 6: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) + test); break;
  87.         case 7: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) - test); break;
  88.         case 8: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) - test); break;
  89.         case 9: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) + test); break;
  90.         case 10: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) + test); break;
  91.         case 11: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) - test); break;
  92.         case 12: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) - test); break;
  93.         case 13: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) + test); break;
  94.         case 14: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) + test); break;
  95.         case 15: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) - test); break;
  96.         case 16: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) - test); break;
  97.         case 17: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) + test); break;
  98.         case 18: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) + test); break;
  99.         case 19: interfaces.surface->setTextPosition((x / 2) + test, (y / 2) - test); break;
  100.         case 20: interfaces.surface->setTextPosition((x / 2) - test, (y / 2) - test); break;
  101.         default :interfaces.surface->setTextPosition((x / 2) + test, (y / 2) + test); break;
  102.         }
  103.         test = test + 5;
  104.         KillmarkerTime = max(KillmarkerTime - 12, 0);
  105.         if (!hs) interfaces.surface->printText(killcount());
  106.         else if (hs && killstreak == 1)
  107.             interfaces.surface->printText(L"HEADSHOT!");
  108.         else
  109.             interfaces.surface->printText(killcount());
  110.     }
  111.     else test = 0;
  112.     int safety = killstreak;
  113. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top