Making a Custom Crosshair Difficulty: Advanced |
| Category: CS:S > Sprites & GUIs | Author(s): Crazy-Virus |

Creating your own Custom Crosshair
Tutorial by Crazy[Virus]
www.undead-mafia.com
Member of the Official Zombie Mod Studio
Creating your own Custom Crosshair
Tutorial by Crazy[Virus]
www.undead-mafia.com
Member of the Official Zombie Mod Studio
Step one
Open any text document
Past the following code into the document
"BaseTimesVertexColorAlphaBlendNoOverbright"
{
// Original shader: BaseTimesVertexColorAlphaBlendNoOverbright
// Uncomment this if you add an alpha channel to the base texture
"$basetexture" "VGUI/white_additive"
"$decal" 1
"$decalscale" 2.10
"$no_fullbright" "1"
//"$additive" "1"
"$translucent" 1
"$color" "[0 0 0]"
}
Just to let you know these are the settings from my custom black crosshair which can be found at his link
Step Two
At Firsts glance the code above looks very complex don’t stress your self we only need to do a few things
"$decalscale" 2.10 -This width of the crosshair you many change it to your desired since this may take many tries to get it to your desired size I set it to 2.10 because it can just make it smaller with cl_crosshairscale
"$color" "[0 0 0]" This is the important part is this is also where most people will make errors As you can tell Color means that this controls the color of your crosshair
This is simple RGB channels at the moment it is set to have 0 red green and blue. Now to find the color you want you need to find a program that was the values viewable I personally recommend using Photoshop but I’m sure most people do not have it. Don’t worry paint will work just fine.
Step three
It is now time to find your desired color Open up paint or some other graphic editing program
(Photoshop users make sure you have RBG color selected when u create a new image I don’t knot believe grayscale works)
Step Four
Go the color selector then define custom color. (<-paint) Once you have found you preferred color copy past the values of the red green and blue channels over to your text document
***Remember***
"$color" "[R G B]"
the first 0 is the red channel the second 0 is the Green channel and the last 0 is the blue channel like show above
Step Five
This is the finial step and now that you have done the hard part you should be in the clear
First off you need to save you text document has white_additive.vmt
Secondly you need to Place it in right folder with the right structure so open \Valve\Steam\SteamApps\\counter-strike source\cstrike\materials\VGUI\
If you do not have the VGUI create it by right clicking going to new and the simply name it VGUI
Finally you need to move or save your file “white_additive.vmt” into this folder
Step Six
Basically what we are going now is testing if your crosshair was successful or not if it doesn’t appear black when u first load the game your Shaders might not support this so do the following hit (esc) default and go to options and deselect translucent
Note IF you have iany problems post away I will try to best to answer your questions Do not rate this low becuase you can use a console command for crosshair color becuase this is a better glitch proof way |