Add T6 Attachment dumper

This commit is contained in:
Jan
2021-03-07 15:25:58 +01:00
parent b891f9527e
commit 5db7eaeec3
10 changed files with 344 additions and 45 deletions

View File

@ -1,5 +1,78 @@
#pragma once
namespace T6
{
inline const char* szAttachmentTypeNames[]
{
"none",
"acog",
"dualclip",
"dualoptic",
"dw",
"extbarrel",
"extclip",
"extramags",
"fastads",
"fastreload",
"fmj",
"gl",
"grip",
"holo",
"ir",
"is",
"longbreath",
"mk",
"mms",
"rangefinder",
"reflex",
"rf",
"sf",
"silencer",
"stackfire",
"stalker",
"steadyaim",
"swayreduc",
"tacknife",
"vzoom"
};
inline const char* szWeapFireTypeNames[]
{
"Full Auto",
"Single Shot",
"2-Round Burst",
"3-Round Burst",
"4-Round Burst",
"5-Round Burst",
"Stacked Fire",
"Minigun",
"Charge Shot",
"Jetgun"
};
inline const char* penetrateTypeNames[]
{
"none",
"small",
"medium",
"large"
};
inline const char* s_constraintTypeNames[]
{
"none",
"point",
"distance",
"hinge",
"joint",
"actuator",
"fake_shake",
"launch",
"rope",
"light",
};
}
class CommonT6
{
public:

View File

@ -119,8 +119,32 @@ namespace T6
enum constraintsFieldType_t
{
CFT_TYPE = 0x12,
CFT_TYPE = CSPFT_NUM_BASE_FIELD_TYPES,
CFT_NUM
CFT_NUM_FIELD_TYPES
};
enum attachmentFieldType_t
{
AFT_ATTACHMENTTYPE = CSPFT_NUM_BASE_FIELD_TYPES,
AFT_UNKNOWN1,
AFT_UNKNOWN2,
AFT_UNKNOWN3,
AFT_UNKNOWN4,
AFT_PENETRATE_TYPE,
AFT_FIRETYPE,
AFT_NUM
};
enum attachmentUniqueFieldType_t
{
AUFT_ATTACHMENTTYPE = CSPFT_NUM_BASE_FIELD_TYPES,
AUFT_HIDETAGS,
AUFT_OVERLAYRETICLE,
AUFT_CAMO,
AUFT_NUM_FIELD_TYPES,
};
}

View File

@ -1719,6 +1719,13 @@ namespace T6
int customBool2;
};
struct WeaponAttachmentUniqueFull
{
WeaponAttachmentUnique attachment;
const char* szXAnims[88];
uint16_t hideTags[32];
float locationDamageMultipliers[21];
};
struct WeaponCamo
{