Material Sound, and Roach Created 10 years ago2014-07-18 13:08:37 UTC by zeeba-G zeeba-G

Created 10 years ago2014-07-18 13:08:37 UTC by zeeba-G zeeba-G

Posted 10 years ago2014-07-18 13:15:00 UTC Post #320417
Should be very simple questions...

Fsr I cannot add sound to a certain texture.

I've typed S texturename to give it a slosh sound in the materials.txt in my sound folder. I've also tried placing the file in my hammer/tools folder to no avail.

Edit: found the roach/ "monster_cockroach". Guess I was really tired last night or something.

This is literally the last thing I need to do to complete a map.
Posted 10 years ago2014-07-18 14:15:50 UTC Post #320420
Hmm, I've tested this on a custom map and all works fine for me (sound/materials.txt -> S texturename). Check for that your texture name is custom and doesn't exceed 12 characters. Or maybe you missed something another.
Posted 10 years ago2014-07-18 14:26:59 UTC Post #320421
Oh, does it need to be a custom texture? Because this is for atom's mini competition which is vanilla half life only... :cry:
Posted 10 years ago2014-07-18 14:42:30 UTC Post #320423
... But wouldn't altering the materials.txt be making it not-vanilla?
Jessie JessieTrans Rights <3
Posted 10 years ago2014-07-18 14:55:40 UTC Post #320425
That's like saying you aren't allowed to use text lights because you have to alter the lights document.
Posted 10 years ago2014-07-18 15:06:23 UTC Post #320426
Oh, is materials only used in compilation? (I've never used it.)
Jessie JessieTrans Rights <3
Posted 10 years ago2014-07-18 15:10:44 UTC Post #320427
I believe so.
Posted 10 years ago2014-07-18 17:16:45 UTC Post #320429
zeeba-G, you can try to use vanilla texture, but change its' name and add it to material.txt as a new one. And compile it into map. If it meets the requirements of the compo...

Added:
I also tested this with regular texture just now, and it also works for me. Did you restart HL after altering material.txt? Or maybe you have same texture name in material.txt with another prefix?
Posted 10 years ago2014-07-18 20:48:20 UTC Post #320434
To keep it completely vanilla maybe what i'll do is just take a texture that has the slosh sound and apply it to a func_wall over the floor with render mode set invisible. :lol:
Posted 10 years ago2014-07-23 10:18:58 UTC Post #320658
Just FYI, materials.txt is mod specific. I know this because we've got over 600 custom textures in a certain project we're working on and it was my job to go through and assign material values for them...

I would do this, go into the game to check, then come back and make adjustments. Absolutely nothing to do with the compilation process. Same as skill.cfg for changing health and damage values for enemies.

Your post above this sounds like the best solution.
monster_urby monster_urbyGoldsourcerer
You must be logged in to post a response.