Ok.. here goes nothing.. if I miss anything.. my bad... and this is a long post since i am gona fit evrything needed in here. (sory to admin if this is considered as spam. i got a request from FatKid46 and ChineseWarrior)
Modding the HUD colours and fonts
Open up ClientScheme.res. it shud be in \counter-strike source\cstrike\resource
and you should see this:
Code:
//
// TRACKER SCHEME RESOURCE FILE
//
// sections:
// colors - all the colors used by the scheme
// basesettings - contains settings for app to use to draw controls
// fonts - list of all the fonts used by app
// borders - description of all the borders
//
//
Scheme
{
//Name - currently overriden in code
//{
// "Name" "ClientScheme"
//}
//////////////////////// COLORS ///////////////////////////
Colors
{
// base colors
"Orange" "255 176 0 255"
"OrangeDim" "255 176 0 120"
"LightOrange" "188 112 0 128"
now.. these are some of the default colours.. as you scroll down you see more colours... to define the colours, it goes by "red green blue". the last one im not sure of.. i think it has sumthin to do with the brightness.
ok, now to add colours.. just make a new line in and define the colours like this:
Code:
//////////////////////// COLORS ///////////////////////////
Colors
{
// base colors
"Orange" "255 176 0 255"
"OrangeDim" "255 176 0 120"
"LightOrange" "188 112 0 128"
"Green" "12 255 0 255"
"GreenDim" "12 255 0 120"
"LightGreen" "0 188 13 128"
"White" "255 255 255 225"
as you can see, i added green and white. now that defining the colours is done.. you can now modify the colours of fonts, etc.
Below the colours section, there is something called Base Settings... this is where u change the colours for the HUD. I'm not sure which each one is.. but try changing colours around... see what you get in-game. try out every command like team change, radio or aiming at a hostie to show health to see what colours have been changed.
eg.
Code:
// CHudMenu
"ItemColor" "187 187 187 200" // default 187 187 187 255
"MenuColor" "255 255 255 255"
"MenuBoxBg" "0 0 0 100"
// weapon selection colors
"SelectionNumberFg" "187 187 187 200"
"SelectionTextFg" "255 0 0 200"
"SelectionEmptyBoxBg" "0 0 0 80"
"SelectionBoxBg" "0 0 0 80"
"SelectionSelectedBoxBg" "0 0 0 190"
you will notice that you cant change the money colour and health. i will show you in a later section.now.. to change fonts.
still in ClientScheme.res, there is a section below base settings known as fonts. here is where you can change all the in-game fonts. i am only gona talk about changing the numbers, since that is the only thing i changed. also...
dont forget to install new fonts into ur fonts folder.
Code:
HudNumbersSmall
{
"1"
{
"name" "Wide Glide"
"tall" "10"
"weight" "1000"
"additive" "1"
"antialias" "1"
"range" "0x0000 0x017F"
}
}
HudSelectionNumbers
{
"1"
{
"name" "Wide Glide"
"tall" "11"
"weight" "700"
"antialias" "1"
"additive" "1"
"range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A
}
}
"name" would be the name of the font.... "tall" defines the
font size.
after changing the fonts, you may notice in-game that they might be misaligned. see my previous posts to see what happens.
Fixing font positioning and scripted colour changesOpen up HudLayout.res in \counter-strike source\cstrike\scripts.
you should be seeing this:
Code:
"Resource/HudLayout.res"
{
HudHealth
{
"fieldName" "HudHealth"
"xpos" "16"
"ypos" "440"
"wide" "132"
"tall" "40"
"visible" "1"
"enabled" "1"
ok.. since the numbers were misaligned in my experience... here's how to re-align them. first let's do the health counter. under "HudHealth" there is a line called "digit_ypos". change this number around.. the lower the number, the higher it will be and vice versa. do the same for HudArmor, HudSuit, HudRoundTimer, HudAccount, and HudAmmo. This should fix the number alignment problem.
colour changes can be modified in HudAnimations.txt. it's located in the scripts folder as well. you should see this when you open it:
Code:
// sample animation script
//
//
// commands:
// Animate <panel name> <variable> <target value> <interpolator> <start time> <duration>
// variables:
// FgColor
// BgColor
// Position
to modify the money colour when money is removed or added, go to this line:
Code:
//activecolor - instantly turn red, fade back to green
event AccountMoneyRemoved
{
Animate HudAccount FgColor "HudIcon_Red" Linear 0.0 0.0001
Animate HudAccount FgColor "Green" Accel 0.0 3.0
Animate HudAccount Ammo2Color "HudIcon_Red" Linear 0.0 0.0001
Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
}
//activecolor - instantly turn white, fade back to green
event AccountMoneyAdded
{
Animate HudAccount FgColor "White" Linear 0.0 0.0001
Animate HudAccount FgColor "Green" Accel 0.0 3.0
Animate HudAccount Ammo2Color "HudIcon_Green" Accel 0.0 0.0001
Animate HudAccount Ammo2Color "0 0 0 0" Accel 0.0 3.0
}
i changed some of the scripts alredy. since my i want my HUD to be green, set the second colour in each section to your desired colour. the colours defined here must be added in the ClientScheme.res. this is if you are using a custom colour. (see Modding the HUD colours)
now for the health. since i want the scripting default, like health turns red when low, i am gona change only one thing. go to this line. it shud be right below the money animations.
Code:
event HealthRestored
{
Animate HudHealth FgColor "GreenDim" Linear 0.0 0.01
change it to the desired colour. if all goes well, congratulations! you have successfully modded your HUD.
Modding the gun namesThere are people like me who are annoyed by the gun names in CSS. I mean, I dont like calling the Deagle a "Night Hawk." so here's how you can change it.
open up "cstrike_english.txt" in \counter-strike source\cstrike\resource. this is a big .txt file. as you scroll down, you will notice you can change a variety of names. and, there is hint that there
WILL be new player skins coming soon!! go to this line:
Code:
// pistols menu
"Cstrike_Select_Pistol" "SELECT A PISTOL"
"Cstrike_Glock18" "&1 GLOCK 18"
"Cstrike_USP45" "&2 H&K USP 45"
"Cstrike_P228" "&3 SIG P228"
"Cstrike_DesertEagle" "&4 I.M.I. DESERT EAGLE .50AE"
"Cstrike_FiveSeven" "&5 FN Five-seveN"
"Cstrike_Elites" "&5 DUAL BERETTA 92G ELITE II"
as you can see, i alredy modified the names of the pistols. this shows up in the buy weapon menu. do the same for the shotguns, smg's, rifles, etc.
now.. for modifying the HUD weapon names. this is when hud_fastswitch is disabled and you see the weapon sprites when you change weapon. go to this line, it's at the very bottom:
Code:
"Cstrike_WPNHUD_AK47" "AK-47"
"Cstrike_WPNHUD_Aug" "STEYR AUG A1"
"Cstrike_WPNHUD_AWP" "MAGNUM SNIPER RIFLE"
"Cstrike_WPNHUD_DesertEagle" "IMI DEAGLE"
"Cstrike_WPNHUD_Elites" "DUAL BERETTAS"
"Cstrike_WPNHUD_Famas" "FAMAS F1"
"Cstrike_WPNHUD_FiveSeven" "FN Five-seveN"
"Cstrike_WPNHUD_Flashbang" "FLASHBANG"
"Cstrike_WPNHUD_G3SG1" "H&K G3-SG1"
"Cstrike_WPNHUD_Galil" "IMI GALIL"
"Cstrike_WPNHUD_Glock18" "GLOCK 18"
"Cstrike_WPNHUD_HE_Grenade" "HE GRENADE"
Change the names as desired. And that ends my long tutorial. Good luck, happy modding, and enjoy!
*edit*
almost forgot to show the final product.
My hud itself: *updated after new CT model came out. unfortunately, still unable to change text colours.*
Download
Credits: Basic HUD modification help and weapon naming: Mike Palazzo
Animation modding and text alignment help: FatKid46
Compilation and script modding: Zonda_S
Crazy Chuckster's radar and time repositioned HUD can be dled here:
http://www.cdg.net/forums/viewtopic.php?t=16413&start=120