mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-18 15:22:47 +03:00
Match Status doors will now refresh skin/submodel at match end to prevent displaying wrong appearance
This commit is contained in:
parent
756ba6ae45
commit
259b2c7c74
@ -574,6 +574,17 @@ void CTFHudMatchStatus::FireGameEvent( IGameEvent * event )
|
|||||||
}
|
}
|
||||||
|
|
||||||
const IMatchGroupDescription* pMatchDesc = GetMatchGroupDescription( TFGameRules()->GetCurrentMatchGroup() );
|
const IMatchGroupDescription* pMatchDesc = GetMatchGroupDescription( TFGameRules()->GetCurrentMatchGroup() );
|
||||||
|
|
||||||
|
//FIX: Refresh versus doors so Casual late-joiners do not see the wrong skin
|
||||||
|
int nSkin = 0;
|
||||||
|
int nSubModel = 0;
|
||||||
|
if (pMatchDesc->BGetRoundDoorParameters(nSkin, nSubModel))
|
||||||
|
{
|
||||||
|
m_pMatchStartModelPanel->SetBodyGroup( "logos", nSubModel );
|
||||||
|
m_pMatchStartModelPanel->UpdateModel();
|
||||||
|
m_pMatchStartModelPanel->SetSkin( nSkin );
|
||||||
|
}
|
||||||
|
|
||||||
bool bForceDoors = false;
|
bool bForceDoors = false;
|
||||||
if ( bForceDoors || ( pMatchDesc && pMatchDesc->BUsesPostRoundDoors() ) )
|
if ( bForceDoors || ( pMatchDesc && pMatchDesc->BUsesPostRoundDoors() ) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user