List of contactMaterialIDs?

Discussion in 'Programming' started by Ghostyy, Apr 1, 2017.

  1. Ghostyy

    Ghostyy
    Expand Collapse

    Joined:
    Apr 1, 2017
    Messages:
    9
    Hey

    Does anyone have a list of the different contactMaterialID1 values, which is used in sounds.lua wheels section, or know of a way to find them? I'd like to add rolling and skidding sounds to dirt surfaces, and I need the proper contactmaterialID to differentiate sounds between asphalt and dirt.
     
  2. StinchinStein

    StinchinStein
    Expand Collapse

    Joined:
    Jul 16, 2014
    Messages:
    754
    I've driven over them with the console spamming the contactMaterialID1 and figured out this (not entirely accurate, but close enough.. Doesn't have all the materials either)

    Code:
    M.materialMap = {
        [10] = "asphalt",
        [15] = "dirt",
        [16] = "sand",
        [18] = "mud",
        [20] = "grass",
        [21] = "ice",
    }
    I use 'M.materialMap[wd.contactMaterialID1]' to figure out the string version of it.
     
    • Like Like x 1
  3. Ghostyy

    Ghostyy
    Expand Collapse

    Joined:
    Apr 1, 2017
    Messages:
    9
    Thank you! That will help a lot.

    Now if only I could figure out what else I need to do to add more skid and rolling sounds in addition to adding more singleton SFXprofile instances to audioprofiles.cs I could make a properly working skid sound mod.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice