Jump to content

Loading a hud


Recommended Posts

Posted

Alright. So I have this really cool idea, but I need to be able to change the hud, real-time. So I go in to the console and use "cg_hudfiles" plus my .txt containing the menu loader (default is ui/jahud.txt). This works fine, but It requires me to reload the map "re-devmap it" before it changes the hud. I need it to change as soon as cg_hudfiles changes. I tried a command I found, "loadhud", but it was a dud. Anyone know how to do this? I would be forever grateful!

Posted

try ui_load? it doesn't say it's a command, but it's handled specifically. I use it to reload .menu changes, might work.

Posted

Hmmm...interesting. Ui_load does in fact load all the menus again, but the hud suddenly becomes invisible. You have to type "loadhud" in for it to come back, but it's still the original one, not the new one I need loaded. Close, but no cigar. :(

Posted

It's not to big a deal if we can't figure it out. We could use @eezstreet's hud-jailbreak plugin, if he lets us, when it comes out. But being able to change the hud via console would be so much easier.

Posted

There actually is a command for toggling huds, you can find it in articles on my site www.jediacademy.cba.pl artykuły - komendy -> lista komend jk3.

Writing from phone so can't link directly.

The only problem is to figure out how to name your hud so ingame cmd finds it.

Search for something like nexthud

therfiles likes this
Posted

Hmmm...nice and useful site, you have there!

 

I didn't see anything like 'nexthud'...all I can see that do anything hud-wise is "Cg_hudfiles" and "cf_hudcolor", the latter of which I have never heard of. I also saw a command called 'nextframe'. Does that have anything to do with it? Will run some tests today.

Posted

"nextframe", "prevframe", "nextskin", and "prevskin" commands will change the
frame or skin of the testmodel.

 

I don't think that nexthud exists

therfiles likes this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...