From c3a5af6c452daca599d226df694df1b75f15c110 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 1 Mar 2022 09:54:13 +0000 Subject: [PATCH] add 5.x snow sounds for 0.4.x client --- init.lua | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 4459d07..14cdf6c 100644 --- a/init.lua +++ b/init.lua @@ -4,16 +4,28 @@ function default.node_sound_wool_defaults(table) table = table or {} - table.footstep = table.footstep or - {name = "wool_coat_movement", gain = 1.0} - table.dug = table.dug or - {name = "wool_coat_movement", gain = 0.25} - table.place = table.place or - {name = "default_place_node", gain = 1.0} + table.footstep = table.footstep or {name = "wool_coat_movement", gain = 1.0} + table.dug = table.dug or {name = "wool_coat_movement", gain = 0.25} + table.place = table.place or {name = "default_place_node", gain = 1.0} return table end +-- add new 5.x snow sounds to 0.4.x client +if not minetest.has_feature("object_use_texture_alpha") then + + function default.node_sound_snow_defaults(table) + + table = table or {} + + table.footstep = table.footstep or {name = "default_snow_footstep", gain = 0.1} + table.dug = table.dug or {name = "default_snow_footstep", gain = 0.3} + table.place = table.place or {name = "default_place_node", gain = 1.0} + + return table + end +end + stairs = { mod = "redo",