how to use object?
in the player class of CA it has a object pointer in it for the position. how do i use it to get the position?


class c_object
{
public:
char unknown0[4];
D3DXVECTOR3 MaxRootPosition; //0x0004
D3DXVECTOR3 MinRootPosition; //0x0010
char unknown28[120];
//DWORD ObjectColorRGBA;
BYTE ObjectColorR; //0x0094
BYTE ObjectColorG; //0x0095
BYTE ObjectColorB; //0x0096
BYTE ObjectColorA; //0x0097
char unknown152[4];
float ObjectScaleX; //0x009C
float ObjectScaleY; //0x00A0
float ObjectScaleZ; //0x00A4
char unknown168[16];
float xPlayerUnit; //0x00B8
float yPlayerUnit; //0x00BC
float zPlayerUnit; //0x00C0
float PlayerUnitWidth; //0x00C4
D3DXVECTOR3 RootPosition; //0x00C8
char unknown212[4];
float Pitch; //0x00D8
float Yaw; //0x00DC
float Roll; //0x00E0
};
D3DXVECTOR3 MyGetObjectMaxPos( int* obj )
{
return *(D3DXVECTOR3*)( obj + 0x4 );
}
D3DXVECTOR3 MyGetObjectMinPos( int* obj )
{
return *(D3DXVECTOR3*)( obj + 0x10 );
}
D3DXVECTOR3 MyGetObjectRootPos( int* obj )
{
return *(D3DXVECTOR3*)( obj + 0xC8 );
}
DWORD MyGetObjectColorRGBA( int* obj )
{
return *(DWORD*)( obj + 0x94 );
}
void MySetObjectColorRGBA( int* obj, DWORD dwColorRGBA )
{
*(DWORD*)( obj + 0x94 ) = dwColorRGBA;
}