Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Menu::Window.VisualsTab.OptionsInfo.GetState())
- {
- RECT nameSize = Render::GetTextSize(Render::Fonts::ESP, "");
- int i = 0;
- if (pEntity->GetVelocity().Length2D() < 36 && pEntity->GetVelocity().Length2D() > 20)
- Render::Text(size.x + size.w + 3, size.y + (i*(nameSize.bottom + 4)), Color(255, 0, 100, 255), Render::Fonts::xsESP, "FAKE");
- }
- if (Menu::Window.VisualsTab.OptionsInfo.GetState())
- {
- RECT nameSize = Render::GetTextSize(Render::Fonts::ESP, "");
- int i = 0;
- if (pEntity->GetVelocity().Length2D() < 1)
- Render::Text(size.x + size.w + 3, size.y + (i*(nameSize.bottom + 4)), Color(255, 255, 255, 255), Render::Fonts::xsESP, "FAKE");
- }
- if (Menu::Window.VisualsTab.OptionsInfo.GetState() && pEntity->HasHelmet())
- {
- RECT nameSize = Render::GetTextSize(Render::Fonts::ESP, "");
- int i = 0;
- if (pEntity->ArmorValue() > 0)
- {
- char hp[50];
- sprintf_s(hp, sizeof(hp), "%i", pEntity->ArmorValue());
- if (pEntity->HasHelmet())
- Render::Text(size.x + size.w + 3, size.y + (i*(nameSize.bottom + 10) + 9), Color(255, 255, 255, 255), Render::Fonts::xsESP, "HK");
- else
- Render::Text(size.x + size.w + 3, size.y + (i*(nameSize.bottom + 10) + 9), Color(255, 255, 255, 255), Render::Fonts::xsESP, " K");
- }
- }
- //
- void CEsp::DrawMolotov(IClientEntity* pEntity, ClientClass* cClass)
- {
- ESPBox Box;
- if (GetBox(pEntity, Box))
- {
- player_info_t pinfo; strcpy_s(pinfo.name, "Fire");
- if (Menu::Window.VisualsTab.OtherNades.GetState())
- DrawName(pinfo, Box);
- }
- }
- void CEsp::DrawSmoke(IClientEntity* pEntity, ClientClass* cClass)
- {
- ESPBox Box;
- if (GetBox(pEntity, Box))
- {
- player_info_t pinfo; strcpy_s(pinfo.name, "Smoke");
- if (Menu::Window.VisualsTab.OtherNades.GetState() == 1)
- DrawName(pinfo, Box);
- }
- }
- void CEsp::DrawDecoy(IClientEntity* pEntity, ClientClass* cClass)
- {
- ESPBox Box;
- if (GetBox(pEntity, Box))
- {
- player_info_t pinfo; strcpy_s(pinfo.name, "Decoy");
- if (Menu::Window.VisualsTab.OtherNades.GetState())
- DrawName(pinfo, Box);
- }
- }
- void CEsp::DrawHE(IClientEntity* pEntity, ClientClass* cClass)
- {
- ESPBox Box;
- if (GetBox(pEntity, Box))
- {
- player_info_t pinfo; strcpy_s(pinfo.name, "Grenade");
- if (Menu::Window.VisualsTab.OtherNades.GetState())
- DrawName(pinfo, Box);
- }
- }
- void CEsp::DrawGray()
- {
- auto impact = Interfaces::CVar->FindVar("mat_drawgray");
- auto impactspoof = new SpoofedConvar(impact);
- if (Menu::Window.VisualsTab.OptionsGray.GetState())
- impactspoof->SetInt(1);
- else
- impactspoof->SetInt(0);
- }
- /////
- if (Menu::Window.RageBotTab.AimbotPSilentAim.GetState())
- {
- // pSilent Aim
- CBaseCombatWeapon* entwep = (CBaseCombatWeapon*)Interfaces::EntList->GetClientEntityFromHandle(pLocal->GetActiveWeaponHandle());
- QAngle oldView = pCmd->viewangles;
- float oldSidemove = pCmd->sidemove;
- float oldForwardmove = pCmd->forwardmove;
- float flServerTime = (float)pLocal->GetTickBase() * Interfaces::Globals->interval_per_tick;
- float flNextPrimaryAttack = entwep->GetNextPrimaryAttack();
- static int ChokedPackets = -1;
- ChokedPackets++;
- if (ChokedPackets < 6)
- {
- bSendPacket = false;
- pCmd->viewangles = angles;
- }
- else
- {
- bSendPacket = true;
- pCmd->viewangles = oldView;
- pCmd->sidemove = oldSidemove;
- pCmd->forwardmove = oldForwardmove;
- ChokedPackets = -1;
- ReturnValue = false;
- }
- }
- return ReturnValue;
- }
- void CEsp::AmmoBar(IClientEntity* pEntity, CEsp::ESPBox size)
- {
- IClientEntity* pWeapon = Interfaces::EntList->GetClientEntityFromHandle((HANDLE)pEntity->GetActiveWeaponHandle());
- CSWeaponInfo* weapInfo = ((CBaseCombatWeapon*)Interfaces::EntList->GetClientEntityFromHandle(pEntity->GetActiveWeaponHandle()))->GetCSWpnData();
- ESPBox ArBar = size;
- ArBar.y += (ArBar.h + 3);
- ArBar.h = 6;
- float ArValue = pWeapon->GetAmmoInClip();
- float ArPerc = ArValue / weapInfo->iMaxClip1;
- float Width = (size.w * ArPerc);
- ArBar.w = Width;
- //int player_armor = pEntity->ArmorValue() > 100 ? 100 : pEntity->ArmorValue();
- if (pWeapon) {
- Color arc = Color(86, 123, 190, 255);
- Render::Outline(size.x - 1, size.y + size.h + 2, size.w + 2, 4, Color(21, 21, 21, 200));
- int armor_width = Width;
- Render::DrawRect(size.x, size.y + size.h + 3, size.w, 2, Color(21, 21, 21, 240));
- Render::DrawRect(size.x, size.y + size.h + 3, armor_width, 2, arc);
- }
- }
- //////////////////////////////
- void CEsp::DrawBombPlanted2(IClientEntity* pEntity, ClientClass* cClass)
- {
- // Null it out incase bomb has been dropped or planted
- BombCarrier = nullptr;
- Vector vOrig; Vector vScreen;
- vOrig = pEntity->GetOrigin();
- CCSBomb* Bomb = (CCSBomb*)pEntity;
- float flBlow = Bomb->GetC4BlowTime();
- float TimeRemaining = flBlow - (Interfaces::Globals->interval_per_tick * hackManager.pLocal()->GetTickBase());
- char buffer[64];
- sprintf_s(buffer, "B - %.1fs", TimeRemaining);
- Render::Text(10, 10, Color(124, 195, 13, 255), Render::Fonts::BOMB, buffer);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement