Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.23 KB | None | 0 0
  1. if (Menu::Window.VisualsTab.OptionsInfo.GetState())
  2.     {
  3.         RECT nameSize = Render::GetTextSize(Render::Fonts::ESP, "");
  4.         int i = 0;
  5.         if (pEntity->GetVelocity().Length2D() < 36 && pEntity->GetVelocity().Length2D() > 20)
  6.         Render::Text(size.x + size.w + 3, size.y + (i*(nameSize.bottom + 4)), Color(255, 0, 100, 255), Render::Fonts::xsESP, "FAKE");
  7.     }
  8.  
  9.  
  10.     if (Menu::Window.VisualsTab.OptionsInfo.GetState())
  11.     {
  12.         RECT nameSize = Render::GetTextSize(Render::Fonts::ESP, "");
  13.         int i = 0;
  14.         if (pEntity->GetVelocity().Length2D() < 1)
  15.         Render::Text(size.x + size.w + 3, size.y + (i*(nameSize.bottom + 4)), Color(255, 255, 255, 255), Render::Fonts::xsESP, "FAKE");
  16.     }
  17.  
  18.  
  19.     if (Menu::Window.VisualsTab.OptionsInfo.GetState() && pEntity->HasHelmet())
  20.     {
  21.         RECT nameSize = Render::GetTextSize(Render::Fonts::ESP, "");
  22.         int i = 0;
  23.        
  24.         if (pEntity->ArmorValue() > 0)
  25.         {
  26.             char hp[50];
  27.             sprintf_s(hp, sizeof(hp), "%i", pEntity->ArmorValue());
  28.  
  29.             if (pEntity->HasHelmet())
  30.                 Render::Text(size.x + size.w + 3, size.y + (i*(nameSize.bottom + 10) + 9), Color(255, 255, 255, 255), Render::Fonts::xsESP, "HK");
  31.             else
  32.                 Render::Text(size.x + size.w + 3, size.y + (i*(nameSize.bottom + 10) + 9), Color(255, 255, 255, 255), Render::Fonts::xsESP, " K");
  33.         }
  34.     }
  35.  
  36.  
  37. //
  38.  
  39. void CEsp::DrawMolotov(IClientEntity* pEntity, ClientClass* cClass)
  40. {
  41.     ESPBox Box;
  42.  
  43.     if (GetBox(pEntity, Box))
  44.     {
  45.         player_info_t pinfo; strcpy_s(pinfo.name, "Fire");
  46.  
  47.         if (Menu::Window.VisualsTab.OtherNades.GetState())
  48.             DrawName(pinfo, Box);
  49.     }
  50. }
  51.  
  52. void CEsp::DrawSmoke(IClientEntity* pEntity, ClientClass* cClass)
  53. {
  54.     ESPBox Box;
  55.  
  56.     if (GetBox(pEntity, Box))
  57.     {
  58.         player_info_t pinfo; strcpy_s(pinfo.name, "Smoke");
  59.  
  60.         if (Menu::Window.VisualsTab.OtherNades.GetState() == 1)
  61.             DrawName(pinfo, Box);
  62.     }
  63. }
  64.  
  65. void CEsp::DrawDecoy(IClientEntity* pEntity, ClientClass* cClass)
  66. {
  67.     ESPBox Box;
  68.  
  69.     if (GetBox(pEntity, Box))
  70.     {
  71.         player_info_t pinfo; strcpy_s(pinfo.name, "Decoy");
  72.  
  73.         if (Menu::Window.VisualsTab.OtherNades.GetState())
  74.             DrawName(pinfo, Box);
  75.     }
  76. }
  77.  
  78. void CEsp::DrawHE(IClientEntity* pEntity, ClientClass* cClass)
  79. {
  80.     ESPBox Box;
  81.  
  82.     if (GetBox(pEntity, Box))
  83.     {
  84.         player_info_t pinfo; strcpy_s(pinfo.name, "Grenade");
  85.  
  86.         if (Menu::Window.VisualsTab.OtherNades.GetState())
  87.             DrawName(pinfo, Box);
  88.     }
  89. }
  90.  
  91. void CEsp::DrawGray()
  92. {
  93.     auto impact = Interfaces::CVar->FindVar("mat_drawgray");
  94.     auto impactspoof = new SpoofedConvar(impact);
  95.     if (Menu::Window.VisualsTab.OptionsGray.GetState())
  96.         impactspoof->SetInt(1);
  97.     else
  98.         impactspoof->SetInt(0);
  99. }
  100.  
  101. /////
  102.  
  103. if (Menu::Window.RageBotTab.AimbotPSilentAim.GetState())
  104.     {
  105.         // pSilent Aim
  106.  
  107.         CBaseCombatWeapon* entwep = (CBaseCombatWeapon*)Interfaces::EntList->GetClientEntityFromHandle(pLocal->GetActiveWeaponHandle());
  108.         QAngle oldView = pCmd->viewangles;
  109.         float oldSidemove = pCmd->sidemove;
  110.         float oldForwardmove = pCmd->forwardmove;
  111.         float flServerTime = (float)pLocal->GetTickBase() * Interfaces::Globals->interval_per_tick;
  112.         float flNextPrimaryAttack = entwep->GetNextPrimaryAttack();
  113.  
  114.         static int ChokedPackets = -1;
  115.         ChokedPackets++;
  116.  
  117.         if (ChokedPackets < 6)
  118.         {
  119.             bSendPacket = false;
  120.             pCmd->viewangles = angles;
  121.         }
  122.         else
  123.         {
  124.             bSendPacket = true;
  125.             pCmd->viewangles = oldView;
  126.             pCmd->sidemove = oldSidemove;
  127.             pCmd->forwardmove = oldForwardmove;
  128.             ChokedPackets = -1;
  129.             ReturnValue = false;
  130.         }
  131.     }
  132.  
  133.     return ReturnValue;
  134. }
  135.  
  136.  
  137. void CEsp::AmmoBar(IClientEntity* pEntity, CEsp::ESPBox size)
  138. {
  139.     IClientEntity* pWeapon = Interfaces::EntList->GetClientEntityFromHandle((HANDLE)pEntity->GetActiveWeaponHandle());
  140.     CSWeaponInfo* weapInfo = ((CBaseCombatWeapon*)Interfaces::EntList->GetClientEntityFromHandle(pEntity->GetActiveWeaponHandle()))->GetCSWpnData();
  141.  
  142.  
  143.     ESPBox ArBar = size;
  144.     ArBar.y += (ArBar.h + 3);
  145.     ArBar.h = 6;
  146.  
  147.     float ArValue = pWeapon->GetAmmoInClip();
  148.     float ArPerc = ArValue / weapInfo->iMaxClip1;
  149.     float Width = (size.w * ArPerc);
  150.     ArBar.w = Width;
  151.  
  152.  
  153.     //int player_armor = pEntity->ArmorValue() > 100 ? 100 : pEntity->ArmorValue();
  154.  
  155.     if (pWeapon) {
  156.         Color arc = Color(86, 123, 190, 255);
  157.  
  158.  
  159.         Render::Outline(size.x - 1, size.y + size.h + 2, size.w + 2, 4, Color(21, 21, 21, 200));
  160.  
  161.         int armor_width = Width;
  162.  
  163.         Render::DrawRect(size.x, size.y + size.h + 3, size.w, 2, Color(21, 21, 21, 240));
  164.         Render::DrawRect(size.x, size.y + size.h + 3, armor_width, 2, arc);
  165.     }
  166. }
  167.  
  168.  
  169. //////////////////////////////
  170.  
  171.  
  172. void CEsp::DrawBombPlanted2(IClientEntity* pEntity, ClientClass* cClass)
  173. {
  174.     // Null it out incase bomb has been dropped or planted
  175.     BombCarrier = nullptr;
  176.  
  177.     Vector vOrig; Vector vScreen;
  178.     vOrig = pEntity->GetOrigin();
  179.     CCSBomb* Bomb = (CCSBomb*)pEntity;
  180.  
  181.     float flBlow = Bomb->GetC4BlowTime();
  182.     float TimeRemaining = flBlow - (Interfaces::Globals->interval_per_tick * hackManager.pLocal()->GetTickBase());
  183.     char buffer[64];
  184.     sprintf_s(buffer, "B - %.1fs", TimeRemaining);
  185.     Render::Text(10, 10, Color(124, 195, 13, 255), Render::Fonts::BOMB, buffer);
  186.  
  187. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement