Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. void CEsp::DrawInfo(IClientEntity* pEntity, CEsp::ESPBox size)
  2. {
  3. std::vector<std::string> Info;
  4.  
  5. // Player Weapon ESP
  6. IClientEntity* pWeapon = Interfaces::EntList->GetClientEntityFromHandle((HANDLE)pEntity->GetActiveWeaponHandle());
  7. if (Menu::Window.VisualsTab.OptionsWeapon.GetState() && pWeapon)
  8. {
  9. ClientClass* cClass = (ClientClass*)pWeapon->GetClientClass();
  10. if (cClass)
  11. {
  12. // Draw it
  13. Info.push_back(CleanItemName(cClass->m_pNetworkName));
  14. }
  15. }
  16.  
  17. // Bomb Carrier
  18. if (Menu::Window.VisualsTab.OptionsInfo.GetState() && pEntity == BombCarrier)
  19. {
  20. Info.push_back("Bomb Carrier");
  21. }
  22.  
  23. // Is Scoped
  24. if (Menu::Window.VisualsTab.IsScoped.GetState() && pEntity->IsScoped())
  25. {
  26. Info.push_back("Is Scoped");
  27. }
  28. // Has Defuser
  29. if (Menu::Window.VisualsTab.HasDefuser.GetState() && pEntity->HasDefuser())
  30. {
  31. Info.push_back("Has Defuser");
  32. }
  33. // Defusing
  34. if (Menu::Window.VisualsTab.IsDefusing.GetState() && pEntity->IsDefusing())
  35. {
  36. Info.push_back("Is Defusing");
  37. }
  38.  
  39. static RECT Size = Render::GetTextSize(Render::Fonts::Default, "Hi");
  40. int i = 0;
  41. for (auto Text : Info)
  42. {
  43. // Render both Weapon and Bomb Carrier
  44. Render::Text(size.x + size.w + 3, size.y + (i*(Size.bottom + 2)), Color(255, 255, 255, 255), Render::Fonts::ESP, Text.c_str());
  45. i++;
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement