Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //--- Entity Glow ---//
- for (auto i = 0; i < INTERFACES::GlowObjManager->GetSize(); i++)
- {
- auto &glowObject = INTERFACES::GlowObjManager->m_GlowObjectDefinitions[i];
- auto entity = reinterpret_cast<SDK::CBaseEntity*>(glowObject.m_pEntity);
- auto m_pLocalPlayer = reinterpret_cast<SDK::CBaseEntity*>(INTERFACES::ClientEntityList->GetClientEntity(INTERFACES::Engine->GetLocalPlayer()));
- if (!entity)
- continue;
- if (!m_pLocalPlayer)
- continue;
- if (glowObject.IsUnused())
- continue;
- bool is_local_player = entity == m_pLocalPlayer;
- bool is_teammate = m_pLocalPlayer->GetTeam() == entity->GetTeam() && !is_local_player;
- if (is_local_player)
- continue;
- if (is_local_player && in_tp && SETTINGS::settings.localglow_bool) //unused
- {
- glowObject.m_nGlowStyle = 1;
- glowObject.m_flAlpha = 1.f;
- glowObject.m_flRed = color.RGBA[0] / 255.0f;
- glowObject.m_flGreen = color.RGBA[1] / 255.0f;
- glowObject.m_flBlue = color.RGBA[2] / 255.0f;
- glowObject.m_bRenderWhenOccluded = true;
- glowObject.m_bRenderWhenUnoccluded = false;
- glowObject.m_bFullBloomRender = true;
- continue;
- }
- if (!SETTINGS::settings.glow_bool)
- continue;
- if (is_teammate)
- continue;
- auto class_id = entity->GetClientClass()->m_ClassID;
- switch (class_id)
- {
- default:
- glowObject.m_flAlpha = 0.0f;
- break;
- case 35:
- glowObject.m_nGlowStyle = 0;
- glowObject.m_flAlpha = 0.7f;
- break;
- }
- glowObject.m_flRed = color.RGBA[0] / 255.0f;
- glowObject.m_flGreen = color.RGBA[1] / 255.0f;
- glowObject.m_flBlue = color.RGBA[2] / 255.0f;
- glowObject.m_bRenderWhenOccluded = true;
- glowObject.m_bRenderWhenUnoccluded = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement