Put all your explosion sounds in a common directory (e.g. "sounds/explosions/") and put the following in your sounds.lua:
Code: Select all
local files = VFS.DirList("sounds/explosions/")
local t = Sounds.SoundItems
for i=1,#files do
local fileName = files[i]
t[fileName] = {
file = fileName;
pitchmod = 0.3;
gainmod = 0.2;
maxconcurrent = 8;
}
end
PS: Explosions are so loud cause they are started in the same simFrame and so are played in sync -> resonance. PitchMod now changes the playback time (e.g. with 0.3 the sounds should have a playback time of 100-130%) and so there isn't a resonance anymore even when the sound is started multiple times in the same simframe.
PPS: THIS IS NOTHING THE ENGINE CAN DO, cause you cannot force a PitchMod globally, i.e. voices already sound extreme strange when played at 110% playback time.