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

Update ISource2GameClients (#330)

This commit is contained in:
zer0.k
2025-08-08 13:43:38 +02:00
committed by GAMMACASE
parent 17a16fd9f6
commit 13543fe483
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;