diff -r f72386298cba -r 0e54d20d8f28 doc/txt/newapi_notes.txt --- a/doc/txt/newapi_notes.txt Tue Aug 23 20:31:28 2005 +0000 +++ b/doc/txt/newapi_notes.txt Wed Dec 21 18:40:50 2005 +0000 @@ -7,6 +7,7 @@ - GameShutdown - ShouldCollide - CvarValue + - CvarValue2 NOTE: No examples of these found in SDK... @@ -67,8 +68,35 @@ comments: - This API can lead to conflicts when you query more than one cvar from - a player at a time. Use IS_QUERYING_CLIENT_CVAR to check if another - plugin is querying before you do so. + Added 2005-08-11, no SDK update. (Available in patched SDK as of + hlsdk-2.3-p2.) + + Use of this function is DEPRECATED. It has been obsoleted by the + pfnCvarValue2() function. See below. -------------------------------------------------------------------------- + +CvarValue2 + +void (*pfnCvarValue2)( const edict_t *pEnt, int requestID, const char +*cvarName, const char *value ); + +from alfred@valvesoftware.com, via HLCoders: + + When the pfnQueryClientCvarValue2() completes it will call + pfnCvarValue2() with the request ID you supplied earlier, the name of + the cvar you requested and the value of that cvar. On failure (i.e + that user is not connected or the cvar does not exist) the value of + the returned cvar will be "Bad CVAR request". If you specify an + invalid player edict you will get "Bad Player" as the value response. + If a client has a cvar value set to "Bad CVAR request" it cannot be + differentiated from a bad request for a cvar. This is considered okay + because that value is not considered to be useful as a valid cvar + value. + +comments: + + Added 2005-11-22, no SDK update. (Available in patched SDK as of + hlsdk-2.3-p3.) + +--------------------------------------------------------------------------