Guest User

Untitled

a guest
Jun 10th, 2019
231
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (HEADER FILE)
  2.  
  3. #define GLOW_MANAGER_SIGNATURE ( XorString ( "client_panorama.dll" ), XorString ( "75 4B 0F 57 C0" ) ) + 18 /* Extra Offset (Offsets) */
  4.  
  5. #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
  6.  
  7. bool bOnlyOnKeyPress;
  8. INT iKey;
  9. bool bGlow;
  10. INT iGlowAlphaIntensity;
  11. FLOAT fGlowBloomAmount;
  12. bool bGlowWhenAlive;
  13. bool bGlowWhenDead;
  14. FLOAT fGlowAlive [ XS_RANDOM_SIZE_4_4 ];
  15. FLOAT fGlowDead [ XS_RANDOM_SIZE_4_4 ];
  16.  
  17.  
  18. #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
  19.  
  20. DWORD m_dwGlow;
  21.  
  22. #endif
  23.  
  24. #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
  25.  
  26. extern Variables Vars;
  27.  
  28. class CGlowObjMan
  29. {
  30. public:
  31.  
  32. class GlowObjDef_T
  33. {
  34. public:
  35.  
  36. FORCEINLINE CONST VOID CONST Set ( Vector Color )
  37. {
  38. m_vecGlowCol = Color, m_flGlowAlpha = ( ( ( FLOAT ) ( Vars.Visuals.iGlowAlphaIntensity ) ) / 255.f ), \
  39. m_bRenderWhenOccl = true, m_bRenderWhenUnoccl = false, m_flBloomAmt = Vars.Visuals.fGlowBloomAmount;
  40. };
  41.  
  42. Entity_T * m_pEntity;
  43. Vector m_vecGlowCol;
  44. FLOAT m_flGlowAlpha, A, B, m_flBloomAmt, C;
  45. bool m_bRenderWhenOccl, m_bRenderWhenUnoccl, D, E;
  46. INT F, G, H, m_nNextFreeSlot;
  47. };
  48.  
  49. GlowObjDef_T * m_pGlowObjDefs;
  50. INT A, B, m_nSize;
  51. };
  52.  
  53. #endif
  54.  
  55. --------------------------------
  56.  
  57. [visuals] (.cpp file)
  58.  
  59. #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
  60.  
  61. CONST VOID CONST Glow ( VOID )
  62. {
  63. static INT iIter = NULL, iTeam = NULL;
  64. static CGlowObjMan::GlowObjDef_T * pGlowEntity = NULL;
  65. static CGlowObjMan * pGlowObjMan = NULL;
  66. static Entity_T * pEntity = NULL;
  67.  
  68. if ( !pGlowObjMan )
  69. pGlowObjMan = ( CGlowObjMan * ) g_Offsets.m_dwGlow;
  70.  
  71. for ( iIter = NULL; iIter < pGlowObjMan->m_nSize; iIter++ )
  72. {
  73. if ( !( pGlowEntity = &pGlowObjMan->m_pGlowObjDefs [ iIter ] ) || \
  74. pGlowEntity->m_nNextFreeSlot != -2 || \
  75. pGlowEntity->m_pEntity == NULL || \
  76. pGlowEntity->m_pEntity->m_iId < NULL || \
  77. pGlowEntity->m_pEntity->m_iId > I::Globals->m_iMaxClients || \
  78. !( pEntity = I::Ents->GetClEntity ( pGlowEntity->m_pEntity->m_iId ) ) || \
  79. pEntity->m_iId < NULL || \
  80. pEntity->m_iId > I::Globals->m_iMaxClients || \
  81. pEntity->IsGhost ( ) || \
  82. pEntity->GetHealth ( ) < 1 || \
  83. ( iTeam = pEntity->GetTeam ( ) ) < 2 || \
  84. iTeam > 3 || \
  85. iTeam == G::iTeam )
  86. continue;
  87.  
  88. if ( G::bAlive )
  89. {
  90. if ( Vars.Visuals.bGlowWhenAlive )
  91. pGlowEntity->Set ( Vars.Visuals.fGlowAlive );
  92. }
  93.  
  94. else
  95. {
  96. if ( Vars.Visuals.bGlowWhenDead )
  97. pGlowEntity->Set ( Vars.Visuals.fGlowDead );
  98. };
  99. };
  100. };
  101.  
  102. -----------------------------------------------
  103. (hook create move) [cpp file]
  104.  
  105. #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
  106.  
  107. if ( Vars.Visuals.bGlow )
  108. {
  109. if ( G::bAlive )
  110. {
  111. if ( !Vars.Visuals.bOnlyOnKeyPress || \
  112. G::Keys [ Vars.Visuals.iKey ] )
  113. Glow ( );
  114. }
  115.  
  116. else
  117. Glow ( );
  118. };
  119.  
  120. #endif
  121.  
  122. (hook end scene) [cpp file]
  123.  
  124. #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
  125.  
  126. if ( Vars.Visuals.bGlow )
  127. {
  128. if ( G::bAlive )
  129. {
  130. if ( !Vars.Visuals.bOnlyOnKeyPress || \
  131. G::Keys [ Vars.Visuals.iKey ] )
  132. Glow ( );
  133. }
  134.  
  135. else if ( G::iTeam > NULL )
  136. Glow ( );
  137. };
  138.  
  139. #endif
  140.  
  141. (offsets helper) [cpp file]
  142.  
  143. #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
  144.  
  145. g_Offsets.m_dwGlow = *( PDWORD ) ( DWORD ( g_Hattrick.FindPattern GLOW_MANAGER_SIGNATURE ) );
  146.  
  147. #endif
  148.  
  149. g_Offsets.m_dwRank = g_Hattrick.FindPattern RANKS_REVEALER_SIGNATURE;
  150. };
RAW Paste Data