aliens

Author Topic: [DONE] [Suggestion] Make ambient sounds great again!  (Read 3557 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
[DONE] [Suggestion] Make ambient sounds great again!
« 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).
« Last Edit: September 16, 2019, 06:08:11 pm by Meridian »

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: Make ambient sounds great again!
« Reply #1 on: October 21, 2018, 03:00:07 am »
Y, I second this ideas and request, this is a must have for game immersion

Offline Slax

  • Squaddie
  • *
  • Posts: 6
    • View Profile
Re: Make ambient sounds great again!
« Reply #2 on: October 21, 2018, 09:44:03 am »
"There go those hybrid cicadas again."

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9101
    • View Profile
Re: [DONE] [Suggestion] Make ambient sounds great again!
« Reply #3 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

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE] [Suggestion] Make ambient sounds great again!
« Reply #4 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. :)

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9101
    • View Profile
Re: [DONE] [Suggestion] Make ambient sounds great again!
« Reply #5 on: September 16, 2019, 07:39:49 pm »
No worries, vacation is soon over, I'm gonna slow down.