Custom Weapon Icons

A Tutorial for Counter-Strike: Source

Right, I have personally scoured the entire earth to find out how to do this and only came up with one guy who mentioned where the file is and I learned everything else from there. So, as far as I am aware this is the first tutorial of how the hell you do this
Ok, so I'm going to assume you know the basics of navigating around your computer and the Internet, which will (obviously) come in handy.
1.) The file we will be editing is called "HALFLIFE2.ttf" and is located in the "resource" folder of which ever game you want to modify. However, you will probably have to use the GCFScape tool (type into google) to search the .gcf files and extract this file. I recommend you make a backup to save you having to extract it again if you mess up... (If you want to modify counterstrike the file is called "cs.ttf", csd.ttf" and "cstrike.ttf", one is the logos for weapon selection, and the csd.ttf is for when you kill someone in the top right (boom headshot blablabla)
Once you have your computer probably will not be able to read it or open it. Which is where you'll need a font editor such as
Font Creator
http://www.high-logic.com/fontcreator.html
2.) OK once you have this downloaded and installed, you can right-click on the .ttf file (TrueType Font) and go "open with FontCreator". Now this is where you go "ahhhh i seeeee", yes Valve have been very very sneaky and used fonts i.e. alphanumerical digits to assign weapon icons to certain weapons.
So basically it's up to you from here, I learned how to use the program in about 10-20 mins, it's not difficult although it's not very good for drawing weapons in, only fonts God knows why valve thought "hey we'll use fonts this time!!!"
-Sneaky Feature- (3)
There is a button on the toolbar called "import image" so you can go and find a good pic of the gun you need (make sure it's straight) and use the importer to get a good preview of how it will look once you get it in there.
in order to get your new icons to look like Valve's ones you want to have the black lines as thin as possible and lots of blank white spaces. Although you can just look at Valve's ones now you have the program *slaps forehead*.
So there you have it, really easy once you know isn't it?
Let me know if you have any questions or want to know in a bit more detail.
**List of Files for different mods (use GCFScape to extract Files)**
Half-Life 2 - HALFLIFE2.ttf (/steamapps/xxusernamexx/half-life 2/hl2/resource)
Half-Life 2 DM - HALFLIFE2.ttf + HL2MP.ttf (/steamapps/xxusernamexx/half-life 2 Deathmatch/hl2mp/resource)
Counter-Strike Source - cs.ttf + csd.ttf + cstrike.ttf (/steamapps/xxusername/counter-strike source/cstrike/resource)
HL2 Episode 1 + 2 - use HALFLIFE2.ttf from above, copy into (steamapps/xxusernamexx/half-life 2 episode 1/ep1/resource)
or (steamapps/xxusernamexx/half-life 2 episode 2/ep2/resource) respectively
As you may have guessed there aren't any for DODS or TF2, as they don't use the same kind of weapon selection method. I hope this clears up any confusion people are having. Thanks for reading and happy icon creation!!
-Nocturne

Posts

Pros: It is pretty detailed, and the only tutorial I could find.
Cons: It is hard to find a good image of a gun. I found this m9 image http://firearms.foreverbelieve.com/m9a1.jpg, i tried to make it look like valve's stuff, but It wouldn't work out. It just looked bad.

Sorry man it's been over two years since I did this, and I haven't touched on it since, I only tested it with the source mod I was working on, and it worked fine with that. Which game are you trying to use them with, as it may be something to do with the game that forces consistency for the hud...

I made a new font and i am trying to put it into the game but it just wont take. i used highlogic font creator like you did and everything. i am at at loss. no matter what i do the images will not change ingame! any ideas?
Bananite

It might be a consistency problem, try setting "sv_consistency 0" in the console. What game are you trying to get the fonts into? I only tried it on our custom mod, I just figured it would work with the others too...