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; int32_t hairStyleID;
CM2Model* m2Model; CM2Model* m2Model;
uint32_t flags; uint32_t flags;
char npcBackedTexturePath[260]; char npcBakedTexturePath[260];
uint32_t geosets[19]; uint32_t geosets[19];
CTexture* characterBaseSkin;
}; };
struct ItemDisplay struct ItemDisplay
@ -44,7 +43,9 @@ struct CCharacterComponent
EGxTexFormat texFormat; EGxTexFormat texFormat;
ComponentData componentData; 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 // 3 - use in CreateRequestHL func
// 4 - use in CreateRequestHU func // 4 - use in CreateRequestHU func
// 6 - use in CreateRequestHL func // 6 - use in CreateRequestHL func
@ -63,16 +64,16 @@ struct CCharacterComponent
// 5 - legs/belt display // 5 - legs/belt display
// 6 - legs/feet display // 6 - legs/feet display
// 7 - feet display // 7 - feet display
ItemDisplay itemDisplayInfo[10]; ItemDisplay itemDisplayInfo[10];
uint32_t itemModels[11]; uint32_t itemModels[11];
int32_t unk_454; int32_t unk_454;
int32_t unk_458; int32_t unk_458;
int32_t unk_45C; int32_t unk_45C;
int32_t unk_460; int32_t unk_460;
uint32_t unkArray[50]; uint32_t unkArray[50];
int32_t unk_52C; int32_t unk_52C;
}; };

View file

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