Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true)
- {
- DWORD pLocal = *reinterpret_cast<DWORD*>((DWORD)GetModuleHandleA("client_panorama.dll") + 0xCCA6A4);//0xCBD6B4
- if (!pLocal)
- continue;
- int pLocalHp = *reinterpret_cast<int*>(pLocal + 0x100);// 0x100
- if (!pLocalHp)
- continue;
- int pLocalTeam = *reinterpret_cast<int*>(pLocal + 0xF4);// 0xF4
- if (!pLocalTeam)
- continue;
- DWORD GlowArray = *reinterpret_cast<DWORD*>((DWORD)GetModuleHandleA("client_panorama.dll") + 0x521AF50);
- if (!GlowArray)
- continue;
- DWORD GlowCount = *reinterpret_cast<DWORD*>((DWORD)GetModuleHandleA("client_panorama.dll") + 0x521AF50 + 0x04);
- if (!GlowCount)
- continue;
- for (int i = 0; i < GlowCount-1; i++)
- {
- DWORD gEntity = *reinterpret_cast<DWORD*>(GlowArray + 0x38 * i);//4,1,7
- if (!(gEntity > CSmodule)) //2 6
- continue;
- int eHP = *reinterpret_cast<int*>(gEntity + 0x100);
- if (!eHP)
- continue;
- int eTeamNum = *reinterpret_cast<int*>(gEntity + 0xf4);
- if (!eTeamNum)
- continue;
- static GlowObjectDefinition_t Glow = *reinterpret_cast<GlowObjectDefinition_t*>(GlowArray + (0x38 * i) + 0x04);
- if (eTeamNum == 3)
- {
- Glow.r = 0.447058827f;
- Glow.g = 0.600023213f;
- Glow.b = 0.867125f;
- Glow.a = 0.9f;
- Glow.m_bRenderWhenOccluded = true;
- Glow.m_bRenderWhenUnoccluded = false;
- }
- if (eTeamNum == 2)
- {
- Glow.r = 0.877058827f;
- Glow.g = 0.340023213f;
- Glow.b = 0.337125f;
- Glow.a = 0.9f;
- Glow.m_bRenderWhenOccluded = true;
- Glow.m_bRenderWhenUnoccluded = false;
- }
- *reinterpret_cast<GlowObjectDefinition_t*>(GlowArray + (0x38 * i) + 0x04) = Glow;
- }
- Sleep(5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement