jeudi 27 mars 2014

[Information] reversed GetUserCmd after update topic




a friend asked me to look what have changed, so here it is:


Code C++

CUserCmd* CInput::GetUserCmd ( int nSlot, int sequence_number )
{
    CUserCmd* pReturn = 0;
    void* unknown = (void*)( this + 0x38 );
       
    if ( nSlot != -1 )
        unknown += 0xD4 * nSlot;
       
    pReturn = (CUserCmd*)( *(DWORD_PTR*)( unknown + 0xAC ) + 100 * sequence_number % 150 );
   
    if ( pReturn->command_number != sequence_number )
        pReturn = 0;
       
    return pReturn;
}






Aucun commentaire:

Enregistrer un commentaire