2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-04-21 10:58:44 +00:00

chore: add XAnimPartType to all games

This commit is contained in:
Jan Laupetin
2026-03-21 11:11:54 +01:00
parent 15a4662f87
commit 6d6ce20919
5 changed files with 85 additions and 5 deletions

View File

@@ -249,6 +249,22 @@ namespace IW3
XAnimDeltaPartQuat* quat; XAnimDeltaPartQuat* quat;
}; };
enum XAnimPartType
{
PART_TYPE_NO_QUAT = 0x0,
PART_TYPE_HALF_QUAT = 0x1,
PART_TYPE_FULL_QUAT = 0x2,
PART_TYPE_HALF_QUAT_NO_SIZE = 0x3,
PART_TYPE_FULL_QUAT_NO_SIZE = 0x4,
PART_TYPE_SMALL_TRANS = 0x5,
PART_TYPE_TRANS = 0x6,
PART_TYPE_TRANS_NO_SIZE = 0x7,
PART_TYPE_NO_TRANS = 0x8,
PART_TYPE_ALL = 0x9,
PART_TYPE_COUNT
};
struct XAnimParts struct XAnimParts
{ {
const char* name; const char* name;
@@ -260,7 +276,7 @@ namespace IW3
uint16_t numframes; uint16_t numframes;
bool bLoop; bool bLoop;
bool bDelta; bool bDelta;
unsigned char boneCount[10]; unsigned char boneCount[PART_TYPE_COUNT];
char notifyCount; char notifyCount;
char assetType; char assetType;
bool isDefault; bool isDefault;

View File

@@ -379,6 +379,22 @@ namespace IW4
XAnimDeltaPartQuat* quat; XAnimDeltaPartQuat* quat;
}; };
enum XAnimPartType
{
PART_TYPE_NO_QUAT = 0x0,
PART_TYPE_HALF_QUAT = 0x1,
PART_TYPE_FULL_QUAT = 0x2,
PART_TYPE_HALF_QUAT_NO_SIZE = 0x3,
PART_TYPE_FULL_QUAT_NO_SIZE = 0x4,
PART_TYPE_SMALL_TRANS = 0x5,
PART_TYPE_TRANS = 0x6,
PART_TYPE_TRANS_NO_SIZE = 0x7,
PART_TYPE_NO_TRANS = 0x8,
PART_TYPE_ALL = 0x9,
PART_TYPE_COUNT
};
struct XAnimParts struct XAnimParts
{ {
const char* name; const char* name;
@@ -389,7 +405,7 @@ namespace IW4
uint16_t randomDataIntCount; uint16_t randomDataIntCount;
uint16_t numframes; uint16_t numframes;
char flags; char flags;
unsigned char boneCount[10]; unsigned char boneCount[PART_TYPE_COUNT];
char notifyCount; char notifyCount;
char assetType; char assetType;
bool isDefault; bool isDefault;

View File

@@ -382,6 +382,22 @@ namespace IW5
XAnimDeltaPartQuat* quat; XAnimDeltaPartQuat* quat;
}; };
enum XAnimPartType
{
PART_TYPE_NO_QUAT = 0x0,
PART_TYPE_HALF_QUAT = 0x1,
PART_TYPE_FULL_QUAT = 0x2,
PART_TYPE_HALF_QUAT_NO_SIZE = 0x3,
PART_TYPE_FULL_QUAT_NO_SIZE = 0x4,
PART_TYPE_SMALL_TRANS = 0x5,
PART_TYPE_TRANS = 0x6,
PART_TYPE_TRANS_NO_SIZE = 0x7,
PART_TYPE_NO_TRANS = 0x8,
PART_TYPE_ALL = 0x9,
PART_TYPE_COUNT
};
struct XAnimParts struct XAnimParts
{ {
const char* name; const char* name;
@@ -392,7 +408,7 @@ namespace IW5
unsigned short randomDataIntCount; unsigned short randomDataIntCount;
unsigned short numframes; unsigned short numframes;
unsigned char flags; unsigned char flags;
unsigned char boneCount[10]; unsigned char boneCount[PART_TYPE_COUNT];
unsigned char notifyCount; unsigned char notifyCount;
unsigned char assetType; unsigned char assetType;
bool isDefault; bool isDefault;

View File

@@ -368,6 +368,22 @@ namespace T5
XAnimDeltaPartQuat* quat; XAnimDeltaPartQuat* quat;
}; };
enum XAnimPartType
{
PART_TYPE_NO_QUAT = 0x0,
PART_TYPE_HALF_QUAT = 0x1,
PART_TYPE_FULL_QUAT = 0x2,
PART_TYPE_HALF_QUAT_NO_SIZE = 0x3,
PART_TYPE_FULL_QUAT_NO_SIZE = 0x4,
PART_TYPE_SMALL_TRANS = 0x5,
PART_TYPE_TRANS = 0x6,
PART_TYPE_TRANS_NO_SIZE = 0x7,
PART_TYPE_NO_TRANS = 0x8,
PART_TYPE_ALL = 0x9,
PART_TYPE_COUNT
};
struct XAnimParts struct XAnimParts
{ {
const char* name; const char* name;
@@ -382,7 +398,7 @@ namespace T5
bool bLeftHandGripIK; bool bLeftHandGripIK;
bool bStreamable; bool bStreamable;
unsigned int streamedFileSize; unsigned int streamedFileSize;
unsigned char boneCount[10]; unsigned char boneCount[PART_TYPE_COUNT];
unsigned char notifyCount; unsigned char notifyCount;
char assetType; char assetType;
bool isDefault; bool isDefault;

View File

@@ -473,6 +473,22 @@ namespace T6
void* data; void* data;
}; };
enum XAnimPartType
{
PART_TYPE_NO_QUAT = 0x0,
PART_TYPE_HALF_QUAT = 0x1,
PART_TYPE_FULL_QUAT = 0x2,
PART_TYPE_HALF_QUAT_NO_SIZE = 0x3,
PART_TYPE_FULL_QUAT_NO_SIZE = 0x4,
PART_TYPE_SMALL_TRANS = 0x5,
PART_TYPE_TRANS = 0x6,
PART_TYPE_TRANS_NO_SIZE = 0x7,
PART_TYPE_NO_TRANS = 0x8,
PART_TYPE_ALL = 0x9,
PART_TYPE_COUNT
};
struct XAnimParts struct XAnimParts
{ {
const char* name; const char* name;
@@ -487,7 +503,7 @@ namespace T6
bool bDelta3D; bool bDelta3D;
bool bLeftHandGripIK; bool bLeftHandGripIK;
unsigned int streamedFileSize; unsigned int streamedFileSize;
unsigned char boneCount[10]; unsigned char boneCount[PART_TYPE_COUNT];
unsigned char notifyCount; unsigned char notifyCount;
char assetType; char assetType;
bool isDefault; bool isDefault;