The tga file is simple an image file. You can either assign the image file at the time your build the X model or your can load it in separately via DB and then asssign it to the model.
There is no direct relationship between the model name and image name. You can esily have gun.x work with bubba.bmp, lines.png, purple.jpg, etc. You could also have it use no image file and just rely on a color you assign to it or the colors that were assigned to it at creation time.
--
TAZ
Having said that, you can create image files that are custom designed to work with a given model. A good example are the skins used in quake models. Even then, you can have a many ot one relationship between images and models.