diff --git a/public/eiface.h b/public/eiface.h index 9ded096b..b9d08c74 100644 --- a/public/eiface.h +++ b/public/eiface.h @@ -597,6 +597,8 @@ public: // The client has typed a command at the console 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) virtual void ClientSettingsChanged( CPlayerSlot slot ) = 0; diff --git a/public/icvar.h b/public/icvar.h index d074f8f2..92dfe2a8 100644 --- a/public/icvar.h +++ b/public/icvar.h @@ -39,7 +39,7 @@ // Shorthand helper to iterate registered concommands #define FOR_EACH_CONCOMMAND( iter ) for(ConCommandRef iter = icvar->FindFirstConCommand(); iter.IsValidRef(); iter = icvar->FindNextConCommand( iter )) - +typedef uint8 *ConVarUserInfoSet_t; struct ConVarSnapshot_t; class KeyValues; @@ -117,7 +117,7 @@ public: virtual int GetTotalUserInfoCvarsByteSize() = 0; // 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 - 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 virtual void RegisterConVar( const ConVarCreation_t& setup, uint64 nAdditionalFlags, ConVarRef* pCvarRef, ConVarData** pCvarData ) = 0;