Sounds: Edit some sound gains, mostly footsteps
authorparamat <mat.gregory@virginmedia.com>
Thu, 15 Dec 2016 08:13:36 +0000 (08:13 +0000)
committerparamat <mat.gregory@virginmedia.com>
Sat, 17 Dec 2016 20:02:40 +0000 (20:02 +0000)
I recently made glass footstep and dig gains too low, raise slightly.
Change dirt dug gain from above-maximum 1.5 to maximum 1.0.
Reduce gain of footsteps: stone, dirt, gravel, wood, metal
Raise gain of leaves footstep.

mods/default/functions.lua

index a8e3355f61d32fee8133df98be53dbe701ce4bde..3bda4bf036f487d09bf73b845ad50442aa0c2638 100644 (file)
@@ -18,7 +18,7 @@ end
 function default.node_sound_stone_defaults(table)
        table = table or {}
        table.footstep = table.footstep or
-                       {name = "default_hard_footstep", gain = 0.5}
+                       {name = "default_hard_footstep", gain = 0.3}
        table.dug = table.dug or
                        {name = "default_hard_footstep", gain = 1.0}
        default.node_sound_defaults(table)
@@ -28,9 +28,9 @@ end
 function default.node_sound_dirt_defaults(table)
        table = table or {}
        table.footstep = table.footstep or
-                       {name = "default_dirt_footstep", gain = 1.0}
+                       {name = "default_dirt_footstep", gain = 0.4}
        table.dug = table.dug or
-                       {name = "default_dirt_footstep", gain = 1.5}
+                       {name = "default_dirt_footstep", gain = 1.0}
        table.place = table.place or
                        {name = "default_place_node", gain = 1.0}
        default.node_sound_defaults(table)
@@ -52,7 +52,7 @@ end
 function default.node_sound_gravel_defaults(table)
        table = table or {}
        table.footstep = table.footstep or
-                       {name = "default_gravel_footstep", gain = 0.5}
+                       {name = "default_gravel_footstep", gain = 0.4}
        table.dug = table.dug or
                        {name = "default_gravel_footstep", gain = 1.0}
        table.place = table.place or
@@ -64,7 +64,7 @@ end
 function default.node_sound_wood_defaults(table)
        table = table or {}
        table.footstep = table.footstep or
-                       {name = "default_wood_footstep", gain = 0.5}
+                       {name = "default_wood_footstep", gain = 0.3}
        table.dug = table.dug or
                        {name = "default_wood_footstep", gain = 1.0}
        default.node_sound_defaults(table)
@@ -74,7 +74,7 @@ end
 function default.node_sound_leaves_defaults(table)
        table = table or {}
        table.footstep = table.footstep or
-                       {name = "default_grass_footstep", gain = 0.35}
+                       {name = "default_grass_footstep", gain = 0.45}
        table.dug = table.dug or
                        {name = "default_grass_footstep", gain = 0.7}
        table.dig = table.dig or
@@ -88,9 +88,9 @@ end
 function default.node_sound_glass_defaults(table)
        table = table or {}
        table.footstep = table.footstep or
-                       {name = "default_glass_footstep", gain = 0.25}
+                       {name = "default_glass_footstep", gain = 0.3}
        table.dig = table.dig or
-                       {name = "default_glass_footstep", gain = 0.45}
+                       {name = "default_glass_footstep", gain = 0.5}
        table.dug = table.dug or
                        {name = "default_break_glass", gain = 1.0}
        default.node_sound_defaults(table)
@@ -100,7 +100,7 @@ end
 function default.node_sound_metal_defaults(table)
        table = table or {}
        table.footstep = table.footstep or
-                       {name = "default_metal_footstep", gain = 0.5}
+                       {name = "default_metal_footstep", gain = 0.4}
        table.dig = table.dig or
                        {name = "default_dig_metal", gain = 0.5}
        table.dug = table.dug or