Default: Add water footstep sounds
authorparamat <mat.gregory@virginmedia.com>
Thu, 17 Nov 2016 02:41:38 +0000 (02:41 +0000)
committerparamat <mat.gregory@virginmedia.com>
Mon, 21 Nov 2016 03:19:37 +0000 (03:19 +0000)
Plus one silent sound to break repetition 'default_water_footstep.4.ogg'.

mods/default/README.txt
mods/default/functions.lua
mods/default/nodes.lua
mods/default/sounds/default_water_footstep.1.ogg [new file with mode: 0644]
mods/default/sounds/default_water_footstep.2.ogg [new file with mode: 0644]
mods/default/sounds/default_water_footstep.3.ogg [new file with mode: 0644]
mods/default/sounds/default_water_footstep.4.ogg [new file with mode: 0644]

index 842133689f79d780fcee41c0eb8a72b08bbc059b..c76cf7c3d2381a7d43bcdba968e2fa1060d8d14c 100644 (file)
@@ -249,3 +249,11 @@ Metal sounds:
 
 Tool breaking sounds added by sofar: CC-BY-3.0
   default_tool_breaks.* - http://www.freesound.org/people/HerbertBoland/sounds/33206/
+
+AGFX
+https://www.freesound.org/people/AGFX/
+(CC BY 3.0):
+  default_water_footstep.1.ogg
+  default_water_footstep.2.ogg
+  default_water_footstep.3.ogg
+(default_water_footstep.4.ogg is silent)
index 4008547e32c5cd0bd9e41e8a13c5d166379f59e7..175365b2043904a5e22972e5bb7bf8efb4c794fe 100644 (file)
@@ -109,6 +109,14 @@ function default.node_sound_metal_defaults(table)
        return table
 end
 
+function default.node_sound_water_defaults(table)
+       table = table or {}
+       table.footstep = table.footstep or
+                       {name = "default_water_footstep", gain = 0.2}
+       default.node_sound_defaults(table)
+       return table
+end
+
 --
 -- Lavacooling
 --
index e514a48fc11f1a9b2783f6a2527554e706801b77..1dfc6644acc2cd6d622c0f8baab16ebf959902c2 100644 (file)
@@ -1350,6 +1350,7 @@ minetest.register_node("default:water_source", {
        liquid_viscosity = 1,
        post_effect_color = {a = 103, r = 30, g = 60, b = 90},
        groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
+       sounds = default.node_sound_water_defaults(),
 })
 
 minetest.register_node("default:water_flowing", {
@@ -1395,6 +1396,7 @@ minetest.register_node("default:water_flowing", {
        post_effect_color = {a = 103, r = 30, g = 60, b = 90},
        groups = {water = 3, liquid = 3, puts_out_fire = 1,
                not_in_creative_inventory = 1, cools_lava = 1},
+       sounds = default.node_sound_water_defaults(),
 })
 
 
@@ -1441,6 +1443,7 @@ minetest.register_node("default:river_water_source", {
        liquid_range = 2,
        post_effect_color = {a = 103, r = 30, g = 76, b = 90},
        groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
+       sounds = default.node_sound_water_defaults(),
 })
 
 minetest.register_node("default:river_water_flowing", {
@@ -1488,6 +1491,7 @@ minetest.register_node("default:river_water_flowing", {
        post_effect_color = {a = 103, r = 30, g = 76, b = 90},
        groups = {water = 3, liquid = 3, puts_out_fire = 1,
                not_in_creative_inventory = 1, cools_lava = 1},
+       sounds = default.node_sound_water_defaults(),
 })
 
 
diff --git a/mods/default/sounds/default_water_footstep.1.ogg b/mods/default/sounds/default_water_footstep.1.ogg
new file mode 100644 (file)
index 0000000..63b9744
Binary files /dev/null and b/mods/default/sounds/default_water_footstep.1.ogg differ
diff --git a/mods/default/sounds/default_water_footstep.2.ogg b/mods/default/sounds/default_water_footstep.2.ogg
new file mode 100644 (file)
index 0000000..8d79c1f
Binary files /dev/null and b/mods/default/sounds/default_water_footstep.2.ogg differ
diff --git a/mods/default/sounds/default_water_footstep.3.ogg b/mods/default/sounds/default_water_footstep.3.ogg
new file mode 100644 (file)
index 0000000..f889150
Binary files /dev/null and b/mods/default/sounds/default_water_footstep.3.ogg differ
diff --git a/mods/default/sounds/default_water_footstep.4.ogg b/mods/default/sounds/default_water_footstep.4.ogg
new file mode 100644 (file)
index 0000000..6f1eab8
Binary files /dev/null and b/mods/default/sounds/default_water_footstep.4.ogg differ