Damage hit sounds
February 2nd 2013, 03:33 PM

Deluxe


Hello everyone!
I'm trying to replace the original sound effects with new better quality sounds. Now I have small problem with sword2.wav ,sound number 10, the sound when you hit something with a sword. It's 8000 hz which sounds like crap, I even tried to edit my new sound and made it also 8000 hz which of course sounded also crappy.
Now I tried to found the script which plays the sword damage sound so I could change the 8000 hz to something like 22050. But I cannot find it. I only found some dam-fire.c or dam-bom.c but not anything about sword. So what really plays those damage sounds like the sword or fist punch sound? Is there any way to change the 8000 hz to 22050 hz?
Thank you in advance!
I'm trying to replace the original sound effects with new better quality sounds. Now I have small problem with sword2.wav ,sound number 10, the sound when you hit something with a sword. It's 8000 hz which sounds like crap, I even tried to edit my new sound and made it also 8000 hz which of course sounded also crappy.
Now I tried to found the script which plays the sword damage sound so I could change the 8000 hz to something like 22050. But I cannot find it. I only found some dam-fire.c or dam-bom.c but not anything about sword. So what really plays those damage sounds like the sword or fist punch sound? Is there any way to change the 8000 hz to 22050 hz?

Thank you in advance!
Hello
It's done by the engine and there's no way to change that via scripts I'm afraid... You'll just have to play with your sound until it sounds good at 8000Hz.
Note that sword2.wav played at 22050Hz is the sound used for picking up a heart - you may need to change the heart (and other items?) script or you could hear some odd sounds

It's done by the engine and there's no way to change that via scripts I'm afraid... You'll just have to play with your sound until it sounds good at 8000Hz.
Note that sword2.wav played at 22050Hz is the sound used for picking up a heart - you may need to change the heart (and other items?) script or you could hear some odd sounds

February 2nd 2013, 03:56 PM

Deluxe


Argh, dang...
well I see what I can do. At least I can change the pickup sound if I go to sheart.c or sfood.c or any other script that uses that sword2 sound and make a new sound and make all the pickups to use it instead. Funny that they made only some sounds editable, why not all? dang 8000 hz
Argh gotta get over it...
Thanks Sparrowhawk for your quick reply!


Thanks Sparrowhawk for your quick reply!
The actual part which plays a sound when you hit something is hardcoded, but it IS possible to change what that sound is and also the speed at which it plays. item-sw1.c does as much:
sp_attack_hit_sound(1, 10); sp_attack_hit_sound_speed(1, 8000);
Scratchers right again (10 more points hehe)
That works - I changed the sword sound to a fist sound for "Shady" because the swords slicing sound when using a staff didnt do it for me
That works - I changed the sword sound to a fist sound for "Shady" because the swords slicing sound when using a staff didnt do it for me

February 3rd 2013, 04:16 AM

Deluxe


Thank you Scratcher for your amazing knowledge! I really appreciate it! Thanks again
