footsteps

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

footsteps

Post by Gold »

Someone in another post said the following at one time here

Quote
These footstep sounds come from the texture's shader. A wood texture has 'surfaceparm wood' written in the shader and a concrete texture has 'surfaceparm stone'. These surfaceparms control which of the sounds are being used when walking over them. All you'd have to do to hear the right steps is just apply the texture and the shader will take care of the rest


If this was true then why when you open a shader file for wood and change it to say 'surfaceparm snow' it still sounds like you are walking on wood? And if it is possible to change the footstep sounds by way of shader could someone please explain in more detail how to do so?
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

because the map is compiled with information from the shader - if you compile the map again - with changed shader info then the sounds should change
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Indeed. Parsing out the information from a text file (shaders are text files) each time a map loads would be way too expensive CPU-time-wise. Reading binary files (BSPs are binary) is much quicker.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply