mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 15:27:56 +03:00
Encapsulated m_bDrawPlayerModelExternally
This commit is contained in:
parent
cc32c62964
commit
f880e95e47
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user