Author Topic: How to force my UI?  (Read 6647 times)

rotacak

  • Posts: 761
  • Turrets: +39/-64
How to force my UI?
« 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?

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: How to force my UI?
« Reply #1 on: November 05, 2011, 10:35:59 am »
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

  • Posts: 761
  • Turrets: +39/-64
Re: How to force my UI?
« Reply #2 on: November 05, 2011, 07: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. fs_game is set to "3team".
« Last Edit: November 05, 2011, 07:18:41 pm by rotacak »

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: How to force my UI?
« Reply #3 on: November 06, 2011, 05:13:34 am »
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).