mardi 28 janvier 2014

[Coding] BF4 Components Iteration topic




You can get all the component pointers of a class if it inherits ClientControllableEntity. For example the here are some of the pointers available for ClientSoldierEntity:




PHP Code:







class Temp
{
public:
    
virtual DWORD_PTR GetType( ); 
};

class 
Components
{
public:
    
__int64 unk1; //0x0000 
    
__int64 unk2; //0x0008 
    
char _0x0010[16];
    
Temp** m_ppComponents; //0x0020 
    
char _0x0028[76];
    
float m_timeElapsed; //0x0074 

    
void Dump( )
    {
        for( 
int i = 0; i < 50; i++ )
        {
            if ( 
m_ppComponents[i] )
            {
                
printf( "Object %I64X",    m_ppComponents[i] ); // Pointer
                
printf( " Type: %I64X",    m_ppComponents[i]->GetType( ) );
                
printf( " (%s)\n", **( char*** )m_ppComponents[i]->GetType( ) );
            }
        }
    }
}; 









Components class can be accessed through ClientControllableEntity

In x64:


PHP Code:







Components* m_pComponents; //0x0028 














Aucun commentaire:

Enregistrer un commentaire