Added logic to update team skin when necessary

This commit is contained in:
rabscootle
2026-01-16 11:59:26 -06:00
committed by EricS-Valve
parent 734f5cfd65
commit f63bb2a75d
@@ -1269,6 +1269,14 @@ void CTFPlayerModelPanel::UpdatePreviewVisuals()
SetMDLSkinForTeam( GetMergeMDL( m_MergeMDL ), GetPreviewItem( m_pHeldItem ), m_iTeam );
}
// Set the StatTrack model skin
if ( !m_StatTrackModel.m_bDisabled )
{
int iSkin = 0;
iSkin = m_iTeam == TF_TEAM_RED ? 0 : 1;
m_StatTrackModel.m_MDL.m_nSkin = iSkin;
}
// Set the skin for all other equipped items (wearables, etc).
for ( int i=0; i<m_vecDynamicAssetsLoaded.Count(); i++ )
{