Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CEsp::DrawInfo(IClientEntity* pEntity, CEsp::ESPBox size)
- {
- std::vector<std::string> Info;
- // Player Weapon ESP
- IClientEntity* pWeapon = Interfaces::EntList->GetClientEntityFromHandle((HANDLE)pEntity->GetActiveWeaponHandle());
- if (Menu::Window.VisualsTab.OptionsWeapon.GetState() && pWeapon)
- {
- ClientClass* cClass = (ClientClass*)pWeapon->GetClientClass();
- if (cClass)
- {
- // Draw it
- Info.push_back(CleanItemName(cClass->m_pNetworkName));
- }
- }
- // Bomb Carrier
- if (Menu::Window.VisualsTab.OptionsInfo.GetState() && pEntity == BombCarrier)
- {
- Info.push_back("Bomb Carrier");
- }
- // Is Scoped
- if (Menu::Window.VisualsTab.IsScoped.GetState() && pEntity->IsScoped())
- {
- Info.push_back("Is Scoped");
- }
- // Has Defuser
- if (Menu::Window.VisualsTab.HasDefuser.GetState() && pEntity->HasDefuser())
- {
- Info.push_back("Has Defuser");
- }
- // Defusing
- if (Menu::Window.VisualsTab.IsDefusing.GetState() && pEntity->IsDefusing())
- {
- Info.push_back("Is Defusing");
- }
- static RECT Size = Render::GetTextSize(Render::Fonts::Default, "Hi");
- int i = 0;
- for (auto Text : Info)
- {
- // Render both Weapon and Bomb Carrier
- Render::Text(size.x + size.w + 3, size.y + (i*(Size.bottom + 2)), Color(255, 255, 255, 255), Render::Fonts::ESP, Text.c_str());
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement