added owls wolves & increased crickets

This commit is contained in:
Neuromancer
2012-08-17 21:03:08 -05:00
parent 57b95ee660
commit 04fa3ac937
6 changed files with 39 additions and 5 deletions

View File

@ -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

View File

@ -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

Binary file not shown.

Binary file not shown.