• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

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