Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CBaseCombatWeapon* weapon = pEntity->GetWeapon();
- IClientEntity* weapon_entity = I::EntList->GetClientEntityFromHandle((HANDLE)pEntity->GetActiveWeaponHandle());
- if (weapon)
- {
- if (visualconfig.bWeaponNames)
- {
- if (visualconfig.iWeaponNamesType == 0)
- {
- ClientClass* cClass = (ClientClass*)weapon_entity->GetClientClass();
- if (cClass)
- {
- if (!visualconfig.bHealth && !visualconfig.bArmor || visualconfig.iHealthLocation != 1 && visualconfig.iArmorLocation != 1)
- 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());
- if (visualconfig.bHealth || visualconfig.bArmor)
- {
- if (visualconfig.iHealthLocation == 1 && visualconfig.iArmorLocation != 1 || visualconfig.iHealthLocation != 1 && visualconfig.iArmorLocation == 1)
- 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());
- else if (visualconfig.iHealthLocation == 1 && visualconfig.iArmorLocation == 1)
- 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());
- }
- }
- }
- else if (visualconfig.iWeaponNamesType == 1)
- {
- if (weapon)
- {
- if (!visualconfig.bHealth && !visualconfig.bArmor || visualconfig.iHealthLocation != 1 && visualconfig.iArmorLocation != 1)
- 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());
- if (visualconfig.bHealth || visualconfig.bArmor)
- {
- if (visualconfig.iHealthLocation == 1 && visualconfig.iArmorLocation != 1 || visualconfig.iHealthLocation != 1 && visualconfig.iArmorLocation == 1)
- 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());
- else if (visualconfig.iHealthLocation == 1 && visualconfig.iArmorLocation == 1)
- 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());
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement