71 lines
2.0 KiB
Lua
71 lines
2.0 KiB
Lua
lzr_sounds = {}
|
|
|
|
function lzr_sounds.node_sound_defaults(table)
|
|
table = table or {}
|
|
table.footstep = table.footstep or
|
|
{name = "", gain = 1.0}
|
|
table.dug = table.dug or
|
|
{name = "default_dug_node", gain = 0.25}
|
|
table.place = table.place or
|
|
{name = "default_place_node_hard", gain = 1.0}
|
|
return table
|
|
end
|
|
|
|
function lzr_sounds.node_sound_stone_defaults(table)
|
|
table = table or {}
|
|
table.footstep = table.footstep or
|
|
{name = "default_hard_footstep", gain = 0.3}
|
|
table.dug = table.dug or
|
|
{name = "default_hard_footstep", gain = 1.0}
|
|
lzr_sounds.node_sound_defaults(table)
|
|
return table
|
|
end
|
|
|
|
function lzr_sounds.node_sound_dirt_defaults(table)
|
|
table = table or {}
|
|
table.footstep = table.footstep or
|
|
{name = "default_dirt_footstep", gain = 0.4}
|
|
table.dug = table.dug or
|
|
{name = "default_dirt_footstep", gain = 1.0}
|
|
table.place = table.place or
|
|
{name = "default_place_node", gain = 1.0}
|
|
lzr_sounds.node_sound_defaults(table)
|
|
return table
|
|
end
|
|
|
|
function lzr_sounds.node_sound_wood_defaults(table)
|
|
table = table or {}
|
|
table.footstep = table.footstep or
|
|
{name = "default_wood_footstep", gain = 0.3}
|
|
table.dug = table.dug or
|
|
{name = "default_wood_footstep", gain = 1.0}
|
|
lzr_sounds.node_sound_defaults(table)
|
|
return table
|
|
end
|
|
|
|
function lzr_sounds.node_sound_glass_defaults(table)
|
|
table = table or {}
|
|
table.footstep = table.footstep or
|
|
{name = "default_glass_footstep", gain = 0.3}
|
|
table.dig = table.dig or
|
|
{name = "default_glass_footstep", gain = 0.5}
|
|
table.dug = table.dug or
|
|
{name = "default_break_glass", gain = 1.0}
|
|
lzr_sounds.node_sound_defaults(table)
|
|
return table
|
|
end
|
|
|
|
function lzr_sounds.node_sound_metal_defaults(table)
|
|
table = table or {}
|
|
table.footstep = table.footstep or
|
|
{name = "default_metal_footstep", gain = 0.4}
|
|
table.dig = table.dig or
|
|
{name = "default_dig_metal", gain = 0.5}
|
|
table.dug = table.dug or
|
|
{name = "default_dug_metal", gain = 0.5}
|
|
table.place = table.place or
|
|
{name = "default_place_node_metal", gain = 0.5}
|
|
lzr_sounds.node_sound_defaults(table)
|
|
return table
|
|
end
|