Using the Team Arena Scripted HUD in Vanilla Quake 3
by Dairyman

Another feature of Team Arena that is not present in vanilla Quake 3 is the use of a scripted HUD. Instead of having to modify the source code to change the composition or layout of your Hud you just have to change some scripts. The Hud scripts use the same format and commands as the menu scripts and share much of the same underlying code. This makes using them much easier, as what you've learned in creating menu scripts is directly applicable to Hud scripts.

The Hud scripts are implemented in the cgame module and this creates a problem when it comes to adding them to your mod. Since this module is modified when creating a mod, it is not possible to supply a cgame dll/qvm file with the Hud scripting added, as your mod changes would not be present. Instead, if you want a scripted Hud, you'll have to modify and recompile your version of the cgame module. There are two different ways to go about doing this, one quick and dirty, the other more involved but cleaner.

Regardless of the method you choose to add the scripted Hud you must include in your source tree the latest UI source code from the Downloads page. This is critical. The Hud code shares some files with the UI code and if you don't have the latest UI source code there will be compiling problems.

 

Return toTutorial Index