With HUD customisation now allowed under the DGL's sv_pure settings, I thought I'd write up a quick tutorial on how to change your HUD. The file that handles Dystopia's HUD is named HudLayout.res - you can find it by opening the Dystopia GCF and browsing to the dystopia/scripts folder. Make a copy of it and place it the dystopia/Dystopia/scripts folder (in the regular directory structure rather than in the GCF). By editing this file, you can make some interesting and fairly large changes. Deleting or renaming this file will make Dystopia load the HudLayout.res from inside the GCF, and return you to the default HUD.
A good way to get the setup you want is to have Dystopia windowed, make changes to the file, save, and use the hud_reloadscheme console command to see your changes in-game immediately.
Edit your HUD and you too could be a pro like murphy! How to change your HUD
Basic changes your HUD using the file are fairly self-explanatory.
First, search for the element you want to move or edit. For example, HudVoting is the box displayed when a vote is called, HudAmmo is the ammo counter, HudProgramMenu is the list of programs displayed when in cyberspace, etc.
Secondly, find the value you want to edit. The simplest edits that can be made are changes to the "wide" and "tall" fields to change the size of the element, and the "xpos" and "ypos" fields to move it on-screen.
If you see a value like "r250", that means the element will be drawn 250 units from the right-hand side of the screen, rather than from the left. You can also use "c" to centre an element.
More complex changes can be made by editing some of the other fields - examples of the most useful of these are given below.
What to edit
HudMeatspace Main meatspace HUD: this lets you move the health/armour/energy bars, as well as the round timer, by editing the "HealthY", "ArmorY", "EnergyY" and "ClockY" fields.
To move these elements on the x-axis, change the "wide" field (essentially stretching the entire element across the screen).
The numbers and icons next to the bars can be moved by editing "NumberX" and "IconX".
To remove the background, change "BackgroundType" to "0".
HudImplantSelection Selected implant icons: decreasing "IconWidth" lets you make the implant icons in the top-left of the screen smaller.
HudObjective Objective list: the objective list can be made to take up less space, both when minimised and when expanded, by decreasing "IconWidth" and "IconGap".
HudIFF IFF boxes: specific IFF elements can be made transparent (although not completely hidden) by editing the relevant field to an empty set of quotes. For example, the objective icons can be made transparent so that they obscure less of the screen.
HudRadar Meatspace minimap: when zooming in, the radar will always expand downwards and to the left, so moving it to any other position will result in it expanding off-screen when zoom is used.
You can remove chosen elements from the radar - for example, to hide spawnpoints, change "Radar.TheirSpawn", "Radar.NeutralSpawn" and "Radar.OurSpawn" to be an empty set of quotes.
The "RadarScale" field does not appear to function.
HudAmmo Ammo counter: editing "digit_xpos" and "digit2_xpos" lets you individually reposition the numbers displaying ammo in clip and total ammo remaining.
HudSpawntimer Respawn counter: it's possible to hide the background on the spawntimer just by increasing the "wide" and "tall" fields to something extremely large (both 1000, for example) - this stretches the box such that it is no longer visible on the screen.
HudCyberspace Cyberspace energy usage graph: this allows you to make a number of aesthetic changes to the graph, with the various changes documented by comments. It is, however, a fairly unnecessary HUD element - to hide it completely, change "xpos" and "ypos" to large negative values.
HudProgramMenu Cyberspace program menus: moving this element off-screen using the same method as above will, unfortunately, make it impossible to run any programs in cyberspace.
n1co's custom HUD: Sample HUD files
n1co has created a great minimalistic HUD which I've been using, with a number of edits for personal preference. You can find his HUD in the Files section - inside the archive are a number of different .res files for different resolutions (rename to HudLayout.res and place in the scripts directory to use one).
Comments
Feb
10
mcmuffin
when i go into dys folder it dosent have scripts
i go to steam steammapps user name dys dys
May
2
yoru
by default, the scripts folder doesn't exist. you need to create it