Is there a way to add sfx when ships are hit by weapons in a2?
I don't believe you could do it without hacking the executable.
yes there is, add the name of a sound file to: // The sound of the ordinance hitting the Target hitSound = "" In the weapon odf Hope this helps :)
From the question I believe he wanted to know if it would be possible to assign sound effects to the shields being hit, rather than individually to every single weapon.
Doing that would be quite time consuming, to say the least. Especially if you have to then recreate all of the sounds currently used with the impact sound overlaid over the weapon firing sound.
I didn't make it!
KA2 uses this method. You don't need to overlay any sounds, simply use the line of code that was posted. Personally, I used shield impact sounds when primary weapons (Phasers, Disruptors and so forth) hit the ship, and hull impact sounds when secondary and heavy weapons (Photon and Plasma Torpedoes, Heavy Disruptors, Scatterpacks and so on) hit the ship. Not sure where you got the idea you need to make the weapon sound contain the impact sound. Otherwise the impact sound would play before the weapon might have hit (a torpedo for example) and would play even if the weapon missed!
Hello: I agree wth Squire James, it may be time consuming, but it is a safe way to get the effect you want. I remember seeing this code in the Chain Reaction Pulsar special weapon. Well, I look forward to see the results you'll get Jetfreak, keep it up!
Squire James;3989950Not sure where you got the idea you need to make the weapon sound contain the impact sound. Otherwise the impact sound would play before the weapon might have hit (a torpedo for example) and would play even if the weapon missed!
Meh, I meant the existing impact sound- I wrote that in the early hours of this morning while I was doing my last round of the sites before going to bed. Its a little dangerous writing anything that early in the morning it it requires any thought. :)
Freyr;3990568 Its a little dangerous writing anything that early in the morning [COLOR=Red]it it[/COLOR] requires any thought. :)
clearly the middle of the day isn't much better for you either? :p (assuming you are GMT)