Originally Posted by
Finz Rus
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); }
};