+9
@@ -160,6 +160,15 @@ auto CInventoryChanger::OnFrameStageNotify( int FrameStage ) -> void
|
|||||||
const auto& AddedItems = GetInventoryItemsManager()->GetAddedItems();
|
const auto& AddedItems = GetInventoryItemsManager()->GetAddedItems();
|
||||||
const auto& Skin = AddedItems.find( pWeaponInLoadoutItemView->m_iItemID() );
|
const auto& Skin = AddedItems.find( pWeaponInLoadoutItemView->m_iItemID() );
|
||||||
|
|
||||||
|
if ( Skin != AddedItems.end() )
|
||||||
|
{
|
||||||
|
pWeapon->m_nFallbackSeed() = Skin->second.m_Seed;
|
||||||
|
pWeapon->m_flFallbackWear() = Skin->second.m_Wear;
|
||||||
|
|
||||||
|
C_EconItemView_SetAttributeValueByName( pWeaponItemView , "set item texture wear" , Skin->second.m_Wear );
|
||||||
|
C_EconItemView_SetAttributeValueByName( pWeaponItemView , "set item texture seed" , static_cast<float>( Skin->second.m_Seed ) );
|
||||||
|
}
|
||||||
|
|
||||||
auto* pKnifeModel = pLocalPawn->GetKnifeModel();
|
auto* pKnifeModel = pLocalPawn->GetKnifeModel();
|
||||||
auto* pCompositeMaterial = reinterpret_cast<CCompositeMaterialOwner*>( (PBYTE)pWeapon + g_CompositeMaterialOffset );
|
auto* pCompositeMaterial = reinterpret_cast<CCompositeMaterialOwner*>( (PBYTE)pWeapon + g_CompositeMaterialOffset );
|
||||||
|
|
||||||
|
|||||||
+1
@@ -382,6 +382,7 @@ auto CInventoryItemsManager::AddSelectedSkinToInventory( uint16_t defIdx , int p
|
|||||||
Item.m_PaintKit = paintKit;
|
Item.m_PaintKit = paintKit;
|
||||||
Item.m_Rarity = pItem->m_nRarity;
|
Item.m_Rarity = pItem->m_nRarity;
|
||||||
Item.m_Wear = wear;
|
Item.m_Wear = wear;
|
||||||
|
Item.m_Seed = seed;
|
||||||
Item.m_UnusualItem = pFoundItem->m_UnusualItem;
|
Item.m_UnusualItem = pFoundItem->m_UnusualItem;
|
||||||
Item.m_ItemType = pFoundItem->m_ItemType;
|
Item.m_ItemType = pFoundItem->m_ItemType;
|
||||||
|
|
||||||
|
|||||||
+1
@@ -59,6 +59,7 @@ public:
|
|||||||
int m_PaintKit = 0;
|
int m_PaintKit = 0;
|
||||||
int m_Rarity = 0;
|
int m_Rarity = 0;
|
||||||
float m_Wear = 0.0f;
|
float m_Wear = 0.0f;
|
||||||
|
int m_Seed = 0;
|
||||||
bool m_UnusualItem = false;
|
bool m_UnusualItem = false;
|
||||||
bool m_bLegacyModel = false;
|
bool m_bLegacyModel = false;
|
||||||
std::string m_PaintKitName = "";
|
std::string m_PaintKitName = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user