Half-Life

Half-Life

Not enough ratings
[UPDATED] How to change HUD size (25th-Anniversary)
By Maulit
Does your HUD seem bigger than it should? Big clunky and obstrusive?
You want to change the size of your HUD for personal reasons?

Then this guide all about the HUD is for you!
   
Award
Favorite
Favorited
Unfavorite
What's the issue?
Does your HUD look abnormally large?

Too big for your comfort mayhaps?

Well here's an updated (and hopefully more easy to bear with) little tutorial on how to manually change the size of the hud!

How the default HUD looks on a 1366x768 monitor, yuck!
Finding Hud.txt
First step!
Go to your Half-life folder
Commonly Located on C:\Program Files (x86)\Steam\steamapps\common\Half-Life

You will see something like this inside:
After this, enter the valve folder:



Second step!
Now, this is the hard part if you want to manually edit the hud size:

If you have a resolution between 1280x1024 - 2560x1440
Then you can skip to the "Downloadable Quick Fix" section!


If not... you'll have to go through all this below.

Inside the sprite folder you should find a file called Hud.txt:

oh... oh no...
What...?
Well, this file is quite intimidating so.. here's a little explanation on how this thing works!

  • Game Resolution is the needed screen res for the HUD to change size!
    A resolution of 640x800 will use the 640 HUD Sprite File
    A resolution of 1280x1024 will use the 1280 HUD Sprite File
    However, inbetweens will round to the lower HUD Sprite File available

  • Texture Coordinates are the coordinates that will be used by the texture to get only a part of the HUD texture.
    Texture coords in the old system, are all, alingned so one image can be split into multiple HUD parts.
    Texture coords in the newer system mostly default 0, since the whole image is used for every HUD part.

  • The Sprite File Location is where the texture for each HUD element is saved on.

Coffee Break



That's a lot of info to take in, you've been doing great though! take a moment to process everything, i'll be ready when you are!





Editing The HUD Size
Well, now changing the res values depends on how the file is laid out
In the Post 25-Anniversary Steam version of Half life, There are 2 Systems for the sprites.

The High-res hud sprites added are all stored neatly in folders (1280 and 2560 respectively)
The old Low-res hud sprites however, are single images laid out all around the sprites folder!

What does this mean?
I hear you say, well this means a few things...

For starters changing the HUD size from the 2560 version to the 1280 version would be easy

Just change the Sprite File Location's folder from 2560/ to 1280/ or viseversa, and you're done!

However. This isn't so simple for the lower resolution HUDs.
Since low-res Sprites use pixel coordinates, every coordinate for each file is completely different.

In my case, I have a monitor with a resolution of 1366x768, so i am, by default using the 1280 sprite textures for my HUD. If i want to use the 640 sprite textures instead, i'll have to copy the whole 640 coordinate atlas (Separated by // =================), and paste it, replacing the 1280 coordinate atlas.

After doing that, I'll have to replace the game resolution in it, and edit it from 640, to 1280, so the game renders it when the game is running over 1280x1024

That might be a little hard to understand so here's a picture of what i mean. (Attention to the top parts)

Before edit
After edit

You could alternatively, Manually find the coordinates directly from the sprites, and align them yourself on the text file, but that would take way too long, and wouldn't be useful, unless you have a modded HUD that has a bigger & specific texture for the sprite.
Download Quick Fix
If you've come here for the quick fix, here it is! You just have to replace the Hud.txt on the valve folder with this one.

Remember to also Back up your hud.txt first just in case!

Be warned that this might not work for every computer.

So I'd still recommend trying to manually editing it instead.

Download:
"Hud.txt"
[cdn.discordapp.com]


Finishing!
And that should be it!
You should be finished now, just run Half life, or any GoldSrc game that uses the same HUD as HL

It should now look smaller and sleek!
Easier to take in, and much less obstructive.

Before


After


I hope this proves useful to you or anyone who might need it. Have fun!



3 Comments
sokrates sokan 17 May @ 3:50pm 
thanks
Manolo 12 May @ 3:57am 
Nice
天音Alpha 30 Jan @ 5:45pm 
Address to hud.txt : This content is no longer available