Skip to content

Commit fa9a345

Browse files
sofarparamat
authored andcommittedOct 25, 2016
Default: Add metal sound table function and metal sounds
1 parent f7325d2 commit fa9a345

10 files changed

+24
-0
lines changed
 

Diff for: ‎mods/default/README.txt

+11
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,14 @@ Mito551 (sounds) (CC BY-SA 3.0):
231231
default_dirt_footstep.1.ogg
232232
default_dirt_footstep.2.ogg
233233
default_glass_footstep.ogg
234+
235+
Metal sounds:
236+
default_dig_metal.ogg - yadronoff - CC-BY-3.0
237+
- https://www.freesound.org/people/yadronoff/sounds/320397/
238+
default_dug_metal.*.ogg - Iwan Gabovitch - qubodup - CC0
239+
- http://opengameart.org/users/qubodup
240+
default_metal_footstep.*.ogg - Ottomaani138 - CC0
241+
- https://www.freesound.org/people/Ottomaani138/sounds/232692/
242+
default_place_node_metal.*.ogg - Ogrebane - CC0
243+
- http://opengameart.org/content/wood-and-metal-sound-effects-volume-2
244+

Diff for: ‎mods/default/functions.lua

+13
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ function default.node_sound_glass_defaults(table)
9595
return table
9696
end
9797

98+
function default.node_sound_metal_defaults(table)
99+
table = table or {}
100+
table.footstep = table.footstep or
101+
{name = "default_metal_footstep", gain = 0.5}
102+
table.dig = table.dig or
103+
{name = "default_dig_metal", gain = 0.5}
104+
table.dug = table.dug or
105+
{name = "default_dug_metal", gain = 0.5}
106+
table.place = table.place or
107+
{name = "default_place_node_metal", gain = 0.5}
108+
default.node_sound_defaults(table)
109+
return table
110+
end
98111

99112
--
100113
-- Lavacooling

Diff for: ‎mods/default/sounds/default_dig_metal.ogg

5.12 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_dug_metal.1.ogg

6.91 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_dug_metal.2.ogg

7.09 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_metal_footstep.1.ogg

6.69 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_metal_footstep.2.ogg

6.76 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_metal_footstep.3.ogg

6.81 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_place_node_metal.1.ogg

7.34 KB
Binary file not shown.

Diff for: ‎mods/default/sounds/default_place_node_metal.2.ogg

7.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)