This tutorial is for intermediate to advanced users. If you have trouble compiling a CS model, you'll probably have a lot of trouble with some of these steps.
Things you should know- You have to know the basics on how to compile a weapon model, assign vertices to bones, etc. I'm not going into too much detail here. If you do not I suggest you read a tutorial on compiling models for HL2/CS:S first. - It's a plus if you understand the content of qc and smd files and the way a skeleton works, if you don't then there might be a few steps you won't understand. - English. Once I start writing I don't stop so I'm sure this will become a wall of text. My apologies for that.
Tools you need- Notepad++, an improved version of notepad ( Download link ) - mdldecompiler ( Download link ) - Milkshape 3D ( Website ) - Gibbed's vpk extractor ( Link ) - At least 1 game compatible with the Source SDK
1 PreparationsFirst things first, we're going to make some preparations.
1.1: Extracting the default modelsOpen Gibbed's Vpk Extractor, use it on the pak01_dir.vpk file in your left4dead folder and extract it to that folder as well. Now you have all the original models, materials, etc in their respective folders.
1.2: Editing whitelist.cfgFirst of all we have to allow the game to look for custom stuff in the models folder. Open the file whitelist.cfg in your left4dead folder in notepad. Somewhere under the line: // Additional files/directories to allow Add this: "add" "models/*.ani" "add" "models/*.mdl" "add" "models/*.vtx" "add" "models/*.vvd"
This tells the game to look for custom ani, mdl, vtx and vvd files in the models folder. Save the file and close it.