Changing HUD Colors

From Valve Developer Community
Jump to: navigation, search

So, how do you change the color of sprites in the HUD system (weapon selection menu, hitpoints, armor, etc...)?

Method

Open hud.h (it's in client.dll) and find the line:

 #define RGB_YELLOWISH 0x00FFA000 //255,160,0

Change 0x00FFA000 to 0x0000FF00 And get the color of the sprites as in Half-Life: Opposing Force Half-Life: Opposing Force. Another color is easy to pick up by replacing the last six characters.

Warning.pngWarning:Don't paste 000000 as there will be no sprites
PlacementTip.pngExample:0x00 it just stays like that. And the rest of the numbers are the color itself only in the code that can be found from any Web design program: 00FF40 is green.


Another
Open hud.h again. Find next line:

#define RGB_COLOR_NAME 0x00 The color itself
PlacementTip.pngExample:#define RGB_WHITISH 0x00FFFFFF // 255, 255, 255

Next, we use the search, look for example RGB_YELLOWISH and replace it with RGB_WHITEISH. That's all in the game, those inscriptions where you changed defines will be white.

Tip.pngTip:White color is a universal color, you can make colored sprites for it.