Display a server cvar value in the in-game menu

Locked
bludshot
Posts: 65
Joined: Thu Nov 26, 2009 6:14 am

Display a server cvar value in the in-game menu

Post 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()??
bludshot
Posts: 65
Joined: Thu Nov 26, 2009 6:14 am

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

Post 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)
Locked