keybode

dota 2 GetUserCmd

Mar 16th, 2014
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. int __fastcall hkGetUserCmd(void *thisptr, int edx, int nSlot, signed int sequence_number)
  2. {
  3.     int v3; // edi@1
  4.     int result; // eax@3
  5.  
  6.     v3 = (int)((char *)thisptr + 44);
  7.     if ( nSlot != -1 )
  8.         v3 += 0x1D0 * nSlot;
  9.     result = *(DWORD *)(v3 + 0x1BC) + 0xA8 * sequence_number % 150;
  10.     if ( *(DWORD *)(result + 4) != sequence_number )
  11.         result = 0;
  12.  
  13.     return result;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment