Passing values from cgame to ui in main menu?

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

Passing values from cgame to ui in main menu?

Post by bludshot »

When you load the game to the main menu, it doesn't seem to have access to cg_ cvars. If you type any cg_ cvar in the console it won't know it, unless it's archived in the player's config.

Is there any way to get values directly from cgame to ui while in the main menu before actually loading into a map?

I have a feeling there isn't, probably because at that point the cgame.qvm hasn't even run yet eh?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Passing values from cgame to ui in main menu?

Post by ^misantropia^ »

It's like you said, the cgame registers the cvars. They're simply not there before that, with the exception of previously archived (i.e. saved to q3config.cfg) cvars.
bludshot
Posts: 65
Joined: Thu Nov 26, 2009 6:14 am

Re: Passing values from cgame to ui in main menu?

Post by bludshot »

Ok thanks
visio
Posts: 1
Joined: Wed May 02, 2012 8:49 am

Re: Passing values from cgame to ui in main menu?

Post by visio »

There is no way to get values from cgame to ui. sorry
visio
Locked