doc/html/newapi_notes.html
branchB-work
changeset 176 9a743aab6b3d
parent 144 8f8565e045a0
     1.1 --- a/doc/html/newapi_notes.html	Tue Dec 20 15:39:24 2005 +0000
     1.2 +++ b/doc/html/newapi_notes.html	Tue Dec 20 15:43:08 2005 +0000
     1.3 @@ -16,6 +16,7 @@
     1.4     <li><a href=#GameShutdown>GameShutdown</a>
     1.5     <li><a href=#ShouldCollide>ShouldCollide</a>
     1.6     <li><a href=#CvarValue>CvarValue</a>
     1.7 +   <li><a href=#CvarValue2>CvarValue2</a>
     1.8  </ul>
     1.9  
    1.10  <b>NOTE</b>: No examples of these found in SDK...
    1.11 @@ -65,9 +66,31 @@
    1.12  </tt></blockquote>
    1.13  <p><i>comments:</i><br>
    1.14  <blockquote>
    1.15 -	This API can lead to conflicts when you query more than one cvar from a player 
    1.16 -	at a time.  Use IS_QUERYING_CLIENT_CVAR to check if another plugin is querying before
    1.17 -	you do so.
    1.18 +	Added 2005-08-11, no SDK update.  (Available in patched SDK as of hlsdk-2.3-p2.)
    1.19 +</blockquote>
    1.20 +<blockquote>
    1.21 +	<b>Use of this function is DEPRECATED. It has been obsoleted by the
    1.22 +		pfnCvarValue2() function. See below.</b>
    1.23 +</blockquote>
    1.24 +
    1.25 +<hr><h3><tt><a name="CvarValue2">CvarValue2</a></tt></h3>
    1.26 +<dd><tt>void (*pfnCvarValue2)( const edict_t *pEnt, int requestID, const char *cvarName, const char *value );</tt><p>
    1.27 +<i>from [email protected], via HLCoders:</i><br>
    1.28 +<blockquote><tt>
    1.29 +		When the pfnQueryClientCvarValue2() completes it will call
    1.30 +		pfnCvarValue2() with the request ID you supplied earlier, the name
    1.31 +		of the cvar you requested and the value of that cvar. On failure (i.e
    1.32 +		that user is not connected or the cvar does not exist) the value of the
    1.33 +		returned cvar will be "Bad CVAR request". If you specify an invalid
    1.34 +		player edict you will get "Bad Player" as the value response.<br>
    1.35 +		If a client has a cvar value set to "Bad CVAR request" it cannot be
    1.36 +		differentiated from a bad request for a cvar. This is considered
    1.37 +		okay because that value is not considered to be useful as a valid
    1.38 +		cvar value.
    1.39 +</tt></blockquote>
    1.40 +<p><i>comments:</i><br>
    1.41 +<blockquote>
    1.42 +	Added 2005-11-22, no SDK update.  (Available in patched SDK as of hlsdk-2.3-p3.)
    1.43  </blockquote>
    1.44  
    1.45  <p>