tuned down sounds a bit and changed water sound logic

This commit is contained in:
kaadmy 2015-09-30 16:14:19 -07:00
parent e4d52ba2ce
commit 0f3adb7db8
2 changed files with 3 additions and 3 deletions

View File

@ -306,7 +306,7 @@ if minetest.setting_getbool("flowing_water_sounds") then
{
nodenames = {"group:flowing_water"},
interval = 1,
chance = 12,
chance = 16,
action = function(pos, node)
minetest.sound_play(
"default_water",

View File

@ -12,7 +12,7 @@ local function step(dtime)
"default_hurt",
{
pos = player_pos,
max_hear_distance = 8,
max_hear_distance = 4,
})
end
player_health[name] = player:get_hp()
@ -27,7 +27,7 @@ local function step(dtime)
player_lastsound[name] = player_lastsound[name] + dtime
if nodename == "default:water_source" or nodename == "default:water_flowing" then
if nodename == "default:water_source" or nodename == "default:river_water_source" then
if player_lastsound[name] > 3.3 then
player_soundspec[name]=minetest.sound_play(
"default_water",