Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (HEADER FILE)
- #define GLOW_MANAGER_SIGNATURE ( XorString ( "client_panorama.dll" ), XorString ( "75 4B 0F 57 C0" ) ) + 18 /* Extra Offset (Offsets) */
- #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
- bool bOnlyOnKeyPress;
- INT iKey;
- bool bGlow;
- INT iGlowAlphaIntensity;
- FLOAT fGlowBloomAmount;
- bool bGlowWhenAlive;
- bool bGlowWhenDead;
- FLOAT fGlowAlive [ XS_RANDOM_SIZE_4_4 ];
- FLOAT fGlowDead [ XS_RANDOM_SIZE_4_4 ];
- #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
- DWORD m_dwGlow;
- #endif
- #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
- extern Variables Vars;
- class CGlowObjMan
- {
- public:
- class GlowObjDef_T
- {
- public:
- FORCEINLINE CONST VOID CONST Set ( Vector Color )
- {
- m_vecGlowCol = Color, m_flGlowAlpha = ( ( ( FLOAT ) ( Vars.Visuals.iGlowAlphaIntensity ) ) / 255.f ), \
- m_bRenderWhenOccl = true, m_bRenderWhenUnoccl = false, m_flBloomAmt = Vars.Visuals.fGlowBloomAmount;
- };
- Entity_T * m_pEntity;
- Vector m_vecGlowCol;
- FLOAT m_flGlowAlpha, A, B, m_flBloomAmt, C;
- bool m_bRenderWhenOccl, m_bRenderWhenUnoccl, D, E;
- INT F, G, H, m_nNextFreeSlot;
- };
- GlowObjDef_T * m_pGlowObjDefs;
- INT A, B, m_nSize;
- };
- #endif
- --------------------------------
- [visuals] (.cpp file)
- #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
- CONST VOID CONST Glow ( VOID )
- {
- static INT iIter = NULL, iTeam = NULL;
- static CGlowObjMan::GlowObjDef_T * pGlowEntity = NULL;
- static CGlowObjMan * pGlowObjMan = NULL;
- static Entity_T * pEntity = NULL;
- if ( !pGlowObjMan )
- pGlowObjMan = ( CGlowObjMan * ) g_Offsets.m_dwGlow;
- for ( iIter = NULL; iIter < pGlowObjMan->m_nSize; iIter++ )
- {
- if ( !( pGlowEntity = &pGlowObjMan->m_pGlowObjDefs [ iIter ] ) || \
- pGlowEntity->m_nNextFreeSlot != -2 || \
- pGlowEntity->m_pEntity == NULL || \
- pGlowEntity->m_pEntity->m_iId < NULL || \
- pGlowEntity->m_pEntity->m_iId > I::Globals->m_iMaxClients || \
- !( pEntity = I::Ents->GetClEntity ( pGlowEntity->m_pEntity->m_iId ) ) || \
- pEntity->m_iId < NULL || \
- pEntity->m_iId > I::Globals->m_iMaxClients || \
- pEntity->IsGhost ( ) || \
- pEntity->GetHealth ( ) < 1 || \
- ( iTeam = pEntity->GetTeam ( ) ) < 2 || \
- iTeam > 3 || \
- iTeam == G::iTeam )
- continue;
- if ( G::bAlive )
- {
- if ( Vars.Visuals.bGlowWhenAlive )
- pGlowEntity->Set ( Vars.Visuals.fGlowAlive );
- }
- else
- {
- if ( Vars.Visuals.bGlowWhenDead )
- pGlowEntity->Set ( Vars.Visuals.fGlowDead );
- };
- };
- };
- -----------------------------------------------
- (hook create move) [cpp file]
- #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
- if ( Vars.Visuals.bGlow )
- {
- if ( G::bAlive )
- {
- if ( !Vars.Visuals.bOnlyOnKeyPress || \
- G::Keys [ Vars.Visuals.iKey ] )
- Glow ( );
- }
- else
- Glow ( );
- };
- #endif
- (hook end scene) [cpp file]
- #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
- if ( Vars.Visuals.bGlow )
- {
- if ( G::bAlive )
- {
- if ( !Vars.Visuals.bOnlyOnKeyPress || \
- G::Keys [ Vars.Visuals.iKey ] )
- Glow ( );
- }
- else if ( G::iTeam > NULL )
- Glow ( );
- };
- #endif
- (offsets helper) [cpp file]
- #if defined ( ENABLE_GLOW_ESP_WH ) && ENABLE_GLOW_ESP_WH != 0
- g_Offsets.m_dwGlow = *( PDWORD ) ( DWORD ( g_Hattrick.FindPattern GLOW_MANAGER_SIGNATURE ) );
- #endif
- g_Offsets.m_dwRank = g_Hattrick.FindPattern RANKS_REVEALER_SIGNATURE;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement