View Single Post
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 12-18-2010 , 17:42   Re: TF2Items - Items with custom attributes.
#616

What is this for? The tf2items gamedata doesn't have an inventory offset to update...

Quote:
Originally Posted by Tauphi View Post
Here the working InventoryOffset solution for windows:

Updated CPlayerInventory header:
PHP Code:
class CPlayerInventory
{
public :
    
void *m_pVtbl_CPlayerInventory;
    
uint32 m_iUnknown1;
    
uint32 m_iAccountID;
    
uint32 m_iUnknown0;
    
CUtlVector<CScriptCreatedItemm_BackPack;
    
void *m_pSortVectorQSortContext;
    
bool m_bUnknown2;
    
uint32 m_iUnknown3;
    
void *m_pfnInventoryUpdated;
    
void *m_pCSharedObjectCache;
    
uint32 m_iUnknown6;
}; 
The new offset of the inventory for windows:
PHP Code:
"InventoryOffset"
{
    
"windows"   "4364"

Thraka is offline