Results 1 to 5 of 5
  1. #1
    Finz Rus's Avatar
    Join Date
    Aug 2020
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    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

  2. #2
    jayjay153's Avatar
    Join Date
    Jan 2018
    Gender
    female
    Posts
    294
    Reputation
    10
    Thanks
    113
    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); }
    };

  3. #3
    Finz Rus's Avatar
    Join Date
    Aug 2020
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    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
    Last edited by Finz Rus; 09-22-2020 at 09:19 AM.

  4. #4
    jayjay153's Avatar
    Join Date
    Jan 2018
    Gender
    female
    Posts
    294
    Reputation
    10
    Thanks
    113
    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
    {
    
    };
    Last edited by jayjay153; 09-22-2020 at 09:05 PM.

  5. #5
    Finz Rus's Avatar
    Join Date
    Aug 2020
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    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)

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 05:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 03:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 06:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 07:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 01:41 PM