Tutorial: Re-texturing Models Last edited 3 months ago2024-08-31 09:46:39 UTC

example file

Ever wanted to create a Mod but thought: "These monsters just don't look right for my mod. I wish they were a different colour."

You also might have thought: "No, these clothes just aren't suitable at all."

Well, your problems are solved! And it's REALLY easy!

First, you'll need the Half-Life Model Viewer. Download HLMV, and install it. If you have unpacked your models, you can save time by associating their file type with HLMV and that will make them easier to browse.
Half-Life Asset Manager is a modern and up-to-date descendant of HLMV. Use it instead.
You'll also need a graphics program. Paint Shop Pro and Adobe Photoshop are both very good graphics programs but, if you don't have them or are like me and have the slowest Internet connection ever, MS Paint (shudder!) will do just fine.

OK, find the offending model, in this case the hgrunt.mdl. Load it in HLMV. Select the texture tab at the bottom and scroll through the textures until you find one that you want to replace. Select Export and save it to an obvious location. In my case, I've saved them in a new skins folder on the desktop. Now, open up this texture with your graphics program (MS paint for me) and change everything that needs to be changed.

Once you are happy with the alterations (MAKE SURE YOU KEEP THE TEXTURE THE SAME SIZE!), go back to the model, find the texture which you altered (it will, of course, display the original texture) and select import. Locate your new texture and import it. View the model and it will have the new texture.

Now VERY IMPORTANT!: go back to the texture tab and select save model. Either save it in another place, or, rename it, or, save over the old model.

The example grunt model I have included has the following textures changed, the grunt's arms have been painted black (Don't ask), the gas mask guy has a grey helmet.
The GruntThe Grunt
The CommanderThe Commander
Ski GogglesSki Goggles
Balaclava ManBalaclava Man
The Commander has a reddish-brown beret and sunglasses, and the black beret guy (Cigar guy on low definition grunts) has been given a balaclava and grey beret (Again, don't ask).

Just remember that when moving models, you must move the numbered ones with it, or it won't open in HLMV. Also, you don't need the model which ends in t (In this case, hgruntt). You only need the t model if there are no other numbered ones. If there isn't a t or numbered ones, then you don't need to move anything extra. Included with this are the altered grunt models mentioned.
HLAM combines all the data from the accessory files (t and number suffixed .mdl files) into the base file, so it's safe to discard all the others and only copy the base file once the changes are saved.
Just don't copy 'em over the old hgrunts if you prefer the old ones! If you prefer these, and save over the old ones, then when you want to go back to the old ones, just get the old ones out of the PAK file again.
The Steam version of Half-Life no longer ships with PAK files. It is recommended to put custom content in <modfolder>_addon folder (e.g. valve_addon) in the Half-Life folder in your Steam library, so that the base files aren't overwritten. Create one if such folder doesn't exist.
If you don't heed this advice, and your base files are later irrecoverably corrupted, you can verify the game files through Steam to restore them.
[Three minutes after reading this tutorial I re-textured this grunt using Wally as the texture editor. Ok, so it's rubbish, but it worked and now the grunts are really easy to spot! What surprised me was that HL takes it's models and textures from the unpacked model file and not from the 0pak file when it launches. So the possibilities are endless. To share your re-textured models you will have to include the ones you have changed, and distribute them in a model folder so that those viewing your creations have access to them.

And as Vassy said, if you get sick of your new textures, just unpack the 0pak file into your model folder again, and you will have the old models back! - Andy]
Weird GruntWeird Grunt

1 Comment

Commented 16 years ago2008-06-01 05:07:13 UTC Comment #100604
Excellent tutorial. Thank you = )

You must log in to post a comment. You can login or register a new account.