Import your animations in Blender, make sure to assign the material on it:
1) Go into edit mode on your mesh, and on the properties section click the button with a sphere (Materials)
2) Click the + button near the top to create a new material, then click the assign button to apply it to your mesh.
3) Still in properties, click the checkerboard button next to the sphere (Textures), and scroll the control back up to the top.
4) Click the + New button to add a new texture to your material.
5) Scroll down to Image, and click the picture image. A list of images appears, pick your g_infg.bmp image from the list.
6) Scroll even further down to Mapping, and click the button right of "Map:", then select your mesh to import its UV map (there's usually just one choice).
Then export to
.MD3, and then use Preach's tool to convert to .mdl https://tomeofpreach.wordpress.com/2014/08/26/md3tomdl-0-4-released/
Finally open the model in QME. If your texture is messy, just import it in there, and save your model.