Skip to content

Commit ec95f47

Browse files
committedNov 21, 2016
Default: Add water footstep sounds
Plus one silent sound to break repetition 'default_water_footstep.4.ogg'.
1 parent 1e691c4 commit ec95f47

7 files changed

+20
-0
lines changed
 

Diff for: ‎mods/default/README.txt

+8
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,11 @@ Metal sounds:
249249

250250
Tool breaking sounds added by sofar: CC-BY-3.0
251251
default_tool_breaks.* - http://www.freesound.org/people/HerbertBoland/sounds/33206/
252+
253+
AGFX
254+
https://www.freesound.org/people/AGFX/
255+
(CC BY 3.0):
256+
default_water_footstep.1.ogg
257+
default_water_footstep.2.ogg
258+
default_water_footstep.3.ogg
259+
(default_water_footstep.4.ogg is silent)

Diff for: ‎mods/default/functions.lua

+8
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ function default.node_sound_metal_defaults(table)
109109
return table
110110
end
111111

112+
function default.node_sound_water_defaults(table)
113+
table = table or {}
114+
table.footstep = table.footstep or
115+
{name = "default_water_footstep", gain = 0.2}
116+
default.node_sound_defaults(table)
117+
return table
118+
end
119+
112120
--
113121
-- Lavacooling
114122
--

Diff for: ‎mods/default/nodes.lua

+4
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,7 @@ minetest.register_node("default:water_source", {
13501350
liquid_viscosity = 1,
13511351
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
13521352
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
1353+
sounds = default.node_sound_water_defaults(),
13531354
})
13541355

13551356
minetest.register_node("default:water_flowing", {
@@ -1395,6 +1396,7 @@ minetest.register_node("default:water_flowing", {
13951396
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
13961397
groups = {water = 3, liquid = 3, puts_out_fire = 1,
13971398
not_in_creative_inventory = 1, cools_lava = 1},
1399+
sounds = default.node_sound_water_defaults(),
13981400
})
13991401

14001402

@@ -1441,6 +1443,7 @@ minetest.register_node("default:river_water_source", {
14411443
liquid_range = 2,
14421444
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
14431445
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
1446+
sounds = default.node_sound_water_defaults(),
14441447
})
14451448

14461449
minetest.register_node("default:river_water_flowing", {
@@ -1488,6 +1491,7 @@ minetest.register_node("default:river_water_flowing", {
14881491
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
14891492
groups = {water = 3, liquid = 3, puts_out_fire = 1,
14901493
not_in_creative_inventory = 1, cools_lava = 1},
1494+
sounds = default.node_sound_water_defaults(),
14911495
})
14921496

14931497

Diff for: ‎mods/default/sounds/default_water_footstep.1.ogg

31 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_water_footstep.2.ogg

28.6 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_water_footstep.3.ogg

31.4 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_water_footstep.4.ogg

3.88 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.