Poll

Ambiance lover like me?

Hell yeah
14 (66.7%)
Yes
1 (4.8%)
sometimes
2 (9.5%)
eh
0 (0%)
not really
0 (0%)
Hippos
4 (19%)

Total Members Voted: 21

Author Topic: Addon Idea: Ambience+Atmosphere  (Read 3337 times)

I've been recently working on a project and I have to use 2Dmusic and Server Music so people can hear the ambiance that is being played for where ever the location is.

But I really don't want to keep on doing this because its very annoying.

So I thought of an addon that would play an ambiance depending on the environments settings. So if it is on an environment
that is a daycycle or just set to look like this in the morning:

Then it would play some really faint quiet wind + some faint crickets

==================

If its normal day time then it would play some quiet wind and some birds every once in a while, but if it is night it will play wind, crickets, and occasionally some howling wolves.


If the environment reads that there is precipitation it will make whatever ambiance that is playing very quiet and play rain or snow depending on the color and brightness of the environment (Bright and white would be snow, a bit dark and moody feeling would be rain).

==================

If possible maybe a GUI or at least a command script that can optionally enable certain sounds and play whatever you want, even if the environment would play something else.

Some optional sounds you could play would be:
Loon (Optional wait time, default every 20 seconds or so.)
Wolf Howling (Optional wait time, default every 30 seconds or so.)

Sounds I would prefer over any others:

Morning Example: https://www.youtube.com/watch?v=WR_lYPYhCvI
Rain Example: https://www.youtube.com/watch?v=xoirXUhEpIo
Snow Example 1. : https://www.youtube.com/watch?v=QcuAyx-SH30
Snow Example 2. : https://www.youtube.com/watch?v=iqt6RFEfFCU
Day time example: https://www.youtube.com/watch?v=Wrg5dgzZM7w
Night Time example: https://www.youtube.com/watch?v=DKsR8D44L1M

Thank you so much for reading this, and if you take this into consideration to make I would be forever thankful :)


« Last Edit: February 02, 2016, 07:29:29 PM by Beans »

This is a great idea!


That would make environments much more lively, and improve many things!

/support

Totally possible. Especially since I remade a daynight cycle using the environment variables. Code is here for those of you who want it. http://pastebin.com/ye0nR4sQ

It essentially uses a linear function to set the environment values based on an initial and a final. (Initial being 0:00 and final being 12:00, after that, it will return to 0)

You could shove some server-wide 3D sound playing functions in there depending on the hour.

Totally possible. Especially since I remade a daynight cycle using the environment variables. Code is here for those of you who want it. http://pastebin.com/ye0nR4sQ

It essentially uses a linear function to set the environment values based on an initial and a final. (Initial being 0:00 and final being 12:00, after that, it will return to 0)

You could shove some server-wide 3D sound playing functions in there depending on the hour.

How would you put in the sounds depending on the hour?
Would I just put in the ogg loop (or a .wav ?)into the file and do something in the script like this:
onhour = 5;
serverplaysound = stufftyloop.ogg

^ Horrible example because I don't know stuff about coding but you get the idea.

Looks like another case where port's daycycles resource could be helpful for anyone coding this: http://forum.blockland.us/index.php?topic=241022.0

I have no idea how to use any of those or how to link them to the sound files.

Give me your ambient sounds. I'll try to get it to work.


At what time do you want which ambient sound to play? Also note that I won't be able to add rain or snow because my daynight cycle doesn't support weather as of yet.

I think the times are self explanitory
morning - morning
day - day
night - night

Yeah no stuff, Sherlock. I'm talking about numeral times. 6:00 morning, 13:00 day, 22:00 night?



?
Like the duration of the daycycle?

No, the duration of the sound.