add 5.x snow sounds for 0.4.x client

This commit is contained in:
tenplus1 2022-03-01 09:54:13 +00:00
parent 688a9386aa
commit c3a5af6c45

View File

@ -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",