Jump to content
Sign in to follow this  
drunken officer

different sounds inside a building

Recommended Posts

Hi guys.

I want to add some different sounds to my model, when you walk inside.

I know, i have to do it in the roadwaylod -> "e" -> "materials".

But how to do, to "load" a sound file in a *.rvmat file?

Share this post


Link to post
Share on other sites

'rong!

To have walking sounds inside a building you have to assign a texture to the roadway LOD.

Best would be to use the surface-textures in ca\data\surfaces.

Share this post


Link to post
Share on other sites

You just map a face (or faces) in the roadway LoD straight to a 'texture' file in the Texture field under 'Face Properties'.

In your config for your building you can add a 'new' CfgSurfaces sub-class that links your 'texture' to a 'soundEnviron'. And, under class SoundEnvironExt for a character is where you link a sound file to the 'soundEnviron'.

Or, you can use the existing ones like...

For instance if you mapped a roadway poly face to any texture that started with 'dum_mesto_koberec*' then the engine would go looking for soundEnviron="carpet"; and then go looking for the class SoundEnvironExt class called 'carpet' for the character you are in and play one of the sounds from there.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×