Additional sound effects

Moderator: Moderator

Post Reply
Message
Author
Leom405
Wayist
Posts: 21
Joined: Tue Jul 24, 2018 8:32 am

Additional sound effects

#1 Post 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?

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Additional sound effects

#2 Post by HousePet »

You think what will be in a lua file somewhere???
My feedback meter decays into coding. Give me feedback and I make mods.

0player
Uruivellas
Posts: 717
Joined: Fri May 24, 2013 4:27 pm

Re: Additional sound effects

#3 Post 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.

Post Reply