I don't think you can get the cmdrate.
-----Original Message-----
From: Matt Judge [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 19, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] using metamod to get client rates
voogru wrote:
>Put something like this in ClientPutInServer.
>
>int rate =
>atoi(g_engfuncs.pfnInfoKeyValue(g_engfuncs.pfnGetInfoKeyBuffer(PLAYER_EDICT
_
>T),"rate"));
>
>However, if they change it while connected you might want to do something
so
>it updates.
>
>
>
Hi,
Thanks for that, didn't realise it was so straight forward, however, I
am trying to get "rate","cl_cmdrate" and "cl_updaterate" values when a
person connects with the following code;
int rate = atoi(g_engfuncs.pfnInfoKeyValue(
g_engfuncs.pfnGetInfoKeyBuffer(pEntity), "rate"));
int cl_cmdrate = atoi(g_engfuncs.pfnInfoKeyValue(
g_engfuncs.pfnGetInfoKeyBuffer(pEntity), "cl_cmdrate"));
int cl_updaterate = atoi(g_engfuncs.pfnInfoKeyValue(
g_engfuncs.pfnGetInfoKeyBuffer(pEntity), "cl_updaterate"));
This is only returning values for "rate" and "cl_updaterate".
"cl_cmdrate" is always "0",
Any further help would be appreciated,
Thanks,
Matt.
_______________________________________________
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