Re: Custom texture sound file.
Posted by Dark Tree on
Fri May 13th 2005 at 5:39am
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
I have made some textures for my alpha-stage map and I need to have them refer to the proper sound byte. In HL1 there was materials.txt located in the sound file.
After looking all over the place for the solution I have come up empty. Anyone wanna point me in the right direction?
Re: Custom texture sound file.
Posted by wil5on on
Fri May 13th 2005 at 7:53am
wil5on
member
1733 posts
570 snarkmarks
Registered:
Dec 12th 2003
Occupation: Mapper
Location: Adelaide
Theyre in surfaceproperties.txt, in the materials folder (I think). They dont refer to .wav files tho, you may have to define your sound files or something.
Re: Custom texture sound file.
Posted by Dark Tree on
Fri May 13th 2005 at 8:08am
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
OK....you didn't really get the question right, but your response gave me what I needed to find what I was looking for. What helped me was the filename.
First....you have to use VTFexplorer.
Two....it is in source engine.gcf/hl2/scripts folder.
I just googled for 'surfaceproperties.txt' and the answer came right up :smile:
Thanks :smile:
Re: Custom texture sound file.
Posted by Dark Tree on
Fri May 13th 2005 at 11:08am
Posted
2005-05-13 11:08am
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
Shoot. Nevermind....didn't help at all. The file had nothing to do with textures.
Anyone know how to find what I needed?
Re: Custom texture sound file.
Posted by fishy on
Fri May 13th 2005 at 2:31pm
fishy
member
2623 posts
1476 snarkmarks
Registered:
Sep 7th 2003
Location: glasgow
if you mean you want your new material to have the right sounds for footsteps, bullet impacts etc, then you need to add a "$surfaceprop" line to your materials .vmt file. (for a model, the same line would go into the .qc file)
"$surfaceprop" "wood" would tell the engine your texture is wood, and sounds, bullethole decals etc are all generated accordingly.
there are lots of other surfaceprops available. opening the model viewer and hitting the 'bones' tab, you will see a drop-down list titled 'bone surface properties'. it's a list of all the alternatives to using wood (my example).
Re: Custom texture sound file.
Posted by Dark Tree on
Fri May 13th 2005 at 11:51pm
Posted
2005-05-13 11:51pm
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
I am humbled by thy expertise. Thanks Fishy. What is the default sound....I can't quite tell. Is it wood or concrete?
Re: Custom texture sound file.
Posted by fishy on
Mon May 16th 2005 at 12:45am
Posted
2005-05-16 12:45am
fishy
member
2623 posts
1476 snarkmarks
Registered:
Sep 7th 2003
Location: glasgow
i think the defaults are meant to be like hard dirt.
i eat paint