News:

Come Chat with us live! Learn how HERE!

Main Menu

How to force my UI?

Started by rotacak, November 05, 2011, 08:50:28 AM

rotacak

Hi,
I using own HUD in my new 3team mod and I need to force this hud for everybody, even when they have different HUD. How to do that? On some client it works ok, somewhere is custom HUD displayed (when someone installed different than default) and somewhere is no HUD at all.

Any advice?

/dev/humancontroller

you should not "force" a certain HUD. but if the 3team cgame/ui modules are not capable of loading stock HUD files, then you should modify the modules not to use the stock cg_hudFiles cvar: use, instead, something like cg_hudFiles3Team (defaulting it to "ui/hud.txt"). this automatically warns users that 3team HUD modifications require 3team-specific HUD files, and automatically requires the user's "confirmation" to load a HUD that is not supplied with the 3team mod. (this is what has to be done for 1.1 mods due to a 1.1's client behaviour of propogating cvar values to non-base mods. the described problem would not exist in 1.2, just be sure to use an fs_game other than "" and "base" on the 3team server.)

rotacak

#2
I used your solution with cg_hudFiles3Team. Now it is better, it will load right HUD, but only on TJW-like client. On stock client I still see no HUD at all, without errors in console. fs_game is set to "3team".

/dev/humancontroller

Quote from: rotacak on November 05, 2011, 06:17:04 PM
I used your solution with cg_hudFiles3Team. Now it is better, it will load right HUD, but only on TJW-like client. On stock client I still see no HUD at all, without errors in console.
works for me (i've just tested a stock client with an installed Warrior HUD).