interact + pickuo

This commit is contained in:
Milxnor
2023-03-11 09:24:00 -05:00
parent 59c338c401
commit 07950d84a2
33 changed files with 663 additions and 150 deletions

View File

@@ -134,7 +134,7 @@ struct PlaceholderBitfield
uint8_t Eighth : 1;
};
inline uint8_t GetFieldMask(void* Property)
inline uint8_t GetFieldMask(void* Property, int additional = 0)
{
if (!Property)
return -1;
@@ -142,11 +142,11 @@ inline uint8_t GetFieldMask(void* Property)
// 3 = sizeof(FieldSize) + sizeof(ByteOffset) + sizeof(ByteMask)
if (Engine_Version <= 420)
return *(uint8_t*)(__int64(Property) + (112 + 3));
return *(uint8_t*)(__int64(Property) + (112 + 3 + additional));
else if (Engine_Version >= 421 && Engine_Version <= 424)
return *(uint8_t*)(__int64(Property) + (112 + 3));
return *(uint8_t*)(__int64(Property) + (112 + 3 + additional));
else if (Engine_Version >= 425)
return *(uint8_t*)(__int64(Property) + (120 + 3));
return *(uint8_t*)(__int64(Property) + (120 + 3 + additional));
return -1;
}