Advertisement
SinclairZone

Untitled

Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1.  
  2.  
  3. 1
  4. 2
  5. 3
  6. 4
  7. 5
  8. 6
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11
  14. 12
  15. 13
  16. 14
  17. 15
  18. 16
  19. 17
  20. 18
  21. 19
  22. 20
  23. 21
  24. 22
  25. 23
  26. 24
  27. 25
  28. 26
  29. 27
  30. 28
  31.  
  32. for (int i = 0; i < 64; i++)
  33. {
  34. c_entity * entity = (c_entity*)entitylist->get_client_entity(i);
  35. if (entity == nullptr || entity->get_health() < 1 || entity->is_dormant())
  36. continue;
  37. if (glow)
  38. {
  39.  
  40. 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;
  41. static unsigned int Client = (unsigned int)GetModuleHandleA("client_panorama.dll");
  42. unsigned int g_pGlowObjectManager = *(unsigned int*)(Client + GlowObject);
  43.  
  44. if (entity->get_teamnum() != g_LocalPlayer->get_teamnum() && entity->get_teamnum() != 0)
  45. {
  46. const int m_iGlowIndex = *(int*)((unsigned int)entity + 0xA320);
  47.  
  48. *(float*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x4) = 255.f / 255; // m_flRed
  49. *(float*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x8) = 0.f / 255; // m_flGreen
  50. *(float*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0xC) = 255.f / 255; // m_flBlue
  51. *(float*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x10) = 200.f / 255; // m_flAlpha
  52. *(bool*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x24) = true; // m_bRenderWhenOccluded
  53. *(bool*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x25) = false; // m_bRenderWhenUnoccluded
  54. *(bool*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x26) = false; // m_bFullBloomRender
  55. *(int*)(g_pGlowObjectManager + (m_iGlowIndex * 0x38) + 0x2C) = z; // m_nGlowStyle // 0 - 4
  56. // 0 - 3
  57. //Glow()
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement