From 5dccdc2454db9d7ecc02eef441eb4bad813cdcaf Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 9 Nov 2016 19:38:01 +0100 Subject: [PATCH] Model stuff --- src/Components/Modules/AssetInterfaces/IXModel.cpp | 4 +++- src/Game/Structs.hpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/AssetInterfaces/IXModel.cpp b/src/Components/Modules/AssetInterfaces/IXModel.cpp index aae452da..aa2e94f3 100644 --- a/src/Components/Modules/AssetInterfaces/IXModel.cpp +++ b/src/Components/Modules/AssetInterfaces/IXModel.cpp @@ -78,7 +78,9 @@ namespace Assets surface->deformed = reader.Read(); surface->streamHandle = reader.Read(); - surface->something = reader.Read(); + surface->boneIndex = reader.Read(); + surface->unk = reader.Read(); + surface->something = reader.Read(); surface->something2 = reader.Read(); surface->pad2 = reader.Read(); diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index 0dcfc901..5f517790 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -1402,7 +1402,9 @@ namespace Game GfxPackedVertex* vertexBuffer; // +28 int numCT; // +32 XRigidVertList* ct; // +36 - int something; + char boneIndex; + char unk; + short something; int something2; char pad5[16]; // +40 // pad5 matches XModelSurfaces pad