fr1kin

GMod CUserCmd Padding

Jun 23rd, 2012
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. int command_number; // 4 bytes
  2. int tick_count; // 4 bytes
  3. QAngle  viewangles; // 12 bytes
  4. float   forwardmove; // 4 bytes
  5. float   sidemove; // 4 bytes  
  6. float   upmove; // 4 bytes    
  7. int buttons; // 4 bytes
  8. byte    impulse; // 1 byte  
  9. int weaponselect; // 4 bytes
  10. int weaponsubtype; // 4 bytes
  11. int random_seed; // 4 bytes
  12. short   mousedx; // 2 bytes
  13. short   mousedy; // 2 bytes
  14. bool    hasbeenpredicted; // 1 byte
  15.  
  16. CUtlVector< CEntityGroundContact > entitygroundcontact; // 20 bytes
  17.  
  18. char pad84[12]; // 12 bytes
  19. char pad96[12]; // 12 bytes
  20. char pad108[16]; // 16 bytes
  21. char pad124[4]; // 4 bytes - I have no idea what this is
  22.  
  23. // include this at the end of GetChecksum
  24. CRC32_ProcessBuffer( &crc, &pad84, sizeof( pad84 ) );
  25. CRC32_ProcessBuffer( &crc, &pad96, sizeof( pad96 ) );
  26. CRC32_ProcessBuffer( &crc, &pad108, sizeof( pad108 ) );
Advertisement
Add Comment
Please, Sign In to add comment