Latest Reversed CLTClient Functions

Posts 1–6 of 6 · Page 1 of 1
Latest Reversed CLTClient Functions
Hi guys,

This is the Latest CLTClient Functions,

Code:
// Created with ReClass.NET by KN4CK3R

class CLTClient
{
public:
	virtual void Function0(); //0x0000 Access to CLTCSBase
	char pad_0004[156]; //0x0004
	bool(*IntersectSegments)(IntersectQuery *pQuery, IntersectInfo *pInfo); //0x00A0
	char pad_00A4[60]; //0x00A4
	LTRESULT(*FlipScreen)(uint32 flags); //0x00E0
	LTRESULT(*Start3D)(); //0x00E4
	char pad_00E8[24]; //0x00E8
	LTRESULT(*StartOptimized2D)(); //0x0100
	LTRESULT(*EndOptimized2D)(); //0x0104
	char pad_0108[8]; //0x0108
	LTRESULT(*End3D)(uint32 flags); //0x0110 End3D

	signed int GetObjectPos(LTObject* hObj, D3DXVECTOR3 *pPos) //0x00A0
	{
		typedef signed int(__thiscall* GetObjectPosFn)(void*, LTObject* hObj, D3DXVECTOR3 *pPos);
		return GetVFunc<GetObjectPosFn>(this, 39)(this, hObj, pPos);
	};
	signed int SetObjectPos(LTObject* hObj, const D3DXVECTOR3* pPos, bool bForce = true) //0x00F8
	{
		typedef signed int(__thiscall* SetObjectPosFn)(void*, LTObject* hObj, const D3DXVECTOR3* pPos, bool bForce);
		return GetVFunc<SetObjectPosFn>(this, 62)(this, hObj, pPos, bForce);
	};
	signed int GetObjectRotation(LTObject* hObj, LTRotation *pRotation) //0x0128
	{
		typedef signed int(__thiscall* GetObjectRotationFn)(void*, LTObject* hObj, LTRotation *pRotation);
		return GetVFunc<GetObjectRotationFn>(this, 74)(this, hObj, pRotation);
	};
	void SetObjectOutLine(LTObject* hObj, bool Status, BYTE r, BYTE g, BYTE b) //0x0138
	{
		typedef void(__thiscall* SetObjectOutLineFn)(void*, LTObject* hObj, bool Status, BYTE r, BYTE g, BYTE b);
		return GetVFunc<SetObjectOutLineFn>(this, 78)(this, hObj, 1, r, g, b);
	};
	LTRESULT SendToServer(ILTMessage_Read* pMsg, uint32 flags) //0x01FC 
	{
		typedef LTRESULT(__thiscall* SendToServerFn)(void*, ILTMessage_Read* pMsg, uint32 flags);
		return GetVFunc<SendToServerFn>(this, 127)(this, pMsg, flags);
	}
	signed int GetObjectBoxMin(LTObject* hObj, D3DXVECTOR3 *Min) //0x0250
	{
		typedef signed int(__thiscall* GetObjectBoxMinFn)(void*, LTObject* hObj, D3DXVECTOR3 *Min);
		return GetVFunc<GetObjectBoxMinFn>(this, 148)(this, hObj, Min);
	}
	signed int GetObjectBoxMax(LTObject* hObj, D3DXVECTOR3 *Max) //0x0254
	{
		typedef signed int(__thiscall* GetObjectBoxMaxFn)(void*, LTObject* hObj, D3DXVECTOR3 *Max);
		return GetVFunc<GetObjectBoxMaxFn>(this, 149)(this, hObj, Max);
	}
	bool IntersectSegment(IntersectQuery &iQuery, IntersectInfo *Info)
	{
		typedef bool(__thiscall* IntersectSegmentFn)(void*, IntersectQuery &iQuery, IntersectInfo *Info);
		return GetVFunc<IntersectSegmentFn>(this, 39)(this, iQuery, Info);
	}
	void GetObjectScale(LTObject *hObj, D3DXVECTOR3 *pScale) //0x026C
	{
		typedef void(__thiscall* GetObjectScaleFn)(void*, LTObject *hObj, D3DXVECTOR3 *pScale);
		return GetVFunc<GetObjectScaleFn>(this, 155)(this, hObj, pScale);
	}
	void SetObjectScale(LTObject *hObj, const D3DXVECTOR3 *pScale) //0x0270
	{
		typedef void(__thiscall* SetObjectScaleFn)(void*, LTObject *hObj, const D3DXVECTOR3 *pScale);
		return GetVFunc<SetObjectScaleFn>(this, 156)(this, hObj, pScale);
	}
}; //Size: 0x1144

#define m_ILTCSBase 0x12ADEC0

class ILTCSBase : public CLTClient
{
public:
	CLTClient* pCLTClient; //0x0000
public:
	static ILTCSBase* Instance()
	{
		return (ILTCSBase*)m_ILTCSBase;
	}
};
This for Crossfire NA/West
Have a nice day.
Keep Going
Quote Originally Posted by TheGe2k View Post
Hi guys,

This is the Latest CLTClient Functions,

Code:
// Created with ReClass.NET by KN4CK3R

class pLTClient
{
public:
	char pad_0000[160]; //0x0000
	signed int GetObjectPos(LTObject* hObj, D3DXVECTOR3 *pPos) //0x00A0
	{
		typedef signed int(__thiscall* GetObjectPosFn)(void*, LTObject* hObj, D3DXVECTOR3 *pPos);
		return GetVFunc<GetObjectPosFn>(this, 39)(this, hObj, pPos);
	}; 
	char pad_00A4[84]; //0x00A4
	signed int SetObjectPos(LTObject* hObj, const D3DXVECTOR3* pPos, bool bForce = true) //0x00F8
	{
		typedef signed int(__thiscall* SetObjectPosFn)(void*, LTObject* hObj, const D3DXVECTOR3* pPos, bool bForce);
		return GetVFunc<SetObjectPosFn>(this, 62)(this, hObj, pPos, bForce);
	};
	char pad_00FC[44]; //0x00FC
	signed int GetObjectRotation(LTObject* hObj, LTRotation *pRotation) //0x0128
	{
		typedef signed int(__thiscall* GetObjectRotationFn)(void*, LTObject* hObj, LTRotation *pRotation);
		return GetVFunc<GetObjectRotationFn>(this, 74)(this, hObj, pRotation);
	};
	char pad_012C[12]; //0x012C
	void SetObjectOutLine(LTObject* hObj, bool Status, BYTE r, BYTE g, BYTE b) //0x0138
	{
		typedef void(__thiscall* SetObjectOutLineFn)(void*, LTObject* hObj, bool Status, BYTE r, BYTE g, BYTE b);
		return GetVFunc<SetObjectOutLineFn>(this, 78)(this, hObj, 1, r, g, b);
	}; 
	char pad_013C[192]; //0x013C
	LTRESULT SendToServer(ILTMessage_Read* pMsg, uint32 flags) //0x01FC 
	{
		typedef LTRESULT(__thiscall* SendToServerFn)(void*, ILTMessage_Read* pMsg, uint32 flags);
		return GetVFunc<SendToServerFn>(this, 127)(this, pMsg, flags);
	}
	char pad_0200[80]; //0x0200
	signed int GetObjectBoxMin(LTObject* hObj, D3DXVECTOR3 *Min) //0x0250
	{
		typedef signed int(__thiscall* GetObjectBoxMinFn)(void*, LTObject* hObj, D3DXVECTOR3 *Min);
		return GetVFunc<GetObjectBoxMinFn>(this, 148)(this, hObj, Min);
	} 
	signed int GetObjectBoxMax(LTObject* hObj, D3DXVECTOR3 *Max) //0x0254
	{
		typedef signed int(__thiscall* GetObjectBoxMaxFn)(void*, LTObject* hObj, D3DXVECTOR3 *Max);
		return GetVFunc<GetObjectBoxMaxFn>(this, 149)(this, hObj, Max);
	} 
	char pad_0258[3820]; //0x0258
}; //Size: 0x1144

class pLTCSBase
{
public:
	class pLTCSBase* ILTCSBase; //0x0000
	char pad_0004[156]; //0x0004
	bool(*IntersectSegments)(IntersectQuery *pQuery, IntersectInfo *pInfo); //0x00A0
	char pad_00A4[60]; //0x00A4
	LTRESULT(*FlipScreen)(uint32 flags); //0x00E0
	LTRESULT(*Start3D)(); //0x00E4
	char pad_00E8[24]; //0x00E8
	LTRESULT(*StartOptimized2D)(); //0x0100 StartOptimized2D
	LTRESULT(*EndOptimized2D)(); //0x0104 EndOptimized2D
	char pad_0108[8]; //0x0108
	LTRESULT(*End3D)(uint32 flags); //0x0110 End3D

	bool IntersectSegment(IntersectQuery &iQuery, IntersectInfo *Info)
	{
		typedef bool(__thiscall* IntersectSegmentFn)(void*, IntersectQuery &iQuery, IntersectInfo *Info);
		return GetVFunc<IntersectSegmentFn>(this, 39)(this, iQuery, Info);
	}

	void GetObjectScale(LTObject *hObj, D3DXVECTOR3 *pScale)
	{
		typedef void(__thiscall* GetObjectScaleFn)(void*, LTObject *hObj, D3DXVECTOR3 *pScale);
		return GetVFunc<GetObjectScaleFn>(this, 155)(this, hObj, pScale);
	}

	void SetObjectScale(LTObject *hObj, const D3DXVECTOR3 *pScale)
	{
		typedef void(__thiscall* SetObjectScaleFn)(void*, LTObject *hObj, const D3DXVECTOR3 *pScale);
		return GetVFunc<SetObjectScaleFn>(this, 156)(this, hObj, pScale);
	}

}; //Size: 0x0844

class ILTCSBase : public pLTClient
{
public:
	pLTClient* GetICLTClient; //0x0000
public:
	static ILTCSBase* Instance()
	{
		return (ILTCSBase*)CrossFire_Engine_Address;
	}
};
Have a nice day.
Finally an actually useful post in this section, nice job!
Just a tip: if you are using GetVFunc, you don't need to use spacers
Quote Originally Posted by vaisefud3 View Post
Finally an actually useful post in this section, nice job!
Just a tip: if you are using GetVFunc, you don't need to use spacers
Thanks for your Encouraged Comment
It's first trying to Reverse Functions, I will Remove spacers now...
Quote Originally Posted by TheGe2k View Post
Thanks for your Encouraged Comment
It's first trying to Reverse Functions, I will Remove spacers now...
How can I get m_ILTCSBase?
How is this obtained? Can I share it?
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?