Custom Weapon Model Replacements

Im currently making a pistol replacement with Blender, and Im using this:

When I compile the model and everything, I want to use it as a pistol replacement. What files go where and what files need editing for me to be able to do this?

Decompile the pistol model and rig your model to it’s skeleton, then recompile with your model replacing the smd used for the $body bit.

I slightly understood that.

I need to take the default .mdl file, decompile it, open it with blender, delete all the faces and stuff, leaving the skeleton, then take MY model, rig it up, and recompile.

I don’t understand.

I would actually prefer a tutorial on rigging/decompiling, Im very new to modeling.