Add new dirt and stone footstep sounds
parent
03615a2ca5
commit
a6862a2280
|
@ -84,6 +84,9 @@ Sounds:
|
||||||
- by Fourier <https://opengameart.org/content/forward-button-press-ui-sound>
|
- by Fourier <https://opengameart.org/content/forward-button-press-ui-sound>
|
||||||
- Edit by Wuzzy (shortened)
|
- Edit by Wuzzy (shortened)
|
||||||
- License: CC BY 3.0
|
- License: CC BY 3.0
|
||||||
|
- `lzr_sounds_footstep_stone.*.ogg`, `lzr_sounds_footstep_dirt.*.png`
|
||||||
|
- by Wuzzy
|
||||||
|
- License: MIT License
|
||||||
- All other sounds come from Minetest Game (see license of Minetest Game 5.4.1 for details)
|
- All other sounds come from Minetest Game (see license of Minetest Game 5.4.1 for details)
|
||||||
|
|
||||||
Code:
|
Code:
|
||||||
|
|
|
@ -14,22 +14,20 @@ end
|
||||||
function lzr_sounds.node_sound_stone_defaults(table)
|
function lzr_sounds.node_sound_stone_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name = "default_hard_footstep", gain = 0.3}
|
{name = "lzr_sounds_footstep_stone", gain = 0.9}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name = "default_hard_footstep", gain = 1.0}
|
{name = "lzr_sounds_footstep_stone", gain = 1.0}
|
||||||
lzr_sounds.node_sound_defaults(table)
|
lzr_sounds.node_sound_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO: sand
|
|
||||||
lzr_sounds.node_sound_sand_defaults = lzr_sounds.node_sound_defaults
|
|
||||||
-- TODO: leaves
|
-- TODO: leaves
|
||||||
lzr_sounds.node_sound_leaves_defaults = lzr_sounds.node_sound_defaults
|
lzr_sounds.node_sound_leaves_defaults = lzr_sounds.node_sound_defaults
|
||||||
|
|
||||||
function lzr_sounds.node_sound_dirt_defaults(table)
|
function lzr_sounds.node_sound_dirt_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
{name = "default_dirt_footstep", gain = 0.4}
|
{name = "default_dirt_footstep", gain = 0.6}
|
||||||
table.dug = table.dug or
|
table.dug = table.dug or
|
||||||
{name = "default_dirt_footstep", gain = 1.0}
|
{name = "default_dirt_footstep", gain = 1.0}
|
||||||
table.place = table.place or
|
table.place = table.place or
|
||||||
|
@ -38,6 +36,9 @@ function lzr_sounds.node_sound_dirt_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- TODO: sand
|
||||||
|
lzr_sounds.node_sound_sand_defaults = lzr_sounds.node_sound_dirt_defaults
|
||||||
|
|
||||||
function lzr_sounds.node_sound_wood_defaults(table)
|
function lzr_sounds.node_sound_wood_defaults(table)
|
||||||
table = table or {}
|
table = table or {}
|
||||||
table.footstep = table.footstep or
|
table.footstep = table.footstep or
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue