Heres a short tutorial on how to change
the HUD and blood colors. Really simple.
HUD Colors:
1. Open up the client.dll project.
2. Then open your hud.h and at the top of the page you'll
find
#define RGB_YELLOWISH 0x00FFA000
//255,160,0
#define RGB_REDISH 0x00FF1010 //255,160,0
#define RGB_GREENISH 0x0000A000 //0,160,0
3. These are the basic colors supplied with
Half-Life. You can create others here such as:
#define RGB_WHITE 0x00FFFFFF
//255,255,255 Grayscale
4. One thing to remember is that the #define will
look like this
#define RGB_name 0x00nnnnnn //n is the
rgb colors in hex
5. You can use MSPaint to get the rgb values and then
convert them into hexadecimal. (A calculator will do or you
can find a program.)
6. Replace your new color with any RGB_YELLOWISH that should
change the color on the HUD.
Blood:
Heres something I accidentally found while looking through
the snark.cpp
1. Open the mp.dll project.
2. Then open the util.h go about a third of the way down and
you'll see:
// All monsters need this data
#define DONT_BLEED -1
#define BLOOD_COLOR_RED (BYTE)247
#define BLOOD_COLOR_YELLOW (BYTE)195
#define BLOOD_COLOR_GREEN BLOOD_COLOR_YELLOW
3. This is where you will need to define your new
blood color. For example:
#define BLOOD_COLOR_BLUE (BYTE)210
#define BLOOD_COLOR_LAVENDER (BYTE)300 //sick purple color
4. This is similar to the hud color define except for
the BYTE command.
5. You just need to play around with the numbers until you
get the desired result perhaps you could find a way to put
in to a text file so you won't have to recompile the dll
everytime. (I'll see if I can get this to work.)
6. Replace the Color_red or yellow in your monster code or
biological weapons with your new blood color.
Any questions or suggestions should be sent to me:
venturis52@hotmail.com |