Default: Add metal sound table function and metal sounds
authorAuke Kok <sofar@foo-projects.org>
Wed, 19 Oct 2016 23:23:05 +0000 (16:23 -0700)
committerparamat <mat.gregory@virginmedia.com>
Tue, 25 Oct 2016 01:34:39 +0000 (02:34 +0100)
mods/default/README.txt
mods/default/functions.lua
mods/default/sounds/default_dig_metal.ogg [new file with mode: 0644]
mods/default/sounds/default_dug_metal.1.ogg [new file with mode: 0644]
mods/default/sounds/default_dug_metal.2.ogg [new file with mode: 0644]
mods/default/sounds/default_metal_footstep.1.ogg [new file with mode: 0644]
mods/default/sounds/default_metal_footstep.2.ogg [new file with mode: 0644]
mods/default/sounds/default_metal_footstep.3.ogg [new file with mode: 0644]
mods/default/sounds/default_place_node_metal.1.ogg [new file with mode: 0644]
mods/default/sounds/default_place_node_metal.2.ogg [new file with mode: 0644]

index 4d26a932c981a4d6bfeff4764dcb3bced2048b96..9ae2c0028f5f3c095e8841ac69dad44ceaa94950 100644 (file)
@@ -231,3 +231,14 @@ Mito551 (sounds) (CC BY-SA 3.0):
   default_dirt_footstep.1.ogg
   default_dirt_footstep.2.ogg
   default_glass_footstep.ogg
+
+Metal sounds:
+  default_dig_metal.ogg - yadronoff - CC-BY-3.0
+  - https://www.freesound.org/people/yadronoff/sounds/320397/
+  default_dug_metal.*.ogg - Iwan Gabovitch - qubodup - CC0
+  - http://opengameart.org/users/qubodup
+  default_metal_footstep.*.ogg - Ottomaani138 - CC0
+  - https://www.freesound.org/people/Ottomaani138/sounds/232692/
+  default_place_node_metal.*.ogg - Ogrebane - CC0
+  - http://opengameart.org/content/wood-and-metal-sound-effects-volume-2
+
index 0e0ab843a1c16a4d5c37183d8165730c94c911ae..429ce9fe911c3743aab3c852db3019bf22d8675f 100644 (file)
@@ -95,6 +95,19 @@ function default.node_sound_glass_defaults(table)
        return table
 end
 
+function default.node_sound_metal_defaults(table)
+       table = table or {}
+       table.footstep = table.footstep or
+                       {name = "default_metal_footstep", gain = 0.5}
+       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}
+       default.node_sound_defaults(table)
+       return table
+end
 
 --
 -- Lavacooling
diff --git a/mods/default/sounds/default_dig_metal.ogg b/mods/default/sounds/default_dig_metal.ogg
new file mode 100644 (file)
index 0000000..0b58509
Binary files /dev/null and b/mods/default/sounds/default_dig_metal.ogg differ
diff --git a/mods/default/sounds/default_dug_metal.1.ogg b/mods/default/sounds/default_dug_metal.1.ogg
new file mode 100644 (file)
index 0000000..5d6cb5b
Binary files /dev/null and b/mods/default/sounds/default_dug_metal.1.ogg differ
diff --git a/mods/default/sounds/default_dug_metal.2.ogg b/mods/default/sounds/default_dug_metal.2.ogg
new file mode 100644 (file)
index 0000000..63567fc
Binary files /dev/null and b/mods/default/sounds/default_dug_metal.2.ogg differ
diff --git a/mods/default/sounds/default_metal_footstep.1.ogg b/mods/default/sounds/default_metal_footstep.1.ogg
new file mode 100644 (file)
index 0000000..841286b
Binary files /dev/null and b/mods/default/sounds/default_metal_footstep.1.ogg differ
diff --git a/mods/default/sounds/default_metal_footstep.2.ogg b/mods/default/sounds/default_metal_footstep.2.ogg
new file mode 100644 (file)
index 0000000..aa61ed3
Binary files /dev/null and b/mods/default/sounds/default_metal_footstep.2.ogg differ
diff --git a/mods/default/sounds/default_metal_footstep.3.ogg b/mods/default/sounds/default_metal_footstep.3.ogg
new file mode 100644 (file)
index 0000000..4cc1ca4
Binary files /dev/null and b/mods/default/sounds/default_metal_footstep.3.ogg differ
diff --git a/mods/default/sounds/default_place_node_metal.1.ogg b/mods/default/sounds/default_place_node_metal.1.ogg
new file mode 100644 (file)
index 0000000..5da085e
Binary files /dev/null and b/mods/default/sounds/default_place_node_metal.1.ogg differ
diff --git a/mods/default/sounds/default_place_node_metal.2.ogg b/mods/default/sounds/default_place_node_metal.2.ogg
new file mode 100644 (file)
index 0000000..5ee67fc
Binary files /dev/null and b/mods/default/sounds/default_place_node_metal.2.ogg differ