how to use object?

Posts 1–15 of 17 · Page 1 of 2
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?
learn C++?

think about it.
Code:
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;
	}
Credits: -GHOSTER-
Quote Originally Posted by kibbles18 View Post
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?
Post the class i will seeee
Quote Originally Posted by kibbles18 View Post
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?
DIRECT3DVECTOR9 <-- Don't have it memorized :s
^^^^^^^^^^^^
jjajjajaja
Quote Originally Posted by Crash Override View Post
DIRECT3DVECTOR9 <-- Don't have it memorized :s
^^^^^^^^^^^^
jjajjajaja
D3DXVECTOR3. YUNO.
Quote Originally Posted by NOOB View Post


D3DXVECTOR3. YUNO.
affffffffffffffff

X = 3D
Close this.
If u ddint understand till now:

return the object as vector(d3dxvector3) and u have position...
use LTVector.
Quote Originally Posted by mmbob View Post
use LTVector.
Hey can u help me updating an addy?
so basically i cast it as any struct containing members float x,y,z

dont flame me because i didnt know. just because i didnt know what one member of a class was used for i dont know c++ at all?
Lol look at gellins base and u should know and dont need to ask here
@NOOB can i use that class to set my player's camera (yaw, pitch, roll)?
Quote Originally Posted by kibbles18 View Post
@NOOB can i use that class to set my player's camera (yaw, pitch, roll)?
no .
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Talk with us