1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Some changes for 2011-10-13 engine update (bug 5140, r=DS).

This commit is contained in:
Nicholas Hastings
2011-10-20 21:45:47 -04:00
parent cb4f63f743
commit fe3915a2a5
4 changed files with 12 additions and 4 deletions

View File

@ -204,7 +204,8 @@ public:
#endif
// NOTE: this is in the edict instead of being accessed by a virtual because the engine needs fast access to it.
int m_NetworkSerialNumber; // Game DLL sets this when it gets a serial number for its EHANDLE.
short m_NetworkSerialNumber; // Game DLL sets this when it gets a serial number for its EHANDLE.
short m_iIndex;
// NOTE: this is in the edict instead of being accessed by a virtual because the engine needs fast access to it.
IServerNetworkable *m_pNetworkable;

View File

@ -391,7 +391,8 @@ public:
#define INTERFACEVERSION_SERVERGAMEDLL_VERSION_4 "ServerGameDLL004"
#define INTERFACEVERSION_SERVERGAMEDLL_VERSION_5 "ServerGameDLL005"
#define INTERFACEVERSION_SERVERGAMEDLL "ServerGameDLL006"
#define INTERFACEVERSION_SERVERGAMEDLL_VERSION_6 "ServerGameDLL006"
#define INTERFACEVERSION_SERVERGAMEDLL "ServerGameDLL007"
//-----------------------------------------------------------------------------
// Purpose: These are the interfaces that the game .dll exposes to the engine
@ -541,7 +542,7 @@ public:
virtual void CheckTransmit( CCheckTransmitInfo *pInfo, const unsigned short *pEdictIndices, int nEdicts ) = 0;
};
#define INTERFACEVERSION_SERVERGAMECLIENTS "ServerGameClients003"
#define INTERFACEVERSION_SERVERGAMECLIENTS "ServerGameClients004"
//-----------------------------------------------------------------------------
// Purpose: Player / Client related functions
@ -603,6 +604,8 @@ public:
// The client has submitted a keyvalues command
virtual void ClientCommandKeyValues( edict_t *pEntity, KeyValues *pKeyValues ) = 0;
virtual void ClientSpawned( edict_t *pEntity ) = 0;
};
#define INTERFACEVERSION_UPLOADGAMESTATS "ServerUploadGameStats001"

View File

@ -23,7 +23,7 @@ public:
virtual ~IClient() {}
// connect client
virtual void Connect(const char * szName, int nUserID, INetChannel *pNetChannel, bool bFakePlayer) = 0;
virtual void Connect(const char * szName, int nUserID, INetChannel *pNetChannel, bool bFakePlayer, int unknown1) = 0;
// set the client in a pending state waiting for a new game
virtual void Inactivate( void ) = 0;
@ -74,6 +74,8 @@ public:
virtual bool IsFakeClient( void ) const = 0;
// returns true, if client is a HLTV proxy
virtual bool IsHLTV( void ) const = 0;
virtual bool IsReplay( void ) const = 0;
// returns true, if client hears this player
virtual bool IsHearingClient(int index) const = 0;
// returns true, if client hears this player by proximity

View File

@ -71,6 +71,8 @@ public:
virtual void SetFileTransmissionMode(bool bBackgroundMode) = 0;
virtual void SetCompressionMode( bool bUseCompression ) = 0;
virtual unsigned int RequestFile(const char *filename) = 0;
virtual float GetTimeSinceLastReceived( void ) const = 0;
virtual void SetMaxBufferSize(bool bReliable, int nBytes, bool bVoice = false ) = 0;