mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 03:56:10 +08:00
Update ISource2GameClients (#330)
This commit is contained in:
@ -597,6 +597,8 @@ public:
|
|||||||
// The client has typed a command at the console
|
// The client has typed a command at the console
|
||||||
virtual void ClientCommand( CPlayerSlot slot, const CCommand &args ) = 0;
|
virtual void ClientCommand( CPlayerSlot slot, const CCommand &args ) = 0;
|
||||||
|
|
||||||
|
// Set the the client controller's userinfo cvar value set to the specified address.
|
||||||
|
virtual void ClientSetConVarUserInfoSet( CPlayerSlot slot, ConVarUserInfoSet_t pConVarUserInfoSet ) = 0;
|
||||||
// A player changed one/several replicated cvars (name etc)
|
// A player changed one/several replicated cvars (name etc)
|
||||||
virtual void ClientSettingsChanged( CPlayerSlot slot ) = 0;
|
virtual void ClientSettingsChanged( CPlayerSlot slot ) = 0;
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
// Shorthand helper to iterate registered concommands
|
// Shorthand helper to iterate registered concommands
|
||||||
#define FOR_EACH_CONCOMMAND( iter ) for(ConCommandRef iter = icvar->FindFirstConCommand(); iter.IsValidRef(); iter = icvar->FindNextConCommand( iter ))
|
#define FOR_EACH_CONCOMMAND( iter ) for(ConCommandRef iter = icvar->FindFirstConCommand(); iter.IsValidRef(); iter = icvar->FindNextConCommand( iter ))
|
||||||
|
|
||||||
|
typedef uint8 *ConVarUserInfoSet_t;
|
||||||
struct ConVarSnapshot_t;
|
struct ConVarSnapshot_t;
|
||||||
class KeyValues;
|
class KeyValues;
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ public:
|
|||||||
virtual int GetTotalUserInfoCvarsByteSize() = 0;
|
virtual int GetTotalUserInfoCvarsByteSize() = 0;
|
||||||
// Copies default values of all cvars which have FCVAR_USERINFO flag to the buffer in a byte range from->to
|
// Copies default values of all cvars which have FCVAR_USERINFO flag to the buffer in a byte range from->to
|
||||||
// if copy_or_cleanup is true, if false would cleanup the buffer
|
// if copy_or_cleanup is true, if false would cleanup the buffer
|
||||||
virtual void CopyUserInfoCvarDefaults( uint8* buffer, int from, int to, bool copy_or_cleanup ) = 0;
|
virtual void CopyUserInfoCvarDefaults( ConVarUserInfoSet_t buffer, int from, int to, bool copy_or_cleanup ) = 0;
|
||||||
|
|
||||||
// Register, unregister vars
|
// Register, unregister vars
|
||||||
virtual void RegisterConVar( const ConVarCreation_t& setup, uint64 nAdditionalFlags, ConVarRef* pCvarRef, ConVarData** pCvarData ) = 0;
|
virtual void RegisterConVar( const ConVarCreation_t& setup, uint64 nAdditionalFlags, ConVarRef* pCvarRef, ConVarData** pCvarData ) = 0;
|
||||||
|
Reference in New Issue
Block a user