torpedo splash and impact sound

gosd

Charter Member
I am trying to get all of the torpedos to make a splash sound on hitting the wather and the explosion sound on hitting the ship.
Is there already a torpedo that does this? And if so what files should I modify?
 
I am trying to get all of the torpedos to make a splash sound on hitting the wather and the explosion sound on hitting the ship.
Is there already a torpedo that does this? And if so what files should I modify?

Hi Gosd, I remember previous discussion of this but don't recall the outcome!

Just an idea - isn't there a bomb drop sound that occurs as you release the torpedo? Perhaps a modified bomb drop sound file, with a splash happening after 2-3 seconds, might solve the first half of your question. Needs to be distinguished from standard bomb drop though.

Is the torpedo water hit effect linked to a sound file? One of the stock ambient water explosion files might sound realistic enough to double as a torpedo hit sound.

Just Kickin' ideas around - I see Gecko has a way with sound files - per the mods he did for Pat's taxiing Halifaxes.

:salute:
 
Sort of figured part of it; if you add the following lines to the sounds.xml you get the torpedo splash sound provided you have the sound files waterslash.wav and xwatherslash.wav : <torpedo_splash> <sound file="xwatersplash.wav" FileInt="watersplash.wav"/>
</torpedo_splash>

As for the explosion of the ship this part should be in the ship .xdp file but I avent figured out wich lines yet.
 
Sort of figured part of it; if you add the following lines to the sounds.xml you get the torpedo splash sound provided you have the sound files waterslash.wav and xwatherslash.wav : <torpedo_splash> <sound file="xwatersplash.wav" FileInt="watersplash.wav"/>
</torpedo_splash>

As for the explosion of the ship this part should be in the ship .xdp file but I avent figured out wich lines yet.

Hi gosd,
yes please post once its sorted out!

A number of damage effects are linked to the ship xdp file, triggered when a certain percentage of damage occurs to the ship. Trouble is, a torpedo might cause 70% damage to a destroyer, but only 30% damage to a cruiser. And also the effect is not discriminating - once the level of damage occurs, regardless of whether bomb/rocket/torpedo, the effect is triggered. So the ship xdp is probably not the way to go?

At a guess, the explode effect listed for the torpedo's weapon .xdp file should be a group effect, and the large water splash and some sort of sound effect should be triggered as separate effects within the group effect? Just some thoughts here I haven't had much luck linking sounds to group effects.

Hope you can get it sorted :salute:
 
Yep, that's the right way to go about it. You can find examples of sound effects added to group effects in the effects.xml, search for "snd" and you'll discover sound effects that reference effects in the sounds.xml and see where they are added to group effects.
 
Back
Top