Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
OV3RDR1VE

Adding water "get in" and "get out" sounds in ZDoom

Recommended Posts

Hi guys! Could you please give me a clue how to define these sounds in SNDINFO and what are the lines should be written to make them work. As I mentioned, I need sound effects functioning when the character gets in and gets out of the water.
I've got 2 sounds in .wav format.

Share this post


Link to post

*dive and *surface are played when the player's viewpoint goes below and above the surface of water. They are player sounds, so if the sound lumps are DSDIVE and DSSURF, define them as

$playersound player male *dive DSDIVE
$playersound player male *surface DSSURF
and you can define other sounds for specific player classes and/or female players.

For characters entering water (merely entering, not diving in it) there's no specific sound effect but you can use terrain splashes.

Share this post


Link to post

I've just made it but it doesn't work undfortunately. No sound effect. But how is it possible in Brutal Doom and Doom Legacy? They do have a sound effect.

Share this post


Link to post
OV3RDR1VE said:

I've just made it but it doesn't work undortunately.

What it? It would help to diagnose your problem if you explained what it you've done but didn't work. Also, when you are talking about water, are you talking about the player stepping onto and out of a sector with FWATER1 flat on it, or are you talking about submerging and emerging from ZDoom-style deep water sectors?

Share this post


Link to post

I've put the lines given into the SNDINFO.txt , put it into external pk3 file and loaded = nothing. I'm talking about the player stepping onto and out of a sector with FWATER1 flat on it. That's exactly what I mean.

Share this post


Link to post

Then you need to use the terrain splashes method, as Gez said. The sndinfo method was for deep water sectors only.

Share this post


Link to post

I think so but I don't quite understand how this method should be properly used though I've read a wikia article concerning this.

Share this post


Link to post

Are these sounds in ZDoom/GZDoom (bundled)? Can I use them in a script with "AmbientSound" if so, how is it defined in sdinfo? I have this link, but I can't see anything in there that looks like it.

https://github.com/rheit/zdoom/blob/master/wadsrc/static/filter/game-doomchex/sndinfo.txt

I'm guessing this is probably for something a little more vanilla.

Is there a link to the sdinfo that's in zdoom?

Share this post


Link to post
everennui said:

Are these sounds in ZDoom/GZDoom (bundled)?

Which "these"? The ones than Gez mentioned? DSDIVE and DSSURF were just hypothetical examples. However, *dive and *surface are valid. So, you need to grab 2 sounds, put them to your wad and define them in SNDINFO in the way that Gez explained - substitute DSDIVE and DSSURF with the names of your own sounds.

everennui said:

I'm guessing this is probably for something a little more vanilla.

Is there a link to the sdinfo that's in zdoom?

SNDINFO is actually a ZDoom-only lump. The one you linked to IS the one in ZDoom.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×