Freyr Posted November 17, 2003 Posted November 17, 2003 I tried this thread at Massassi, but no one could help me, so I hope someone here knows about coding. So, I have a variable defined in a cvar on the client side(cgame) of my code. Now if I want to refrence it on the server side(game) or ui; how would I retrieve it? Any help would be great.
Commodus Posted November 17, 2003 Posted November 17, 2003 I could be totally wrong (and someone please correct me if I am), but maybe you could write a function that calls trap_SendClientCommand() in cgame that can send the information in the cvar to the server... Just a thought. Check http://www.quake3world.com/ubb/Forum4/HTML/005563-2.html? for more information on trap_SendClientCommand()...
razorace Posted November 17, 2003 Posted November 17, 2003 http://www.planetquake.com/code3arena/ The link is to your coding bible. Use it. Love it. And the information you need is in the cvar information part of the site. and, oh yeah, this is in the wrong forum...unless the JKA SDK was released while I was at work.
Tchouky Posted November 18, 2003 Posted November 18, 2003 declare your CVAR as a CVAR_USERINFO and then get its value in : ClientUserinfoChanged() in g_client.c good luck.
Freyr Posted November 18, 2003 Author Posted November 18, 2003 Thanks for the help, sorry about posting in the wrong forum.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.