Tremulous Forum
Mods => Modding Center => Topic started by: rotacak on November 05, 2011, 09:50:28 am
-
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?
-
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.)
-
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".
-
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).