Help Iteration AIObject

Posts 1–5 of 5 · Page 1 of 1
Help Iteration AIObject
Hi everyone, I just recently started to disassemble this engine and I don't know how people sort out AI entities, if you can help me with this thank you in Advance
Quote Originally Posted by Finz Rus View Post
Hi everyone, I just recently started to disassemble this engine and I don't know how people sort out AI entities, if you can help me with this thank you in Advance
Code:
g_pClientMgr = 0x1234214 //CFPH

class ObjectMgr : public WorldTreeHelper
{
public:
	ModelInstance*	 FindObjectClient(uint16 id) { return reinterpret_cast<ModelInstance*(__thiscall*)(void*, uint16)>(0x6AFCC0)(this, objId); }
	int		m_nElements() { return ILTCSBase::GetObjectElements(); }
};

class CClientMgr
{
public:
	// The object manager.  This holds the lists of all the objects (which aren't
	// necessarily always in the world tree).
	ObjectMgr*      m_ObjectMgr() { return (ObjectMgr*)((uintptr_t)this + 0x0000); }
};
Quote Originally Posted by jayjay153 View Post
Code:
g_pClientMgr = 0x1234214 //CFPH

class ObjectMgr : public WorldTreeHelper
{
public:
	ModelInstance*	 FindObjectClient(uint16 id) { return reinterpret_cast<ModelInstance*(__thiscall*)(void*, uint16)>(0x6AFCC0)(this, objId); }
	int		m_nElements() { return ILTCSBase::GetObjectElements(); }
};

class CClientMgr
{
public:
	// The object manager.  This holds the lists of all the objects (which aren't
	// necessarily always in the world tree).
	ObjectMgr*      m_ObjectMgr() { return (ObjectMgr*)((uintptr_t)this + 0x0000); }
};
You can ask for signatures for functions, and you won't get information about team or Health by ModelInstance

I have seen more correct getting of objects like this
ClientShell->AIManager->...->AIObject
Quote Originally Posted by Finz Rus View Post
You can ask for signatures for functions, and you won't get information about team or Health by ModelInstance

I have seen more correct getting of objects like this
ClientShell->AIManager->...->AIObject
seems like you don't know yet about the ModelInstance

keep explore about ModelInstance, you can get all the information you want

- - - Updated - - -

Code:
class CObjectUserData
{
public:
	int					SFX_ID();

	//here's now your Entities
	CAIClient*				GetAIClient();
	CThrowingWeaponFX*	GetCThrowingWeaponFX();
	CDroppedWeaponFX*		GetCWeaponDroppedFX();
	CDroppedWeaponFX_BR*	GetCWeaponDroppedFX_BR(); //Battleroyale Mode
	CharacFX*				GetCharacFX();
}; //credits vaisefud3

// All objects sitting in the BSP are LTObjects.
class LTObject : public WorldTreeObj
{
	// Helpers.
public:
	 // User data..   void			*m_pUserData;
	CObjectUserData*	GetObjectUserData() { return g_pLTClient->GetObjectUserData(this); }
};

class ModelInstance : public LTObject
{

};
Quote Originally Posted by jayjay153 View Post
seems like you don't know yet about the ModelInstance

keep explore about ModelInstance, you can get all the information you want

- - - Updated - - -

Code:
class CObjectUserData
{
public:
	int					SFX_ID();

	//here's now your Entities
	CAIClient*				GetAIClient();
	CThrowingWeaponFX*	GetCThrowingWeaponFX();
	CDroppedWeaponFX*		GetCWeaponDroppedFX();
	CDroppedWeaponFX_BR*	GetCWeaponDroppedFX_BR(); //Battleroyale Mode
	CharacFX*				GetCharacFX();
}; //credits vaisefud3

// All objects sitting in the BSP are LTObjects.
class LTObject : public WorldTreeObj
{
	// Helpers.
public:
	 // User data..   void			*m_pUserData;
	CObjectUserData*	GetObjectUserData() { return g_pLTClient->GetObjectUserData(this); }
};

class ModelInstance : public LTObject
{

};
you would not be able to give signatures on functions because my version of the game is not yours

and can I ask your contact for communication outside the forum(in a message from you)
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us