ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sat Sep 22, 2018 2:45 pm

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 
Offline
Wayist

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


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

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

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


Top
 Profile  
 
PostPosted: Wed Aug 22, 2018 9:40 pm 
Offline
Uruivellas

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.


Top
 Profile  
 
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 2 guests


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