Quake3World.com Forums
     Programming Discussion
        Display a server cvar value in the in-game menu


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: Display a server cvar value in the in-game menu

Grunt
Grunt
Joined: 25 Nov 2009
Posts: 65
PostPosted: 09-29-2011 02:20 PM           Profile Send private message  E-mail  Edit post Reply with quote


I have a read-only cvar on the server and I want to display its value in the in-game menu. My plan is to make another client cvar and then set its value when the player joins the server and then the in-game menu will actually display the value of that client cvar. I'm pretty sure I know how to do most of that, but, where should I do it?? In G_InitGame()??




Top
                 

Grunt
Grunt
Joined: 25 Nov 2009
Posts: 65
PostPosted: 09-29-2011 03:39 PM           Profile Send private message  E-mail  Edit post Reply with quote


Looks like I have to do it in ClientBegin. I tried doing it in ClientConnect but apparently the client is not yet initialized at that point so it can't receive commands. (I got it working in ClientBegin)




Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.