DecompMDL is a command line tool for decompiling file formats used by GoldSrc!
It can decompile models and sprites, and extract textures from wads and maps with embedded textures!
I whipped up this tool because I needed a model decompiler that runs on Linux. (Crowbar doesn't, unfortunately.)
I ended up expanding it to support sprites and texture collections because I figured it would be a fun challenge.
- Decompile MDL files
- Decompile SPR files
- Extract textures from WADs & BSP files with embedded textures
All that's needed is a path to the desired input file. Everything else is optional.
The "-pattern" option is useful when extracting textures.
Decompiling the Glock viewmodel:
Extracting all the "Anomalous Materials" textures from the Half-Life WAD:
decompmdl -pattern c1a0 "halflife.wad"
Running the program without any arguments will print out a message showing all possible arguments.
The "README" file in the download also contains said message.
You can report issues or grab the source code via the GitHub repository