ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Mon Oct 14, 2019 3:42 am

All times are UTC

Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Additional sound effects
PostPosted: Fri Aug 17, 2018 4:08 pm 

Joined: Tue Jul 24, 2018 8:32 am
Posts: 21
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

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

PostPosted: Sat Aug 18, 2018 6:13 am 
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 5937
You think what will be in a lua file somewhere???

My feedback meter decays into coding. Give me feedback and I make mods.

PostPosted: Wed Aug 22, 2018 9:40 pm 

Joined: Fri May 24, 2013 4:27 pm
Posts: 717
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.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group