2015-09-01 17:15:24 +02:00
|
|
|
--
|
|
|
|
-- Sounds
|
|
|
|
--
|
|
|
|
|
|
|
|
function default.node_sound_defaults(table)
|
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
|
|
|
{name="", gain=1.0}
|
|
|
|
table.dig = table.dig or
|
|
|
|
{name="default_dig_hard", gain=0.3}
|
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_dug_node", gain=0.1}
|
|
|
|
table.place = table.place or
|
|
|
|
{name="default_place_node", gain=0.8}
|
|
|
|
return table
|
|
|
|
end
|
|
|
|
|
|
|
|
function default.node_sound_stone_defaults(table)
|
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
|
|
|
{name="default_hard_footstep", gain=0.6}
|
|
|
|
table.dig = table.dig or
|
|
|
|
{name="default_dig_hard", gain=0.3}
|
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_hard_footstep", gain=1.0}
|
|
|
|
default.node_sound_defaults(table)
|
|
|
|
return table
|
|
|
|
end
|
|
|
|
|
|
|
|
function default.node_sound_dirt_defaults(table)
|
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
|
|
|
{name="default_crunch_footstep", gain=1.0}
|
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_crunch_footstep", gain=1.0}
|
|
|
|
table.dig = table.dig or
|
|
|
|
{name="default_dig_soft", gain=0.3}
|
|
|
|
table.place = table.place or
|
|
|
|
{name="default_place_node", gain=1.0}
|
|
|
|
default.node_sound_defaults(table)
|
|
|
|
return table
|
|
|
|
end
|
|
|
|
|
|
|
|
function default.node_sound_sand_defaults(table)
|
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
|
|
|
{name="default_soft_footstep", gain=0.2}
|
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_soft_footstep", gain=0.4}
|
|
|
|
table.dig = table.dig or
|
|
|
|
{name="default_dig_soft", gain=0.2}
|
|
|
|
table.place = table.place or
|
|
|
|
{name="default_place_node", gain=1.0}
|
|
|
|
default.node_sound_defaults(table)
|
|
|
|
return table
|
|
|
|
end
|
|
|
|
|
|
|
|
function default.node_sound_wood_defaults(table)
|
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
|
|
|
{name="default_hard_footstep", gain=0.5}
|
|
|
|
table.dig = table.dig or
|
|
|
|
{name="default_dig_hard", gain=0.2}
|
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_hard_footstep", gain=1.0}
|
|
|
|
default.node_sound_defaults(table)
|
|
|
|
return table
|
|
|
|
end
|
|
|
|
|
|
|
|
function default.node_sound_leaves_defaults(table)
|
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
|
|
|
{name="default_soft_footstep", gain=0.35}
|
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_soft_footstep", gain=0.7}
|
|
|
|
table.dig = table.dig or
|
|
|
|
{name="default_dig_soft", gain=0.3}
|
|
|
|
table.place = table.place or
|
|
|
|
{name="default_place_node", gain=1.0}
|
|
|
|
default.node_sound_defaults(table)
|
|
|
|
return table
|
|
|
|
end
|
|
|
|
|
|
|
|
function default.node_sound_glass_defaults(table)
|
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
|
|
|
{name="default_hard_footstep", gain=0.5}
|
|
|
|
table.dig = table.dig or
|
|
|
|
{name="default_dig_hard", gain=0.5}
|
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_dug_node", gain=1.0}
|
|
|
|
default.node_sound_defaults(table)
|
|
|
|
return table
|
|
|
|
end
|
|
|
|
|
|
|
|
function default.node_sound_snow_defaults(table)
|
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
|
|
|
{name="default_crunch_footstep", gain=0.3}
|
|
|
|
table.dig = table.dig or
|
|
|
|
{name="default_dig_soft", gain=0.2}
|
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_dig_soft", gain=0.8}
|
|
|
|
default.node_sound_defaults(table)
|
|
|
|
return table
|
2017-05-11 03:23:21 +02:00
|
|
|
end
|
2017-05-18 23:09:05 +02:00
|
|
|
|
2019-09-21 20:53:37 +02:00
|
|
|
function default.node_sound_water_defaults(table)
|
2017-05-18 23:09:05 +02:00
|
|
|
table = table or {}
|
|
|
|
table.footstep = table.footstep or
|
2019-09-21 21:19:56 +02:00
|
|
|
{name="default_water_footstep", gain=1.0}
|
2019-09-21 20:53:37 +02:00
|
|
|
table.dug = table.dug or
|
|
|
|
{name="default_dug_water", gain=1.0}
|
|
|
|
table.place = table.place or
|
|
|
|
{name="default_place_node_water", gain=1.0}
|
2017-05-18 23:09:05 +02:00
|
|
|
default.node_sound_defaults(table)
|
|
|
|
return table
|
|
|
|
end
|
2019-09-21 20:53:37 +02:00
|
|
|
|