Author Topic: Surface-specific sounds: hardcoded?  (Read 1614 times)

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Surface-specific sounds: hardcoded?
« on: March 18, 2009, 11:21:20 AM »
Are the surface-specific sounds hardcoded?

Kaos

  • VM-68
  • Posts: 201
Re: Surface-specific sounds: hardcoded?
« Reply #1 on: March 18, 2009, 01:43:57 PM »
Are the surface-specific sounds hardcoded?

I would assume so due to the fact most maps the mapper didnt plan on surface specific sounds thus it had to be hardcoded into the game

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Surface-specific sounds: hardcoded?
« Reply #2 on: March 18, 2009, 04:06:57 PM »
At the moment, yes.  There's only one new sound, so I check for "snow" or "w_metal1" in the texture name.  I'm going to stick with that kind of scheme for now.  Custom textures with fitting names will probably get the appropriate sound assigned.  Like if you name them "somemetaltexture" or "somesandtexture", they would get metal and sand sounds.  If you name them something like "mytexture1" and "mytexture2", though, they would just use the default sounds.  Flags and brush shapes/sizes may also come into play in the future.  Like, is this wood texture on a thin sheet of wood or a thick pole?