Merge pull request #12 from lagcompensation/master

Minor fixes
This commit is contained in:
_or_75
2026-05-08 15:00:39 +03:00
committed by GitHub
4 changed files with 5 additions and 4 deletions
@@ -174,7 +174,7 @@ auto CInventoryItemsManager::ScanAllItems() -> void
dumpedSkin.m_ID = pPaintKit->nID; dumpedSkin.m_ID = pPaintKit->nID;
dumpedSkin.m_Rarity = pPaintKit->nRarity; dumpedSkin.m_Rarity = pPaintKit->nRarity;
dumpedSkin.m_bLegacyModel = pPaintKit->m_use_legacy_model(); dumpedSkin.m_bLegacyModel = pPaintKit->IsUseLegacyModel();
dumpedSkin.m_PaintKitName = pPaintKit->sName; dumpedSkin.m_PaintKitName = pPaintKit->sName;
// Get skin name for UI // Get skin name for UI
@@ -3,5 +3,4 @@
auto Hook_IsLoadoutAllowed() -> bool auto Hook_IsLoadoutAllowed() -> bool
{ {
return true; return true;
return IsLoadoutAllowed_o();
} }
@@ -22,9 +22,9 @@ public:
char pad4[0x4]; // no idea char pad4[0x4]; // no idea
int nRarity; int nRarity;
uint8_t m_use_legacy_model() uint8_t IsUseLegacyModel()
{ {
return *reinterpret_cast<uint8_t*>( (std::uintptr_t)this + 0xAE ); return *reinterpret_cast<uint8_t*>( (uintptr_t)this + g_CCPaintKit_IsUseLegacyModel );
} }
}; };
@@ -66,3 +66,5 @@ static constexpr auto g_CViewSetup_angView = 0x04B8;
// client.dll -> FF 81 ? ? ? ? 48 85 D2 // client.dll -> FF 81 ? ? ? ? 48 85 D2
static constexpr auto g_OFFSET_CGameEntitySystem_GetHighestEntityIndex = 0x20A0; static constexpr auto g_OFFSET_CGameEntitySystem_GetHighestEntityIndex = 0x20A0;
static constexpr auto g_CCPaintKit_IsUseLegacyModel = 0xAE;