GUI editing Created 20 years ago2004-08-20 03:23:46 UTC by hiccups hiccups

Created 20 years ago2004-08-20 03:23:46 UTC by hiccups hiccups

Posted 20 years ago2004-08-20 03:23:46 UTC Post #52241
How does one go about editing the GUI on the screen, not the menus, but the Armor and Health Symbols, the little flash light etc. Are they graphics or Sprites or wat?. i read somewhere how to do it but i lost the site...
Posted 20 years ago2004-08-20 03:31:05 UTC Post #52243
They are sprites, named xxxhud.spr.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 20 years ago2004-08-20 03:33:43 UTC Post #52244
That's called the HUD (Heads Up Display).

The HUD consists of several sprites, they're stored in the pak0.pak file in the sprites folder. Search for a program called Sprite Explorer, it allows you to browse the pak files and view the sprites within.

Another thing to know is that in the same folder also some .txt files are stored, these hold sprite coordinates that the gamecode recognizes, so it picks the right part of each sprite to display, as several crosshairs and items and such are stored in the same sprite. It's some experimenting but yeah, you'll find out.

To change the HUD color or layout, you'll need to modify the game code. It's not so hard, some basic C/C++ knowledge is required but I found the HUD to be one of the most simple things in the code yet. Not that I'm so experienced though...
Posted 20 years ago2004-08-20 05:02:17 UTC Post #52258
thanks guys i wasnt expecting an answer so soon.
Posted 20 years ago2004-08-22 03:51:36 UTC Post #52750
ok... wat the hell?.. i created the Sprites, using all the proper programs and didnt cut corners. Now when i place it in my /valve/sprites folder and start up the game it gives me a ton of errors about being unable to create a HPK file, and when i check, its created one. Whats goin on?..
Posted 20 years ago2004-08-22 03:58:13 UTC Post #52751
My suggestion: when you save the sprites, save them directly over the old ones. HOWEVER! The default HUD will now be gone. To get it back, you'd probably need to extract the default sprites again.
AJ AJGlorious Overlord
Posted 20 years ago2004-08-22 04:37:16 UTC Post #52763
what i did was extracted the HUD sprites so i could redraw over the ones i wanted to changes. Do you mean for me to resave over the ones in the PAK file.. or over the sprites that i extracted. Cause i saved over them, using the originals as a template and made back up originals. and wat exaclty is a HPK file?.
Posted 20 years ago2004-08-22 04:38:59 UTC Post #52764
Posted 20 years ago2004-08-23 05:22:21 UTC Post #53110
ahh...sexellent. thank you Jaardsi
You must be logged in to post a response.