The implementation is modelled on the final cvar API that exists in HL1 (so it has the cvar name in it).
- Alfred David Anderson wrote: > Thanks for the info! > > A quick question about the implementation: When this was done for HL1, > there were a few problems that were corrected with an eventual second > API change. It was impossible to pair the call and the callback, > because the callback didn't return the cvar name (later this was fixed > and a request ID was added). Also, originally the callback wasn't > always guaranteed to fire, for example if the CVAR didn't exist or the > client disconnected. > > Are there any quirks like this in the HL2 version? > > Thanks, > > ~dvander > http://www.bailopan.net/ > > Mike Durand wrote: >> Hi All- >> >> Here's some elaboration: >> >> There's a new function in IVEngineServer and IServerPluginHelpers >> called StartQueryCvarValue that the server can use to query cvars on >> the >> clients. IServerGameDLL and IServerPluginCallbacks have new >> callbacks to >> handle the cvar's value coming back from the client, and their >> interface >> versions have been increased. This shouldn't cause any trouble for >> anyone, but when people pickup the new SDK, they'll have to implement >> the new callback in their mods in order to get their mods to compile. >> >> I'll add some details to the VDC Wiki and the release notes when the >> next SDK goes out. It shouldn't be a concern before then, but let me >> know if it is. >> >> -Mike >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Mattie >> Casper >> Sent: Wednesday, November 29, 2006 4:40 PM >> To: [email protected] >> Subject: [hlcoders] Nov 29 Source Update: New interface? >> >> Hello, >> >> The Source update today mentions "Added an interface to allow >> servers to >> query most cvar values on the clients". >> >> Can someone point me to more details on this? Is it via the existing >> engine->GetClientConVarValue()? Or is there going to be a new API or >> engine->mechanism for doing this? >> >> Thanks for the details, >> -Mattie >> >> P.S. Just to have them in print, here are the Source updates today >> that >> might be of most interest to plugin developers: >> >> * Added cvars to let the server prevent clients setting unreasonable >> network >> settings: sv_mincmdrate, sv_maxcmdrate, sv_client_predict, >> sv_client_interpolate, sv_client_interp, and >> sv_client_cmdrate_difference >> >> * Added protection against servers manipulating the >> cl_restrict_server_commands cvar >> >> * Allow servers to execute the "play" command on clients >> >> * Added an interface to allow servers to query most cvar values on >> the >> clients >> >> * Removed cl_cmdbackup >> >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list >> archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list >> archives, please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

