This tutorial will cover how to hack off parts of models through the .vmt trick which are in one texture map. This will allow you to edit models which are enforcing consistency, for example playermodels.
With this method, transparency effects are also possible.
Required
Programs:
Photoshop or any other advanced picture editing software
WordPad, Notepad or any similar editor
Other:
A working, updated CSS installation
A model & skin you want to hack off parts
Optional:
Source-SDK with Half-Life Model Viewer
When using Photoshop, the .vtf plugin will come in very handy
Using the trick
Preparing
First of all, we need to open the skin we want to edit in our picture-editing software, I will use Photoshop CS3 and Valves default SAS skin for this tutorial.
If you have HLMV installed, start it and open the model whose skin you are editing - this will become very handy.
Editing
Decide which parts you want to hack off. At this point, it is very important to choose only model parts that have backfaces beneath them or your model will be verbatimly riddled.
Search matching parts of the model on the diffuse map. You can use HLMV to find the right places.
Now the important part starts: select the skin places with the line tool or any similar tool. Refer to screenshot #2.
Change to the alpha channel. In there, paint the whole selection black (the rest of the alpha chanell should be white). These parts of the skins will be invisible. Again, you can use HLMV to instantly check your selections - sometimes, you will have to expand your selection by about one pixel because you can still see parts of the hacked-off model part in HLMV. Refer to screenshot #3.
Note: you can also achieve transparency effects through filling the selection with a greytone instead of pure black. -The darker the grey, the less visible the model part will be.
Saving and .vmt code editing
Save your skin in a texture format that uses the alpha channel, for example DXT5 compression. Attention: if you save the skin in a texture format that has no alpha channel like DXT1, this will not work!
Open up the .vmt file of your skin with your text editor.
In my case, the default .vmt of the SAS skin will look like this:
We will now add this line to it to activate the transparency effect:
If you don't want to make things transparent, but 100% invisible, you should add these commands to the .vmt to achieve a better outcome:
For all who don't know how to copy and paste, it should look like this:
You're done. If you followed every step correctly the parts you painted black in the alpha channel will be invisible and the greytones will be transparent ingame.
Screenshot #3 is a compare screen of the SAS model so you can see what I hacked off.