keybode

old css getbonepos

Jan 23rd, 2014
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. Vector CSPlayer::GetBonePosition( int iBone )
  2. {
  3.     DWORD_PTR dwBoneMatrix = *( DWORD_PTR* )( this + 0x670 );
  4.     matrix3x4_t Matrix[ 128 ];
  5.  
  6.     memcpy( &Matrix, ( void* )dwBoneMatrix, sizeof( Matrix ) );
  7.  
  8.     return Vector( Matrix[ iBone ][ 0 ][ 3 ], Matrix[ iBone ][ 1 ][ 3 ], Matrix[ iBone ][ 2 ][ 3 ] );
  9. }
Advertisement
Add Comment
Please, Sign In to add comment