Replacing a hat in TF2

Right now I just have soldier_hat.blend(for blender) and I’ve got a plugin that exports to .smd, but I don’t know how to make all the files needed: .mdl .phy .vvd .sw.vtx .dx90.vtx dx80.vtx

How many of these do I need to make and how do I do it? Is there a tutorial anywhere?

Use a compiler, search MDL compiler GUI on google or something.