Add water node sounds
This commit is contained in:
parent
58da52a9c9
commit
fd8248c908
@ -122,7 +122,7 @@ All levels by Wuzzy.
|
||||
- `lzr_laser_barricade_break.ogg`:
|
||||
- By kevinkace <https://freesound.org/people/kevinkace/sounds/66780/>
|
||||
- License: CC0
|
||||
- `lzr_sounds_footstep_stone.*.ogg`, `default_dirt_footstep.*.ogg`, `lzr_sounds_footstep_leaves.*.ogg`, `lzr_sounds_dug_grass.*.ogg`:
|
||||
- `lzr_sounds_footstep_stone.*.ogg`, `default_dirt_footstep.*.ogg`, `lzr_sounds_footstep_leaves.*.ogg`, `lzr_sounds_dug_grass.*.ogg`, `lzr_sounds_dug_water.*.ogg`, `lzr_sounds_footstep_water.*.ogg`, `lzr_sounds_place_water.*.ogg`:
|
||||
- by Wuzzy
|
||||
- License: MIT
|
||||
- `lzr_protection_inventory_full.ogg`:
|
||||
|
@ -225,6 +225,7 @@ minetest.register_node("lzr_core:water_source", {
|
||||
liquids_pointable = true,
|
||||
post_effect_color = {a = 128, r = 17, g = 69, b = 135},
|
||||
groups = {water = 3, liquid = 3},
|
||||
sounds = lzr_sounds.node_sound_water_defaults(),
|
||||
})
|
||||
|
||||
-- Mostly the same as lzr_core:water_source except it waves.
|
||||
@ -271,6 +272,7 @@ minetest.register_node("lzr_core:ocean_water_source", {
|
||||
-- More opaque than the normal water
|
||||
post_effect_color = {a = 192, r = 17, g = 69, b = 135},
|
||||
groups = {water = 3, liquid = 3, laser_incompatible = 1, not_in_creative_inventory = 1},
|
||||
sounds = lzr_sounds.node_sound_water_defaults(),
|
||||
})
|
||||
|
||||
-- For invisible level borders
|
||||
|
@ -99,3 +99,16 @@ function lzr_sounds.node_sound_metal_defaults(table)
|
||||
lzr_sounds.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function lzr_sounds.node_sound_water_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name = "lzr_sounds_footstep_water", gain = 1.0}
|
||||
table.dug = table.dug or
|
||||
{name = "lzr_sounds_dug_water", gain = 0.9}
|
||||
table.place = table.place or
|
||||
{name = "lzr_sounds_place_water", gain = 0.3}
|
||||
lzr_sounds.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
|
BIN
mods/lzr_sounds/sounds/lzr_sounds_dug_water.1.ogg
Normal file
BIN
mods/lzr_sounds/sounds/lzr_sounds_dug_water.1.ogg
Normal file
Binary file not shown.
BIN
mods/lzr_sounds/sounds/lzr_sounds_dug_water.2.ogg
Normal file
BIN
mods/lzr_sounds/sounds/lzr_sounds_dug_water.2.ogg
Normal file
Binary file not shown.
BIN
mods/lzr_sounds/sounds/lzr_sounds_footstep_water.1.ogg
Normal file
BIN
mods/lzr_sounds/sounds/lzr_sounds_footstep_water.1.ogg
Normal file
Binary file not shown.
BIN
mods/lzr_sounds/sounds/lzr_sounds_footstep_water.2.ogg
Normal file
BIN
mods/lzr_sounds/sounds/lzr_sounds_footstep_water.2.ogg
Normal file
Binary file not shown.
BIN
mods/lzr_sounds/sounds/lzr_sounds_footstep_water.3.ogg
Normal file
BIN
mods/lzr_sounds/sounds/lzr_sounds_footstep_water.3.ogg
Normal file
Binary file not shown.
BIN
mods/lzr_sounds/sounds/lzr_sounds_place_water.1.ogg
Normal file
BIN
mods/lzr_sounds/sounds/lzr_sounds_place_water.1.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user