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; return;
CBasePlayer *pPlayer = static_cast<CBasePlayer*>(m_hPlayer.Get()); CBasePlayer *pPlayer = static_cast<CBasePlayer*>(m_hPlayer.Get());
pPlayer->m_bDrawPlayerModelExternally = inputdata.value.Bool(); pPlayer->SetDrawPlayerModelExternally( inputdata.value.Bool() );
} }
#endif #endif

View File

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