Skip to content

Instantly share code, notes, and snippets.

@aschleck
Last active March 19, 2019 01:44
Show Gist options
  • Save aschleck/82ab327926e4a3e0c7a3 to your computer and use it in GitHub Desktop.
Save aschleck/82ab327926e4a3e0c7a3 to your computer and use it in GitHub Desktop.
Dota 2 struct: CUserCmd
struct CUserCmd:
0x00: vtable void *
0x04: command_number int
0x08: tick_count int
0x0c: viewangles QAngle
0x18: forwardmove float
0x1c: sidemove float
0x20: upmove float
0x24: buttons int
0x28: impulse byte
0x2c: cursor_unit_entindex int
0x30: query_entindex int
0x34: random_seed int
0x38: mousedx short
0x3a: mousedy short
0x3c: ?? unused word?
0x3e: ?? padding?
0x40: pointer to CUnitOrder?? CUnitOrder *
0x44: orderId int
0x48: selected_units CUtlVectorBase<CEntityIndex>/void *
0x58: primarySelected CEntityIndex
0x5c: orderType int
0x60: entityIndex1 CEntityIndex
0x64: baseNpcHandle EntityHandle
0x68: preparedOrderPoint Vector/float
0x74: queueOrder byte
0x78: camera_x short
0x7a: camera_y short
0x7c: click_behavior byte
0x7d: spectator_stats_whocares byte
0x7e: shopmode_whocares byte
0x7f: hud_stats_dropdown_category_index byte
0x80: hud_stats_dropdown_sort_method byte
0x84: head_angles QAngle/float
0x90: head_offset Vector/float
0x9c: crosshair_trace Vector/float
0xa8: checksum int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment