Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. while (true)
  2. {
  3. DWORD pLocal = *reinterpret_cast<DWORD*>((DWORD)GetModuleHandleA("client_panorama.dll") + 0xCCA6A4);//0xCBD6B4
  4. if (!pLocal)
  5. continue;
  6.  
  7. int pLocalHp = *reinterpret_cast<int*>(pLocal + 0x100);// 0x100
  8. if (!pLocalHp)
  9. continue;
  10.  
  11. int pLocalTeam = *reinterpret_cast<int*>(pLocal + 0xF4);// 0xF4
  12. if (!pLocalTeam)
  13. continue;
  14.  
  15. DWORD GlowArray = *reinterpret_cast<DWORD*>((DWORD)GetModuleHandleA("client_panorama.dll") + 0x521AF50);
  16. if (!GlowArray)
  17. continue;
  18. DWORD GlowCount = *reinterpret_cast<DWORD*>((DWORD)GetModuleHandleA("client_panorama.dll") + 0x521AF50 + 0x04);
  19. if (!GlowCount)
  20. continue;
  21.  
  22. for (int i = 0; i < GlowCount-1; i++)
  23. {
  24. DWORD gEntity = *reinterpret_cast<DWORD*>(GlowArray + 0x38 * i);//4,1,7
  25. if (!(gEntity > CSmodule)) //2 6
  26. continue;
  27. int eHP = *reinterpret_cast<int*>(gEntity + 0x100);
  28. if (!eHP)
  29. continue;
  30. int eTeamNum = *reinterpret_cast<int*>(gEntity + 0xf4);
  31. if (!eTeamNum)
  32. continue;
  33.  
  34. static GlowObjectDefinition_t Glow = *reinterpret_cast<GlowObjectDefinition_t*>(GlowArray + (0x38 * i) + 0x04);
  35. if (eTeamNum == 3)
  36. {
  37. Glow.r = 0.447058827f;
  38. Glow.g = 0.600023213f;
  39. Glow.b = 0.867125f;
  40. Glow.a = 0.9f;
  41. Glow.m_bRenderWhenOccluded = true;
  42. Glow.m_bRenderWhenUnoccluded = false;
  43. }
  44. if (eTeamNum == 2)
  45. {
  46. Glow.r = 0.877058827f;
  47. Glow.g = 0.340023213f;
  48. Glow.b = 0.337125f;
  49. Glow.a = 0.9f;
  50. Glow.m_bRenderWhenOccluded = true;
  51. Glow.m_bRenderWhenUnoccluded = false;
  52. }
  53. *reinterpret_cast<GlowObjectDefinition_t*>(GlowArray + (0x38 * i) + 0x04) = Glow;
  54. }
  55. Sleep(5);
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement