Custom sounds for actions?

Next101x

Member
Heya! It's me again.
I was just wondering how to add custom sounds to certain actions.
I have 6 sound effects to use, but really only 5, since one of them is tied to the Spark Chaser projectile, rather than the player firing it.
I have:

1. A death sound effect
2. A hurt sound effect
3. A jump sound effect
4. A shooting sound effect (For S. Chaser)
5. A landing on the ground sound effect.

What would I type in the script to make it work? I really don't have much programming skill, the only experience I have with Lua is FNF's Psych Engine, but that's completely different than SRB2's Lua.
 
Hello,
this here is a list of sound effects. https://wiki.srb2.org/wiki/List_of_sounds
Now you see the names of the soundfiles in the game.
I don't know how to configure it for a new character, but if you just want to replace the sounds from the base game, follow these steps:

1. Download SLADE3 if you haven't.
2. Open your .wad or .pk3 in SLADE3.
3. Name your soundfile the exact same way as it is in the list. sfx_s1a0 for example is the name for "jumping" (it's Nr.244 in the list)
4. Throw it in your .wad so it can be called by the game. If it's a whole map pack you're adding this to, I suggest opening a folder in the .pk3, calling it SOUNDS or something and then throwing them in there. The game will find them regardless :^)
If you want it to be in the base game, throw it in its SOUNDS folder and delete the old ones you're replacing.
5. This should do the trick :)

.ogg files for example aren't supported, use .wav, these work.
I don't know how to add the landing sound, unless it's for post flight knuckles, then it works the same way.

Be aware that sometimes sound effects have stupid names. Music too.

Beneath is a link that brings you to the sound and music tutorial. You're probably already seen it, but it says a bit about new custom sounds instead of replacing it, so that's where I'd start if I desired to do something like that.

 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top