Page 1 of 1

Display a server cvar value in the in-game menu

Posted: Thu Sep 29, 2011 10:20 pm
by bludshot
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()??

Re: Display a server cvar value in the in-game menu

Posted: Thu Sep 29, 2011 11:39 pm
by bludshot
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)