forked from mtcontrib/ambience
added owls wolves & increased crickets
This commit is contained in:
@ -9,15 +9,27 @@ minetest.register_globalstep(function(time)
|
||||
sound_playing = time
|
||||
end
|
||||
|
||||
if sound_playing > 1 and time < 0.2 then
|
||||
sound_playing = 0.2
|
||||
if sound_playing > 1 and time < 0.05 then
|
||||
sound_playing = 0.05
|
||||
end
|
||||
|
||||
|
||||
--random wolves & owls at night
|
||||
if time > 0.8 or time < 0.2 then
|
||||
if math.random(10000) >9997 then
|
||||
minetest.sound_play("Wolves_Howling")
|
||||
end
|
||||
if math.random(10000) >9997 then
|
||||
minetest.sound_play("horned_owl")
|
||||
end
|
||||
end
|
||||
if time > sound_playing then
|
||||
|
||||
if time > 0.8 or time < 0.2 then
|
||||
sound_playing = time + 0.1
|
||||
sound_playing = time + 0.07
|
||||
minetest.sound_play("Crickets_At_NightCombo")
|
||||
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
@ -1,2 +1,6 @@
|
||||
--Nightime Sound, Recorded by Mike Koenig, License: Attribution 3.0 http://soundbible.com/951-Nightime.html
|
||||
--Crickets At Night Sound, License: Attribution 3.0 | Recorded by Mike Koenig |http://soundbible.com/365-Crickets-At-Night.html
|
||||
--Crickets At Night Sound, License: Attribution 3.0 | Recorded by Mike Koenig |http://soundbible.com/365-Crickets-At-Night.html
|
||||
|
||||
--Medium Pack Of Wolves Howling, License: Public Domain | Recorded by fws.gov, http://soundbible.com/277-Medium-Pack-Of-Wolves-Howling.html
|
||||
|
||||
--Horned Owl Sound, License: Attribution 3.0 | Recorded by Mike Koenig , http://soundbible.com/1851-Horned-Owl.html
|
BIN
ambience/sounds/Wolves_Howling.ogg
Normal file
BIN
ambience/sounds/Wolves_Howling.ogg
Normal file
Binary file not shown.
BIN
ambience/sounds/horned_owl.ogg
Normal file
BIN
ambience/sounds/horned_owl.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user