mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-10 03:43:06 +08:00
Update ISource2GameClients::ProcessUsercmds method (#304)
This commit is contained in:
+3
-1
@@ -600,7 +600,9 @@ public:
|
||||
virtual void ClientSetupVisibility( CPlayerSlot slot, vis_info_t *visinfo ) = 0;
|
||||
|
||||
// A block of CUserCmds has arrived from the user, decode them and buffer for execution during player simulation
|
||||
virtual int ProcessUsercmds( CPlayerSlot slot, bf_read *buf, int numcmds, bool ignore, bool paused, float margin ) = 0;
|
||||
// Will be called when CNetworkGameServerBase::GetServerState() > SS_Loading
|
||||
// A "paused" argument equals CNetworkGameServerBase::GetServerState() == SS_Paused
|
||||
virtual void ProcessUsercmds( CPlayerSlot slot, const CNetMessagePB<CCLCMsg_Move> &msg, bool paused ) = 0;
|
||||
|
||||
virtual bool IsPlayerSlotOccupied( CPlayerSlot slot ) = 0;
|
||||
|
||||
|
||||
+11
-2
@@ -18,6 +18,15 @@
|
||||
#include "icvar.h"
|
||||
#include <netadr.h>
|
||||
|
||||
enum server_state_t : int
|
||||
{
|
||||
SS_Dead = 0,
|
||||
SS_WaitingForGameSessionManifest,
|
||||
SS_Loading,
|
||||
SS_Active,
|
||||
SS_Paused,
|
||||
};
|
||||
|
||||
class IGameSpawnGroupMgr;
|
||||
struct EventServerAdvanceTick_t;
|
||||
struct EventServerPollNetworking_t;
|
||||
@@ -25,7 +34,7 @@ struct EventServerProcessNetworking_t;
|
||||
struct EventServerSimulate_t;
|
||||
struct EventServerEndSimulate_t;
|
||||
struct EventServerPostSimulate_t;
|
||||
struct server_state_t;
|
||||
struct SpawnGroupDesc_t;
|
||||
class IPrerequisite;
|
||||
class CServerChangelevelState;
|
||||
class ISource2WorldSession;
|
||||
@@ -110,7 +119,7 @@ public:
|
||||
virtual void MakeSpawnGroupActive( SpawnGroupHandle_t ) = 0;
|
||||
virtual void SynchronouslySpawnGroup( SpawnGroupHandle_t ) = 0;
|
||||
|
||||
virtual void SetServerState( server_state_t ) = 0;
|
||||
virtual void SetServerState( server_state_t eNewState ) = 0;
|
||||
virtual void SpawnServer( const char * ) = 0;
|
||||
|
||||
virtual int GetSpawnGroupLoadingStatus( SpawnGroupHandle_t ) = 0;
|
||||
|
||||
@@ -39,7 +39,12 @@ public:
|
||||
{
|
||||
return static_cast<CNetMessagePB<T> *>(this);
|
||||
}
|
||||
|
||||
|
||||
float GetMargin() const
|
||||
{
|
||||
return m_flMargin;
|
||||
}
|
||||
|
||||
private:
|
||||
char unk001[24];
|
||||
float m_flMargin;
|
||||
|
||||
Reference in New Issue
Block a user