Page 1 of 1
Coding help
Posted: Wed Jun 29, 2005 5:49 pm
by ShrapnelCity
Does anyone here know what happened to the coding forum?
And do you know if cl_maxpackets is sent to the server (and how to do it if not)?
Re: Coding help
Posted: Wed Jun 29, 2005 6:26 pm
by ^misantropia^
ShrapnelCity wrote:Does anyone here know what happened to the coding forum?
It got nuked because nobody posted in it IIRC.
ShrapnelCity wrote:And do you know if cl_maxpackets is sent to the server (and how to do it if not)?
No. You could wrap it in a configstring. Check
CG_NewClientInfo in cg_players.c for an example.
PS: most of the remnants of the Q3A coding scene can be found over at the
PlanetQuake forums.
Posted: Thu Jun 30, 2005 12:22 am
by ShrapnelCity
Ideally, I would pput it in the USERINFO config string, but there's no way for me to actually do taht :-(
And thanks for the link.
Posted: Thu Jun 30, 2005 7:29 am
by ^misantropia^
ShrapnelCity wrote:Ideally, I would pput it in the USERINFO config string, but there's no way for me to actually do taht :-(
That's what I meant but I should've been a bit clearer about it. Here you go, add this to
CG_RegisterCvars in cg_main.c.
Code: Select all
char maxpackets[MAX_CVAR_VALUE_STRING];
trap_Cvar_VariableStringBuffer( "maxpackets", maxpackets, sizeof( maxpackets ) );
trap_Cvar_Register( NULL, "maxpackets", maxpackets, CVAR_USERINFO );
And pick it up in
ClientUserinfoChanged in g_client.c (store it somewhere or whatever you want to do with it).