Use louder footstep sound as dug_node
authorPilzAdam <pilzadam@minetest.net>
Thu, 13 Jun 2013 14:30:33 +0000 (14:30 +0000)
committerPilzAdam <pilzadam@minetest.net>
Thu, 13 Jun 2013 14:36:11 +0000 (14:36 +0000)
mods/bones/init.lua
mods/default/functions.lua
mods/default/nodes.lua

index ccce8c9e4a11a13536d1ee954b09e44d8aac81aa..72849c43aa36ab32692536fb8835c74068a32a80 100644 (file)
@@ -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)
index 331b53215cec8276f273c3acd7fce2a1ecfea6f3..b0db8b222227c9db3011fbba38d98c87501f8175 100644 (file)
@@ -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)
index 148836ddb724f61dcbf67e2ad275357af7418474..b74f81800645ccad14ae4db7403aee6147b2e614 100644 (file)
@@ -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},
        }),
 })