Нефор
-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
C++:
void __fastcall Hooks::hkStandardBlendingRules( C_BasePlayer* m_pThis, void*, CStudioHdr *m_pHdr, BoneVector m_aPos[], BoneQuaternionAligned m_aQuaternion[], float m_flCurrentTime, int m_iBoneMask )
{
if ( m_pThis->GetClientClass( )->m_nClassId == ClassId_CCSRagdoll || m_pThis->GetClientClass( )->m_nClassId != ClassId_CCSPlayer || m_pThis != g_pLocalPlayer || *( bool* )( ( DWORD )m_pThis + 0x9F4 ) )
return oStandardBlendingRules( m_pThis, m_pHdr, m_aPos, m_aQuaternion, m_flCurrentTime, m_iBoneMask );
CAnimationLayer m_aBackupLayers[ 13 ];
memcpy(m_aBackupLayers, m_pThis->GetAnimOverlays( ), 0x2D8);
int m_fEffectsBackup = m_pThis->m_fEffects( );
m_pThis->m_fEffects( ) &= 0xF7u;
oStandardBlendingRules( m_pThis, m_pHdr, m_aPos, m_aQuaternion, m_flCurrentTime, m_iBoneMask );
m_pThis->m_fEffects( ) = m_fEffectsBackup;
memcpy(m_pThis->GetAnimOverlays( ), m_aBackupLayers, 0x2D8);
}
C++:
void __fastcall Hooks::hkStandardBlendingRules( C_BasePlayer* m_pThis, void*, CStudioHdr *m_pHdr, BoneVector m_aPos[], BoneQuaternionAligned m_aQuaternion[], float m_flCurrentTime, int m_iBoneMask )
{
if ( m_pThis->GetClientClass( )->m_nClassId == ClassId_CCSRagdoll || m_pThis->GetClientClass( )->m_nClassId != ClassId_CCSPlayer || m_pThis != g_pLocalPlayer || *( bool* )( ( DWORD )m_pThis + 0x9F4 ) )
return oStandardBlendingRules( m_pThis, m_pHdr, m_aPos, m_aQuaternion, m_flCurrentTime, m_iBoneMask );
CAnimationLayer m_aBackupLayers[ 13 ];
memcpy(m_aBackupLayers, m_pThis->GetAnimOverlays( ), 0x2D8);
int m_fEffectsBackup = m_pThis->m_fEffects( );
m_pThis->m_fEffects( ) &= 0xF7u;
oStandardBlendingRules( m_pThis, m_pHdr, m_aPos, m_aQuaternion, m_flCurrentTime, m_iBoneMask );
m_pThis->m_fEffects( ) = m_fEffectsBackup;
memcpy(m_pThis->GetAnimOverlays( ), m_aBackupLayers, 0x2D8);
}