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?
Additional sound effects
Moderator: Moderator
Re: Additional sound effects
You think what will be in a lua file somewhere???
My feedback meter decays into coding. Give me feedback and I make mods.
Re: Additional sound effects
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.
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.