PDA

View Full Version : How to simple get client same conVar value?


mcpan313
02-12-2012, 12:23
for example client command "password"
i found "SendConVarValue" &"QueryClientConVar" in console.inc, but it use too unwieldy, why not have "GetConVarValve" :3

psychonic
02-12-2012, 14:45
For any client cvar with the FCVAR_USERINFO flag (ex. "name", "cl_language", probably "password"), you can use GetClientInfo.

The client replicates these vars to the server when they change.

Any without that flag have to be checked with QueryClientConVar value because the server does not already know the value and needs to ask the client (and wait for a response).