Map Surface Overrides - StyledStrike/gmod-glide GitHub Wiki

While driving over some surfaces, you may notice that the tire sounds/skid marks may not sound or look like what you would expect on some maps. Those maps might have used Surface Material types that don't make sense at first, but might have nicer bullet impacts or footstep sounds that the author of the material desired.

For example, gm_boreas uses MAT_SAND on a material that is supposed to be snow. Glide allows you to work around that by following these steps:

  • Open a text editor (preferably, one that is made for coding, like Visual Studio Code or Notepad++)
  • Write JSON data that will tell Glide which surface material type(s) to replace. For our gm_boreas example, this would look like this:
{
    "MAT_SAND": "MAT_SNOW"
}

You can add more lines, of course. For example, you could make dirt behave like concrete:

{
    "MAT_SAND": "MAT_SNOW",
    "MAT_DIRT": "MAT_CONCRETE"
}
  • On your addon's folder, create a folder and name it data_static
  • Inside data_static, create a folder and name it surface_overrides
  • Inside surface_overrides, save that data as a .json file, and give it the same name as the map file.

For our example, we have saved it to: your-addon-folder/data_static/surface_overrides/gm_boreas.json

Keep in mind, at the time of writing this, these overrides apply to all materials on the whole map due to performance limitations. When you make changes to that .json file, you have to reload the map to see those changes take effect.