Add cloth sounds, rename gravel footstep

master
Wuzzy 2021-07-14 18:05:00 +02:00
parent 8f3992758d
commit 1a98623137
14 changed files with 30 additions and 11 deletions

View File

@ -40,6 +40,6 @@ for i in ipairs(carpet_tab) do
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
groups = {snappy=3, dig_immediate=2, carpet=1, attached_node=1},
sounds = hades_sounds.node_sound_defaults(),
sounds = hades_sounds.node_sound_cloth_defaults(),
})
end

View File

@ -9,7 +9,7 @@ minetest.register_node("gluncarp:wool_blackgold", {
is_ground_content = false,
tiles = {"gluncarp_wool_blackgold.png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1},
sounds = hades_sounds.node_sound_defaults(),
sounds = hades_sounds.node_sound_cloth_defaults(),
})
-- Crafting

View File

@ -1,5 +1,9 @@
local S = minetest.get_translator("hades_beds")
local bed_sounds = hades_sounds.node_sound_wood_defaults({
footstep = hades_sounds.node_sound_cloth_defaults().footstep,
})
function hades_beds.register_bed(name, def)
minetest.register_node(name .. "_bottom", {
description = def.description,
@ -14,7 +18,7 @@ function hades_beds.register_bed(name, def)
is_ground_content = false,
stack_max = 1,
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
sounds = hades_sounds.node_sound_wood_defaults(),
sounds = bed_sounds,
node_box = {
type = "fixed",
fixed = def.nodebox.bottom,
@ -65,7 +69,7 @@ function hades_beds.register_bed(name, def)
paramtype2 = "facedir",
is_ground_content = false,
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2},
sounds = hades_sounds.node_sound_wood_defaults(),
sounds = bed_sounds,
node_box = {
type = "fixed",
fixed = def.nodebox.top,

View File

@ -24,7 +24,7 @@ sequence of characters.
Wuzzy (CC0):
hades_sounds_ash_footstep.*.ogg
hades_sounds_ash_dig.*.ogg
hades_sounds_gravel_footstep.*.ogg
default_gravel_footstep.*.ogg
default_dirt_footstep.*.ogg
default_grass_footstep.*.ogg
hades_sounds_grass_dig.*.ogg
@ -49,10 +49,6 @@ Mito551 (sounds) (CC BY-SA):
default_dig_oddly_breakable_by_hand.ogg
default_dug_node.1.ogg
default_dug_node.2.ogg
default_gravel_footstep.1.ogg
default_gravel_footstep.2.ogg
default_gravel_footstep.3.ogg
default_gravel_footstep.4.ogg
default_place_node.1.ogg
default_place_node.2.ogg
default_place_node.3.ogg
@ -79,6 +75,15 @@ Metal sounds:
default_place_node_metal.*.ogg - Ogrebane - CC0
- http://opengameart.org/content/wood-and-metal-sound-effects-volume-2
Brandon Morris 'Augmentality' (<Brandonmorris12@gmail.com> <http://youtube.com/brandon75689>)
hades_sounds_cloth_footstep.1.ogg
hades_sounds_cloth_footstep.2.ogg
hades_sounds_cloth_footstep.3.ogg
hades_sounds_cloth_footstep.4.ogg
License: OGA-BY 3.0, Public Domain (CC0)
Origin: https://opengameart.org/content/footsteps-leather-cloth-armor
AGFX (CC BY 3.0)
https://www.freesound.org/people/AGFX/packs/1253/
default_water_footstep.1.ogg

View File

@ -91,7 +91,7 @@ function hades_sounds.node_sound_gravel_defaults(table, pitch)
pitch = pitch or 1.0
table = table or {}
table.footstep = table.footstep or
{name="hades_sounds_gravel_footstep", gain=0.5, max_hear_distance = mhd, pitch=pitch}
{name="default_gravel_footstep", gain=0.5, max_hear_distance = mhd, pitch=pitch}
table.dig = table.dig or
{name = "default_dig_crumbly", gain = 0.5, max_hear_distance = mhd}
table.dug = table.dug or
@ -167,6 +167,16 @@ function hades_sounds.node_sound_glass_defaults(table)
return table
end
function hades_sounds.node_sound_cloth_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name="hades_sounds_cloth_footstep", gain=0.1, max_hear_distance = mhd}
table.dig = table.dig or
{name="hades_sounds_cloth_footstep", gain=0.4, max_hear_distance = mhd, pitch=0.8}
hades_sounds.node_sound_defaults(table)
return table
end
function hades_sounds.node_sound_water_defaults(table)
table = table or {}
table.footstep = table.footstep or

View File

@ -37,7 +37,7 @@ for _, row in ipairs(wool.dyes) do
description = desc,
tiles = {"wool_"..name..".png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1},
sounds = hades_sounds.node_sound_defaults(),
sounds = hades_sounds.node_sound_cloth_defaults(),
is_ground_content = false,
})
-- Crafting from dye and white wool