Encapsulated m_bDrawPlayerModelExternally

This commit is contained in:
Blixibon 2021-10-09 15:06:36 -05:00
parent cc32c62964
commit f880e95e47
2 changed files with 7 additions and 2 deletions

View File

@ -5089,6 +5089,6 @@ void CLogicPlayerProxy::InputSetPlayerDrawExternally( inputdata_t &inputdata )
return;
CBasePlayer *pPlayer = static_cast<CBasePlayer*>(m_hPlayer.Get());
pPlayer->m_bDrawPlayerModelExternally = inputdata.value.Bool();
pPlayer->SetDrawPlayerModelExternally( inputdata.value.Bool() );
}
#endif

View File

@ -1147,7 +1147,8 @@ public:
int m_nNumCrateHudHints;
#ifdef MAPBASE
CNetworkVar( bool, m_bDrawPlayerModelExternally );
bool GetDrawPlayerModelExternally( void ) { return m_bDrawPlayerModelExternally; }
void SetDrawPlayerModelExternally( bool bToggle ) { m_bDrawPlayerModelExternally.Set( bToggle ); }
#endif
private:
@ -1188,6 +1189,10 @@ private:
// Player name
char m_szNetname[MAX_PLAYER_NAME_LENGTH];
#ifdef MAPBASE
CNetworkVar( bool, m_bDrawPlayerModelExternally );
#endif
protected:
// HACK FOR TF2 Prediction
friend class CTFGameMovementRecon;