diff --git a/ambience.zip b/ambience.zip new file mode 100644 index 0000000..fdc5cd1 Binary files /dev/null and b/ambience.zip differ diff --git a/ambience/init.lua b/ambience/init.lua index d972d78..35d4a48 100644 --- a/ambience/init.lua +++ b/ambience/init.lua @@ -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 diff --git a/ambience/sounds/SoundLicenses.txt b/ambience/sounds/SoundLicenses.txt index d3373fd..08073dc 100644 --- a/ambience/sounds/SoundLicenses.txt +++ b/ambience/sounds/SoundLicenses.txt @@ -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 \ No newline at end of file +--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 \ No newline at end of file diff --git a/ambience/sounds/Wolves_Howling.ogg b/ambience/sounds/Wolves_Howling.ogg new file mode 100644 index 0000000..537d057 Binary files /dev/null and b/ambience/sounds/Wolves_Howling.ogg differ diff --git a/ambience/sounds/horned_owl.ogg b/ambience/sounds/horned_owl.ogg new file mode 100644 index 0000000..f30d0b3 Binary files /dev/null and b/ambience/sounds/horned_owl.ogg differ diff --git a/us.stackdump b/us.stackdump new file mode 100644 index 0000000..a5de3a5 --- /dev/null +++ b/us.stackdump @@ -0,0 +1,18 @@ +MSYS-1.0.12 Build:2011-07-20 17:52 +Exception: STATUS_ACCESS_VIOLATION at eip=68085E34 +eax=68560000 ebx=00006D34 ecx=00001B4D edx=00000000 esi=00000000 edi=68560000 +ebp=0022FE48 esp=0022FE3C program=us +cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023 +Stack trace: +Frame Function Args +0022FE48 68085E34 (68560000, 00000000, 00006D34, 00000004) +0022FE98 68001CB0 (005D2C52, 00000001, 0022FEE8, 680044EA) +0022FEE8 680045C7 (00000000, 00000000, 0022FF28, 00405894) +0022FF08 68004C5F (00401BB0, 00000000, 00000000, 00000000) +0022FF28 68004C98 (00000000, 00000000, 00000000, 00000000) +0022FF58 004057A4 (00401BB0, 00000000, 00000000, 00000000) +0022FF88 0040103D (7FFDC000, 0022FFD4, 776BE4B6, 7FFDC000) +0022FF94 772D4911 (7FFDC000, F7651B21, 00000000, 00000000) +0022FFD4 776BE4B6 (00401000, 7FFDC000, 00000000, 00000000) +0022FFEC 776BE489 (00401000, 7FFDC000, 00000000, 78746341) +End of stack trace \ No newline at end of file