feat(profile): fix CCharacterComponent struct

This commit is contained in:
gromchek 2025-10-26 20:32:07 +03:00
parent 2aaf543e61
commit 9e800fc5cc
2 changed files with 18 additions and 17 deletions

View file

@ -22,9 +22,8 @@ struct ComponentData
int32_t hairStyleID;
CM2Model* m2Model;
uint32_t flags;
char npcBackedTexturePath[260];
uint32_t geosets[19];
CTexture* characterBaseSkin;
char npcBakedTexturePath[260];
uint32_t geosets[19];
};
struct ItemDisplay
@ -43,8 +42,10 @@ struct CCharacterComponent
uint32_t objectIndex;
EGxTexFormat texFormat;
ComponentData componentData;
// 0 - use in CreateRequest AL/AU/FO/HA/HL/HU/LL/LU/TL funcs ; use display info index 0, 1, 2, 3, 4, 5, 6, 7
CTexture* characterBaseSkin;
// 0 - use in CreateRequest AL/AU/FO/HA/HL/HU/LL/LU/TL funcs ; use display info index 0, 1, 2, 3, 4, 5, 6, 7
// 3 - use in CreateRequestHL func
// 4 - use in CreateRequestHU func
// 6 - use in CreateRequestHL func
@ -54,7 +55,7 @@ struct CCharacterComponent
// 12 - use in CreateRequestLU func
// 13 - use in CreateRequestTU func
void* m_textureVariation[15];
// 0 - shirt/chest display
// 1 - chest/wrist/arms display
// 2 - arms display
@ -63,16 +64,16 @@ struct CCharacterComponent
// 5 - legs/belt display
// 6 - legs/feet display
// 7 - feet display
ItemDisplay itemDisplayInfo[10];
uint32_t itemModels[11];
ItemDisplay itemDisplayInfo[10];
uint32_t itemModels[11];
int32_t unk_454;
int32_t unk_458;
int32_t unk_45C;
int32_t unk_460;
uint32_t unkArray[50];
uint32_t unkArray[50];
int32_t unk_52C;
};

View file

@ -9542,7 +9542,7 @@
},
{
"name": "ComponentData",
"size": 380,
"size": 376,
"members": [
{
"type": "int32_t",
@ -9596,7 +9596,7 @@
},
{
"type": "char",
"name": "npcBackedTexturePath",
"name": "npcBakedTexturePath",
"arrsize": 260,
"offset": 40
},
@ -9605,11 +9605,6 @@
"name": "geosets",
"arrsize": 19,
"offset": 300
},
{
"type": "CTexture*",
"name": "characterBaseSkin",
"offset": 376
}
]
},
@ -34552,6 +34547,11 @@
"name": "componentData",
"offset": 24
},
{
"type": "CTexture*",
"name": "characterBaseSkin",
"offset": 400
},
{
"type": "void*",
"name": "m_textureVariation",