HUD Color Generator Created 16 years ago2007-11-12 13:49:13 UTC by Caboose Caboose

Created 16 years ago2007-11-12 13:49:13 UTC by Caboose Caboose

Posted 16 years ago2007-11-12 13:49:13 UTC Post #238204
Here's a (very) small tool I wrote that generates a custom client DLL for HL1 that turns the HUD the color you specify. Useful for minimods where you just wanna change the HUD color without having to poke around in the SDK.

The DLL itself is compiled from the latest version of the SDK (2.3), with the only modifications made detailed in this tutorial (so obviously, credits for the color changing code go to m0p).

C source code is included.

Download here (476kb)
Posted 16 years ago2007-11-13 11:48:12 UTC Post #238341
Good idea. Maybe you could add some more futures?
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2007-11-13 16:47:26 UTC Post #238368
Like what?
Posted 16 years ago2007-11-13 17:24:11 UTC Post #238374
multicolor hud?
Moaby MoabyMk. III
Posted 16 years ago2007-11-13 19:57:00 UTC Post #238390
Adjust the weapon accuracy and range.
Posted 16 years ago2007-11-16 10:57:47 UTC Post #238618
Flashlight color + flashlight HUD icon color.
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2007-11-16 18:32:13 UTC Post #238633
These all sound like pretty good ideas, I could just turn it into a general customization tool. I'll probably get started on the weapon tweaking bit tonight.

Keep coming up with stuff to add. :)
Posted 16 years ago2007-11-16 18:45:32 UTC Post #238636
Player run speed.
Time before a grenade explodes.
Rocket speed.
Oskar Potatis Oskar Potatis🦔
Posted 16 years ago2007-11-22 01:28:48 UTC Post #238986
Thanks! I'll try this tool.

My client.dll project came corrupt when I dl'd the SDK 2.3. At least, it has all these errors about GameStudioRender and whatnot when I try to build it. I just want to change the HUD, other than that I have no use for client.dll, so thanks.
Posted 16 years ago2007-11-22 09:47:06 UTC Post #238996
This could turn into something much more than just a HUD customizing tool.
And it'll definitely be extremely helpful for all those smaller mods. Great stuff.
Daubster DaubsterVault Dweller
Posted 16 years ago2007-11-22 10:48:18 UTC Post #238998
Indeed actually. Loads of room for potential.
AJ AJGlorious Overlord
Posted 16 years ago2007-11-22 10:51:56 UTC Post #238999
i've got tools that can customize the screen font. I've made a few new ones but the process is retardedly tedious, anyone without adequate photoshopping skill would find this impossible, that or patience. Given you have to type a script that tells the compiler of the GFX.wad what the height and width of each letter is, and there are over 60 of them.

Something a little automatic would be awsome. If you want I can send you the tools so you may know what I mean. Its tough to explain.

The way I pull it off is I use the Slice tool in photoshop. It gives me the height, width, and coordinates in the slice parameter, but I still have to type it in.

Another tough one is the sprite at which displays the direction at which damage is coming from. I had to write a sprite .qc script to define it.

Hell, just make it a full interface tool.

if you want to add weapons, add a load of blank ones to the existing slots and make all of the parameters to all the weapons and cvar that is set in the skills.cfg

stuff like:
9mmar_firerate 10
9mmar_fireradius 3
9mmar_bulletamount 1 (more for shotguns)
9mmar_reloadtime 3
etc.
Rimrook RimrookSince 2003
Posted 16 years ago2007-11-26 17:37:07 UTC Post #239214
Glad to see you're all so enthusiastic about this. I haven't really gotten much done yet, since I don't currently have Half-Life installed on my dev PC, but once I do I'll start working on the weapon customization. It'll have specific settings for each individual weapon, in addition to some other stuff, such as changing player speed when holding a certain weapon, muzzle flashes that light up the world, etc. I'm also thinking of doing a visual HUD editor, where you can change the color and drag around the different elements, and all changes will be previewed in real-time. But, let's not get ahead of ourselves. ;)

I also plan on keeping it open-source, so if anyone would like to help out you're more than welcome. As of right now it'll most likely be written in C using straight Windows API.

@Rimrook: Good ideas, go ahead and send me those tools if you want.
Posted 16 years ago2007-11-26 17:52:33 UTC Post #239215
I want a different nick/username...
Posted 16 years ago2008-02-21 13:41:15 UTC Post #246082
once you've generated it is there a specific name or a place it has to be? :quizzical:
Posted 16 years ago2008-02-22 10:58:31 UTC Post #246166
You can change the tracer bullet color in HL1, add that too.
Posted 16 years ago2008-02-26 10:23:14 UTC Post #246645
Wow, I totally forgot about this. Too much stuff going on lately I guess.

crazyb2000: In the cl_dlls folder of your mod as client.dll.
Posted 16 years ago2008-02-26 15:09:46 UTC Post #246655
Great idea! You should have used the Spirit DLL, though.
Posted 16 years ago2008-03-01 22:46:56 UTC Post #246993
that not work (hudcg.exe) for cs 1.6 and cs 1.5
clent.dll make cs 1.6 return to desktop..error man!
You must be logged in to post a response.