mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 22:22:25 +01:00
Balance sounds, remove silent water footstep
This commit is contained in:
parent
760581b330
commit
0c1252bcf5
@ -299,7 +299,6 @@ https://www.freesound.org/people/AGFX/packs/1253/
|
|||||||
default_water_footstep.1.ogg
|
default_water_footstep.1.ogg
|
||||||
default_water_footstep.2.ogg
|
default_water_footstep.2.ogg
|
||||||
default_water_footstep.3.ogg
|
default_water_footstep.3.ogg
|
||||||
(default_water_footstep.4.ogg is silent)
|
|
||||||
|
|
||||||
blukotek (CC0 1.0):
|
blukotek (CC0 1.0):
|
||||||
https://www.freesound.org/people/blukotek/sounds/251660/
|
https://www.freesound.org/people/blukotek/sounds/251660/
|
||||||
|
@ -16,7 +16,7 @@ end
|
|||||||
function default.node_sound_stone_defaults(table)
|
function default.node_sound_stone_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name = "default_hard_footstep", gain = 0.3}
|
{name = "default_hard_footstep", gain = 0.2}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name = "default_hard_footstep", gain = 1.0}
|
{name = "default_hard_footstep", gain = 1.0}
|
||||||
default.node_sound_defaults(table)
|
default.node_sound_defaults(table)
|
||||||
@ -26,7 +26,9 @@ end
|
|||||||
function default.node_sound_dirt_defaults(table)
|
function default.node_sound_dirt_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name = "default_dirt_footstep", gain = 0.4}
|
{name = "default_dirt_footstep", gain = 0.25}
|
||||||
|
table.dig = table.dig or
|
||||||
|
{name = "default_dig_crumbly", gain = 0.4}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name = "default_dirt_footstep", gain = 1.0}
|
{name = "default_dirt_footstep", gain = 1.0}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
@ -50,7 +52,7 @@ end
|
|||||||
function default.node_sound_gravel_defaults(table)
|
function default.node_sound_gravel_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name = "default_gravel_footstep", gain = 0.1}
|
{name = "default_gravel_footstep", gain = 0.25}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name = "default_gravel_dig", gain = 0.35}
|
{name = "default_gravel_dig", gain = 0.35}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
@ -64,7 +66,9 @@ end
|
|||||||
function default.node_sound_wood_defaults(table)
|
function default.node_sound_wood_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name = "default_wood_footstep", gain = 0.3}
|
{name = "default_wood_footstep", gain = 0.15}
|
||||||
|
table.dig = table.dig or
|
||||||
|
{name = "default_dig_choppy", gain = 0.4}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name = "default_wood_footstep", gain = 1.0}
|
{name = "default_wood_footstep", gain = 1.0}
|
||||||
default.node_sound_defaults(table)
|
default.node_sound_defaults(table)
|
||||||
@ -98,7 +102,7 @@ end
|
|||||||
function default.node_sound_ice_defaults(table)
|
function default.node_sound_ice_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name = "default_ice_footstep", gain = 0.3}
|
{name = "default_ice_footstep", gain = 0.15}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name = "default_ice_dig", gain = 0.5}
|
{name = "default_ice_dig", gain = 0.5}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
@ -110,7 +114,7 @@ end
|
|||||||
function default.node_sound_metal_defaults(table)
|
function default.node_sound_metal_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name = "default_metal_footstep", gain = 0.4}
|
{name = "default_metal_footstep", gain = 0.2}
|
||||||
table.dig = table.dig or
|
table.dig = table.dig or
|
||||||
{name = "default_dig_metal", gain = 0.5}
|
{name = "default_dig_metal", gain = 0.5}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
@ -155,7 +159,7 @@ default.cool_lava = function(pos, node)
|
|||||||
minetest.set_node(pos, {name = "default:stone"})
|
minetest.set_node(pos, {name = "default:stone"})
|
||||||
end
|
end
|
||||||
minetest.sound_play("default_cool_lava",
|
minetest.sound_play("default_cool_lava",
|
||||||
{pos = pos, max_hear_distance = 16, gain = 0.25}, true)
|
{pos = pos, max_hear_distance = 16, gain = 0.2}, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.settings:get_bool("enable_lavacooling") ~= false then
|
if minetest.settings:get_bool("enable_lavacooling") ~= false then
|
||||||
|
@ -159,7 +159,7 @@ local function furnace_node_timer(pos, elapsed)
|
|||||||
end
|
end
|
||||||
-- Play cooling sound
|
-- Play cooling sound
|
||||||
minetest.sound_play("default_cool_lava",
|
minetest.sound_play("default_cool_lava",
|
||||||
{pos = pos, max_hear_distance = 16, gain = 0.1}, true)
|
{pos = pos, max_hear_distance = 16, gain = 0.07}, true)
|
||||||
else
|
else
|
||||||
-- Item could not be cooked: probably missing fuel
|
-- Item could not be cooked: probably missing fuel
|
||||||
update = true
|
update = true
|
||||||
@ -252,9 +252,9 @@ local function furnace_node_timer(pos, elapsed)
|
|||||||
result = true
|
result = true
|
||||||
|
|
||||||
-- Play sound every 5 seconds while the furnace is active
|
-- Play sound every 5 seconds while the furnace is active
|
||||||
if timer_elapsed == 0 or (timer_elapsed+1) % 5 == 0 then
|
if timer_elapsed == 0 or (timer_elapsed + 1) % 5 == 0 then
|
||||||
minetest.sound_play("default_furnace_active",
|
minetest.sound_play("default_furnace_active",
|
||||||
{pos = pos, max_hear_distance = 16, gain = 0.5}, true)
|
{pos = pos, max_hear_distance = 16, gain = 0.25}, true)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if fuellist and not fuellist[1]:is_empty() then
|
if fuellist and not fuellist[1]:is_empty() then
|
||||||
|
@ -19,6 +19,7 @@ local item = {
|
|||||||
self.object:remove()
|
self.object:remove()
|
||||||
minetest.sound_play("default_item_smoke", {
|
minetest.sound_play("default_item_smoke", {
|
||||||
pos = p,
|
pos = p,
|
||||||
|
gain = 1.0,
|
||||||
max_hear_distance = 8,
|
max_hear_distance = 8,
|
||||||
}, true)
|
}, true)
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
|
Binary file not shown.
@ -11,7 +11,7 @@ local function on_flood(pos, oldnode, newnode)
|
|||||||
nodedef.groups.igniter and nodedef.groups.igniter > 0) then
|
nodedef.groups.igniter and nodedef.groups.igniter > 0) then
|
||||||
minetest.sound_play(
|
minetest.sound_play(
|
||||||
"default_cool_lava",
|
"default_cool_lava",
|
||||||
{pos = pos, max_hear_distance = 16, gain = 0.1},
|
{pos = pos, max_hear_distance = 16, gain = 0.07},
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
@ -60,7 +60,7 @@ farming.hoe_on_use = function(itemstack, user, pointed_thing, uses)
|
|||||||
minetest.set_node(pt.under, {name = regN[under.name].soil.dry})
|
minetest.set_node(pt.under, {name = regN[under.name].soil.dry})
|
||||||
minetest.sound_play("default_dig_crumbly", {
|
minetest.sound_play("default_dig_crumbly", {
|
||||||
pos = pt.under,
|
pos = pt.under,
|
||||||
gain = 0.5,
|
gain = 0.3,
|
||||||
}, true)
|
}, true)
|
||||||
|
|
||||||
if not minetest.is_creative_enabled(player_name) then
|
if not minetest.is_creative_enabled(player_name) then
|
||||||
|
@ -92,7 +92,7 @@ minetest.register_tool("fire:flint_and_steel", {
|
|||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
local sound_pos = pointed_thing.above or user:get_pos()
|
local sound_pos = pointed_thing.above or user:get_pos()
|
||||||
minetest.sound_play("fire_flint_and_steel",
|
minetest.sound_play("fire_flint_and_steel",
|
||||||
{pos = sound_pos, gain = 0.5, max_hear_distance = 8}, true)
|
{pos = sound_pos, gain = 0.2, max_hear_distance = 8}, true)
|
||||||
local player_name = user:get_player_name()
|
local player_name = user:get_player_name()
|
||||||
if pointed_thing.type == "node" then
|
if pointed_thing.type == "node" then
|
||||||
local node_under = minetest.get_node(pointed_thing.under).name
|
local node_under = minetest.get_node(pointed_thing.under).name
|
||||||
|
@ -279,7 +279,7 @@ function tnt.burn(pos, nodename)
|
|||||||
def.on_ignite(pos)
|
def.on_ignite(pos)
|
||||||
elseif minetest.get_item_group(name, "tnt") > 0 then
|
elseif minetest.get_item_group(name, "tnt") > 0 then
|
||||||
minetest.swap_node(pos, {name = name .. "_burning"})
|
minetest.swap_node(pos, {name = name .. "_burning"})
|
||||||
minetest.sound_play("tnt_ignite", {pos = pos}, true)
|
minetest.sound_play("tnt_ignite", {pos = pos, gain = 1.0}, true)
|
||||||
minetest.get_node_timer(pos):start(1)
|
minetest.get_node_timer(pos):start(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -555,7 +555,7 @@ minetest.register_node("tnt:gunpowder_burning", {
|
|||||||
on_blast = function() end,
|
on_blast = function() end,
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
minetest.sound_play("tnt_gunpowder_burning", {pos = pos,
|
minetest.sound_play("tnt_gunpowder_burning", {pos = pos,
|
||||||
gain = 2}, true)
|
gain = 1.0}, true)
|
||||||
minetest.get_node_timer(pos):start(1)
|
minetest.get_node_timer(pos):start(1)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user