From: paramat Date: Thu, 17 Nov 2016 02:41:38 +0000 (+0000) Subject: Default: Add water footstep sounds X-Git-Tag: 0.4.15~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec95f470215a5547d62aa7f4d23c9a19a47d2119;p=oweals%2Fminetest_game.git Default: Add water footstep sounds Plus one silent sound to break repetition 'default_water_footstep.4.ogg'. --- diff --git a/mods/default/README.txt b/mods/default/README.txt index 84213368..c76cf7c3 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -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) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 4008547e..175365b2 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -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 -- diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index e514a48f..1dfc6644 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -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 index 00000000..63b9744c 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 index 00000000..8d79c1f4 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 index 00000000..f8891506 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 index 00000000..6f1eab82 Binary files /dev/null and b/mods/default/sounds/default_water_footstep.4.ogg differ