Import maps from Source Games - H2xDev/GodotVMF GitHub Wiki
For example we're going to import a maps from Half-life 2.
-
Unpack materials VMT/VTF and models from the game's VPKs
-
Create a file
vmf.config.json
in the godot project folder if you don't have one with the following content:
{
"gameinfo_path": "SteamFolder/steamapps/common/Half-Life 2/hl2",
"materials": {
"import_mode": 1
},
"models": {
"import": true
}
}
Import mode of 1 means that we're going to directly import materials and textures from the game that specified in the VMF file.
- Decompile some map from the game or create a new one.
- Try to import it in the godot project with
VMFNode