OpenXcom Forum

Modding => OpenXcom Extended => OXCE Suggestions DONE => Topic started by: Solarius Scorch on October 20, 2018, 10:31:23 pm

Title: [DONE] [Suggestion] Make ambient sounds great again!
Post by: Solarius Scorch on October 20, 2018, 10:31:23 pm
As I understand, you can set ambient sounds, but all that it does is looping the same sound. This is pretty much useless for most applications, since in order to have any background effects you must either choose something which can be played constantly in a loop (like ocean waves), or you need a very long and big sound file, 95% of which is silent.
My request is an ability to add an additional parameter to an ambient sound, which would make it played once in a while, preferably at random intervals. This would allow us to set some background noises appropriate to the map, for example wildlife sounds in a jungle or an occasional gust of wind in the fields.
If possible, I would also like to request the ability to set multiple ambient sounds, each with its own settings (so one sound plays on average every 30 seconds, while another plays on average every 60 seconds).
Title: Re: Make ambient sounds great again!
Post by: bulletdesigner on October 21, 2018, 03:00:07 am
Y, I second this ideas and request, this is a must have for game immersion
Title: Re: Make ambient sounds great again!
Post by: Slax on October 21, 2018, 09:44:03 am
"There go those hybrid cicadas again."
Title: Re: [DONE] [Suggestion] Make ambient sounds great again!
Post by: Meridian on September 16, 2019, 06:18:36 pm
Done.

Code: [Select]
terrains:
  - name: CULTA
#    ambience: 41                    # oxc ambience loop
    ambientVolume: 0.25             # works for both random sounds and non-random loop
#
    ambienceRandom: [41, 42, 43, 44, 45, 46]    # random ambient sounds... works only when "ambience loop" is -1 (i.e. undefined)
    ambienceRandomDelay: [10, 20]               # default is 20-60 seconds

Test build: https://lxnt.wtf/oxem/builds//Extended/Extended-5.6.4-dfead6186-2019-09-16-win64.7z
Title: Re: [DONE] [Suggestion] Make ambient sounds great again!
Post by: Solarius Scorch on September 16, 2019, 07:13:57 pm
This is awesome. Thank you.
I am honestly overwhelmed by your new features, they're all so good. :)
Title: Re: [DONE] [Suggestion] Make ambient sounds great again!
Post by: Meridian on September 16, 2019, 07:39:49 pm
No worries, vacation is soon over, I'm gonna slow down.