Quake3World.com Forums
     Programming Discussion
        Passing values from cgame to ui in main menu?


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




Print view Previous topic | Next topic 
Topic Starter Topic: Passing values from cgame to ui in main menu?

Grunt
Grunt

Joined: 25 Nov 2009
Posts: 64
PostPosted: 09-18-2011 12:25 AM           Profile Send private message  E-mail  Edit post Reply with quote


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?




Top
                 

Mentor
Mentor

Joined: 12 Mar 2005
Posts: 3957
PostPosted: 09-18-2011 12:49 PM           Profile Send private message  E-mail  Edit post Reply with quote


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.




Top
                 

Grunt
Grunt

Joined: 25 Nov 2009
Posts: 64
PostPosted: 09-18-2011 01:10 PM           Profile Send private message  E-mail  Edit post Reply with quote


Ok thanks




Top
                 

Recruit
Recruit

Joined: 02 May 2012
Posts: 1
PostPosted: 05-02-2012 12:53 AM           Profile Send private message  E-mail  Edit post Reply with quote


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



_________________
visio


Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group