Advertisement
tonti666

Untitled

Oct 23rd, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. CBaseCombatWeapon* weapon = pEntity->GetWeapon();
  2. IClientEntity* weapon_entity = I::EntList->GetClientEntityFromHandle((HANDLE)pEntity->GetActiveWeaponHandle());
  3. if (weapon)
  4. {
  5. if (visualconfig.bWeaponNames)
  6. {
  7. if (visualconfig.iWeaponNamesType == 0)
  8. {
  9. ClientClass* cClass = (ClientClass*)weapon_entity->GetClientClass();
  10. if (cClass)
  11. {
  12. if (!visualconfig.bHealth && !visualconfig.bArmor || visualconfig.iHealthLocation != 1 && visualconfig.iArmorLocation != 1)
  13. I::Surface->DrawT(box.x + (box.w / 2), box.y + box.h + 2, Color(255, 255, 255, 255), Draw::Fonts::ESP, true, CleanItemName(cClass->m_pNetworkName).c_str());
  14. if (visualconfig.bHealth || visualconfig.bArmor)
  15. {
  16. if (visualconfig.iHealthLocation == 1 && visualconfig.iArmorLocation != 1 || visualconfig.iHealthLocation != 1 && visualconfig.iArmorLocation == 1)
  17. I::Surface->DrawT(box.x + (box.w / 2), box.y + box.h + 7, Color(255, 255, 255, 255), Draw::Fonts::ESP, true, CleanItemName(cClass->m_pNetworkName).c_str());
  18. else if (visualconfig.iHealthLocation == 1 && visualconfig.iArmorLocation == 1)
  19. I::Surface->DrawT(box.x + (box.w / 2), box.y + box.h + 12, Color(255, 255, 255, 255), Draw::Fonts::ESP, true, CleanItemName(cClass->m_pNetworkName).c_str());
  20. }
  21. }
  22. }
  23. else if (visualconfig.iWeaponNamesType == 1)
  24. {
  25. if (weapon)
  26. {
  27. if (!visualconfig.bHealth && !visualconfig.bArmor || visualconfig.iHealthLocation != 1 && visualconfig.iArmorLocation != 1)
  28. I::Surface->DrawT(box.x + (box.w / 2), box.y + box.h + 2, Color(255, 255, 255, 255), Draw::Fonts::Font_Weapons, true, weapon->GetGunIcon());
  29. if (visualconfig.bHealth || visualconfig.bArmor)
  30. {
  31. if (visualconfig.iHealthLocation == 1 && visualconfig.iArmorLocation != 1 || visualconfig.iHealthLocation != 1 && visualconfig.iArmorLocation == 1)
  32. I::Surface->DrawT(box.x + (box.w / 2), box.y + box.h + 7, Color(255, 255, 255, 255), Draw::Fonts::Font_Weapons, true, weapon->GetGunIcon());
  33. else if (visualconfig.iHealthLocation == 1 && visualconfig.iArmorLocation == 1)
  34. I::Surface->DrawT(box.x + (box.w / 2), box.y + box.h + 12, Color(255, 255, 255, 255), Draw::Fonts::Font_Weapons, true, weapon->GetGunIcon());
  35. }
  36. }
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement