Import maps from Source Games - H2xDev/GodotVMF GitHub Wiki

For example we're going to import a maps from Half-life 2.

  1. Unpack materials VMT/VTF and models from the game's VPKs

  2. 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.

  1. Decompile some map from the game or create a new one.
  2. Try to import it in the godot project with VMFNode