add jungle sound

master
Martin Doege 2015-08-25 12:16:50 +02:00
parent 5a9759cf72
commit fc44fcbe54
3 changed files with 29 additions and 0 deletions

View File

@ -33,6 +33,8 @@ local beach_frequent_frequency = 1000 --waves
local beach_frequent_volume = 1.0
local water_frequent_frequency = 1000 --water sounds
local water_frequent_volume = 1.0
local jungle_frequent_frequency = 1000 --jungle sounds
local jungle_frequent_volume = 1.0
local desert_frequency = 20 --coyote
local desert_volume = 1.0
local desert_frequent_frequency = 700 --desertwind
@ -146,6 +148,18 @@ local desert_frequent = {
{name="DesertMonolithMed", length=34.5, gain=desert_frequent_volume}
}
local jungle = {
handler = {},
frequency = 0,
{name="nightbird-amazonas", length=88, gain=desert_frequent_volume}
}
local jungle_frequent = {
handler = {},
frequency = jungle_frequent_frequency,
{name="nightbird-amazonas", length=88, gain=desert_frequent_volume}
}
local flying = {
handler = {},
frequency = 1000,
@ -443,6 +457,14 @@ local get_ambience = function(player)
end
end
jungle_in_range = (nodes_in_range(pos, 16, "default:jungleleaves"))
if jungle_in_range > 120 then
if music then
return {jungle=jungle, jungle_frequent=jungle_frequent, music=music}
else
return {jungle=jungle, jungle_frequent=jungle_frequent}
end
end
desert_in_range = (nodes_in_range(pos, 6, "default:desert_sand")+nodes_in_range(pos, 6, "default:desert_stone"))
--minetest.chat_send_all("desertcount: " .. desert_in_range .. ",".. pos.y )

View File

@ -113,3 +113,10 @@ http://www.jamendo.com/en/track/904013/magic-of-the-seventh-world
http://www.jamendo.com/en/track/904016/in-search-of-the-soul
zero-project
Sounds from www.freesound.org:
Downloaded on January 18th, 2013
S: nightbird amazonas close.mp3 by reinsamba -- http://www.freesound.org/people/reinsamba/sounds/13725/ -- License: Attribution