From 179f4c3f91f95ef988dfa9103432783ddd1d245e Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Thu, 13 Jun 2013 14:30:33 +0000 Subject: [PATCH] Use louder footstep sound as dug_node --- mods/bones/init.lua | 1 + mods/default/functions.lua | 12 +++++++++--- mods/default/nodes.lua | 3 +++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/mods/bones/init.lua b/mods/bones/init.lua index ccce8c9e..72849c43 100644 --- a/mods/bones/init.lua +++ b/mods/bones/init.lua @@ -23,6 +23,7 @@ minetest.register_node("bones:bones", { groups = {dig_immediate=2}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_gravel_footstep", gain=0.5}, + dug = {name="default_gravel_footstep", gain=1.0}, }), can_dig = function(pos, player) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 331b5321..b0db8b22 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -19,6 +19,8 @@ function default.node_sound_stone_defaults(table) table = table or {} table.footstep = table.footstep or {name="default_hard_footstep", gain=0.5} + table.dug = table.dug or + {name="default_hard_footstep", gain=1.0} default.node_sound_defaults(table) return table end @@ -27,6 +29,8 @@ function default.node_sound_dirt_defaults(table) table = table or {} table.footstep = table.footstep or {name="default_dirt_footstep", gain=1.0} + table.dug = table.dug or + {name="default_dirt_footstep", gain=1.5} table.place = table.place or {name="default_place_node", gain=1.0} default.node_sound_defaults(table) @@ -38,7 +42,7 @@ function default.node_sound_sand_defaults(table) table.footstep = table.footstep or {name="default_sand_footstep", gain=0.5} table.dug = table.dug or - {name="", gain=1.0} + {name="default_sand_footstep", gain=1.0} table.place = table.place or {name="default_place_node", gain=1.0} default.node_sound_defaults(table) @@ -49,6 +53,8 @@ function default.node_sound_wood_defaults(table) table = table or {} table.footstep = table.footstep or {name="default_wood_footstep", gain=0.5} + table.dug = table.dug or + {name="default_wood_footstep", gain=1.0} default.node_sound_defaults(table) return table end @@ -57,10 +63,10 @@ function default.node_sound_leaves_defaults(table) table = table or {} table.footstep = table.footstep or {name="default_grass_footstep", gain=0.35} + table.dug = table.dug or + {name="default_grass_footstep", gain=0.85} table.dig = table.dig or {name="default_dig_crumbly", gain=0.4} - table.dug = table.dug or - {name="", gain=1.0} table.place = table.place or {name="default_place_node", gain=1.0} default.node_sound_defaults(table) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 148836dd..b74f8180 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -153,6 +153,7 @@ minetest.register_node("default:gravel", { groups = {crumbly=2, falling_node=1}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_gravel_footstep", gain=0.5}, + dug = {name="default_gravel_footstep", gain=1.0}, }), }) @@ -1292,6 +1293,7 @@ minetest.register_node("default:snow", { groups = {crumbly=3,falling_node=1}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_snow_footstep", gain=0.25}, + dug = {name="default_snow_footstep", gain=0.75}, }), on_construct = function(pos) pos.y = pos.y - 1 @@ -1309,5 +1311,6 @@ minetest.register_node("default:snowblock", { groups = {crumbly=3}, sounds = default.node_sound_dirt_defaults({ footstep = {name="default_snow_footstep", gain=0.25}, + dug = {name="default_snow_footstep", gain=0.75}, }), })