Add water sounds and make water movement harder

This commit is contained in:
KaadmY 2017-05-18 14:09:05 -07:00
parent a8601de924
commit af33315061
6 changed files with 16 additions and 2 deletions

View File

@ -16,8 +16,8 @@ movement_speed_climb = 2.4
movement_speed_descend = 3.8 movement_speed_descend = 3.8
movement_speed_jump = 6.9 movement_speed_jump = 6.9
movement_liquid_fluidity = 0.8 movement_liquid_fluidity = 0.75
movement_liquid_sink = 30.0 movement_liquid_sink = 40.0
movement_gravity = 9.8 movement_gravity = 9.8

View File

@ -941,6 +941,7 @@ minetest.register_node(
liquid_viscosity = default.WATER_VISC, liquid_viscosity = default.WATER_VISC,
post_effect_color = {a = 90, r = 40, g = 40, b = 100}, post_effect_color = {a = 90, r = 40, g = 40, b = 100},
groups = {water = 1, flowing_water = 1, liquid = 1}, groups = {water = 1, flowing_water = 1, liquid = 1},
sounds = default.node_sound_liquid_defaults(),
is_ground_content = false, is_ground_content = false,
}) })
@ -970,6 +971,7 @@ minetest.register_node(
liquid_viscosity = default.WATER_VISC, liquid_viscosity = default.WATER_VISC,
post_effect_color = {a=90, r=40, g=40, b=100}, post_effect_color = {a=90, r=40, g=40, b=100},
groups = {water=1, liquid=1}, groups = {water=1, liquid=1},
sounds = default.node_sound_liquid_defaults(),
is_ground_content = false, is_ground_content = false,
}) })
@ -1007,6 +1009,7 @@ minetest.register_node(
liquid_range = 1, liquid_range = 1,
post_effect_color = {a=40, r=40, g=70, b=100}, post_effect_color = {a=40, r=40, g=70, b=100},
groups = {water=1, flowing_water = 1, river_water = 1, liquid=1}, groups = {water=1, flowing_water = 1, river_water = 1, liquid=1},
sounds = default.node_sound_liquid_defaults(),
is_ground_content = false, is_ground_content = false,
}) })
@ -1038,6 +1041,7 @@ minetest.register_node(
liquid_range = 1, liquid_range = 1,
post_effect_color = {a=40, r=40, g=70, b=100}, post_effect_color = {a=40, r=40, g=70, b=100},
groups = {water = 1, river_water = 1, liquid = 1}, groups = {water = 1, river_water = 1, liquid = 1},
sounds = default.node_sound_liquid_defaults(),
is_ground_content = false, is_ground_content = false,
}) })
@ -1075,6 +1079,7 @@ minetest.register_node(
liquid_range = 2, liquid_range = 2,
post_effect_color = {a=220, r=50, g=40, b=70}, post_effect_color = {a=220, r=50, g=40, b=70},
groups = {water=1, flowing_water = 1, swamp_water = 1, liquid=1}, groups = {water=1, flowing_water = 1, swamp_water = 1, liquid=1},
sounds = default.node_sound_liquid_defaults(),
is_ground_content = false, is_ground_content = false,
}) })
@ -1106,6 +1111,7 @@ minetest.register_node(
liquid_range = 2, liquid_range = 2,
post_effect_color = {a=220, r=50, g=40, b=70}, post_effect_color = {a=220, r=50, g=40, b=70},
groups = {water = 1, swamp_water = 1, liquid = 1}, groups = {water = 1, swamp_water = 1, liquid = 1},
sounds = default.node_sound_liquid_defaults(),
is_ground_content = false, is_ground_content = false,
}) })

View File

@ -104,3 +104,11 @@ function default.node_sound_snow_defaults(table)
default.node_sound_defaults(table) default.node_sound_defaults(table)
return table return table
end end
function default.node_sound_liquid_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="default_liquid_footstep", gain=1.0}
default.node_sound_defaults(table)
return table
end

Binary file not shown.

Binary file not shown.

Binary file not shown.