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)?
Coding help
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: Coding help
It got nuked because nobody posted in it IIRC.ShrapnelCity wrote:Does anyone here know what happened to the coding forum?
No. You could wrap it in a configstring. Check CG_NewClientInfo in cg_players.c for an example.ShrapnelCity wrote:And do you know if cl_maxpackets is sent to the server (and how to do it if not)?
PS: most of the remnants of the Q3A coding scene can be found over at the PlanetQuake forums.
-
- Posts: 8
- Joined: Mon May 30, 2005 3:05 pm
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
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.ShrapnelCity wrote:Ideally, I would pput it in the USERINFO config string, but there's no way for me to actually do taht :-(
Code: Select all
char maxpackets[MAX_CVAR_VALUE_STRING];
trap_Cvar_VariableStringBuffer( "maxpackets", maxpackets, sizeof( maxpackets ) );
trap_Cvar_Register( NULL, "maxpackets", maxpackets, CVAR_USERINFO );