mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2024-12-24 01:30:30 +01:00
updated to newer 0.4.16 functions
This commit is contained in:
parent
2151789ce0
commit
f5460312e9
@ -12,5 +12,6 @@ Based on Immersive Sounds .36 mod by Neuromancer and optimized to run on servers
|
|||||||
- 0.8 - Override default water sounds for 0.4.14 dev and above, add separate gain for each sound
|
- 0.8 - Override default water sounds for 0.4.14 dev and above, add separate gain for each sound
|
||||||
- 0.9 - Plays music files on server or local client when found at midnight, files to be named "ambience_music.1.ogg" changing number each up to 9.
|
- 0.9 - Plays music files on server or local client when found at midnight, files to be named "ambience_music.1.ogg" changing number each up to 9.
|
||||||
- 1.0 - Added icecrack sound when walking on snow/ice flows, also tidied code
|
- 1.0 - Added icecrack sound when walking on snow/ice flows, also tidied code
|
||||||
|
- 1.1 - Using newer functions, Minetest 0.4.16 and above needed to run
|
||||||
|
|
||||||
Code license: MIT
|
Code license: MIT
|
||||||
|
4
init.lua
4
init.lua
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
--= Ambience lite by TenPlus1 (20th September 2017)
|
--= Ambience lite by TenPlus1
|
||||||
|
|
||||||
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
|
local max_frequency_all = 1000 -- larger number means more frequent sounds (100-2000)
|
||||||
local SOUNDVOLUME = 1.0
|
local SOUNDVOLUME = 1.0
|
||||||
@ -14,7 +14,7 @@ minetest.override_item("default:river_water_flowing", { sounds = {} })
|
|||||||
-- music settings
|
-- music settings
|
||||||
local music_handler = nil
|
local music_handler = nil
|
||||||
local MUSICVOLUME = 1
|
local MUSICVOLUME = 1
|
||||||
local play_music = minetest.setting_getbool("ambience_music") ~= false
|
local play_music = minetest.settings:get_bool("ambience_music") ~= false
|
||||||
|
|
||||||
-- sound sets (gain defaults to 0.3 unless specifically set)
|
-- sound sets (gain defaults to 0.3 unless specifically set)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user