Page 1 of 1

Additional sound effects

Posted: Fri Aug 17, 2018 4:08 pm
by Leom405
I start modding with simply feautures - sounds, images, etc.

Now i think about added alternative sounds for melee hit or shooting (for example: Punch have 4 variative sounds
tome\data\sound\actions

I think it will be in .lua file. But where?
Someone can help me?

Re: Additional sound effects

Posted: Sat Aug 18, 2018 6:13 am
by HousePet
You think what will be in a lua file somewhere???

Re: Additional sound effects

Posted: Wed Aug 22, 2018 9:40 pm
by 0player
Do you refer to where there are lists of sounds for certain events to add to?
There's "combat.sound" and "combat.sound_miss".

For a random sound, you provide a table like this: {"actions/punch%d", 1, 4}
If you want to add variative sounds, you'll need to replace plain sound definitions (some of them already have pitch tho, those become {"sound/melee_attack%d", 1, 4, pitch=1.2, volume=1.2} for example). Those are somewhere in data/general/objects mostly. Just search for the specific sound (like "actions/punch") to see where it is used.