Page 1 of 1

footsteps

Posted: Tue Jan 08, 2008 11:41 pm
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?

Posted: Wed Jan 09, 2008 1:11 am
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

Posted: Wed Jan 09, 2008 3:33 pm
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.