Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- for (int i = 0; i < 64; i++)
- {
- c_entity * entity = (c_entity*)entitylist->get_client_entity(i);
- if (entity == nullptr || entity->get_health() < 1 || entity->is_dormant())
- continue;
- if (glow)
- {
- static unsigned int GlowObject = *(unsigned int*)((unsigned int)FindPatternIDA("client_panorama.dll", "A1 ? ? ? ? A8 01 75 4B") + 0x1) - (uint32_t)GetModuleHandleA("client_panorama.dll") + 0x4;
- static unsigned int Client = (unsigned int)GetModuleHandleA("client_panorama.dll");
- unsigned int g_pGlowObjectManager = *(unsigned int*)(Client + GlowObject);
- if (entity->get_teamnum() != g_LocalPlayer->get_teamnum() && entity->get_teamnum() != 0)
- {
- const int m_iGlowIndex = *(int*)((unsigned int)entity + 0xA320);
- *(float*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x4) = 255.f / 255; // m_flRed
- *(float*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x8) = 0.f / 255; // m_flGreen
- *(float*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0xC) = 255.f / 255; // m_flBlue
- *(float*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x10) = 200.f / 255; // m_flAlpha
- *(bool*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x24) = true; // m_bRenderWhenOccluded
- *(bool*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x25) = false; // m_bRenderWhenUnoccluded
- *(bool*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x26) = false; // m_bFullBloomRender
- *(int*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x2C) = z; // m_nGlowStyle // 0 - 4
- // 0 - 3
- //Glow()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement