Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Is it possible to set a Q3 ui cvar from a script in a CODUO mp_ui?
Goshawk
General Member
Since: Mar 1, 2007
Posts: 21
Last: Jan 7, 2009
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Wednesday, Jan. 7, 2009 10:47 pm
Does anyone know if its possible to set a Q3 ui cvar from a script in a CODUO mp_ui?

If so what is the proper syntax?

I would like to be able to set the serverStatusAddress from the main gui screen of CODUO via a mouse enter. The action lauches the serverinfo popup. I think serverStatusAddress is the key. Just a guess.

I have been poking through the Quake source code but so and I have tried a few things but so far no luck. I can create a server status popup from the main screen but the problem is that I do not know what formatted variables are passed to the serverinfo script. The serverinfo windo pops up but its empty. Generaly the CODUO mp_ui is just formatting so I am not sure if this is possible with the way Q3 works.

What I need to figure out is the variable that must be set when before the query is made and then returned in the FEEDER_SERVERSTATUS.

Its not a big deal but I was curious if it could be done. If anyone knows lemme know.


edited on Jan. 7, 2009 05:48 pm by Goshawk
Share |
Goshawk
General Member
Since: Mar 1, 2007
Posts: 21
Last: Jan 7, 2009
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Wednesday, Jan. 7, 2009 11:30 pm
So far I have tried several different things but they have not worked. I am working the cl_currentServerAddress and the serverStatusAddress angles. I have tried execing them, simply setting a var or cvar and I have tried setting then on the fly by exec a blah.cfg on mouseEnter.

Everyone should take a poke through the source code. Its pretty neat. There are lots of interesting things going on behind the scenes...

//exec "set serverStatusAddress the_ip_address:port";
//UI_Cvar_VariableString("uiInfo.serverStatusAddress")="the_ip_address:port";
//uiInfo.serverStatusAddress="the_ip_address:port";
//serverAddress="the_ip_address:port";
//exec "set cl_currentServerAddress the_ip_address:port";
//exec "fun.cfg";
//setcvar("cl_currentServerAddress", "the_ip_address:port");
//cl_currentServerAddress="the_ip_address:port";



edited on Jan. 7, 2009 06:35 pm by Goshawk
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»