Added alarm sound
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Wed, 19 Oct 2016 11:28:21 +0000 (13:28 +0200)
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Wed, 19 Oct 2016 11:28:21 +0000 (13:28 +0200)
init.lua
sounds/alarm.ogg [new file with mode: 0644]

index fdabdf2..66c22d7 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -494,7 +494,7 @@ minetest.register_node("tnt:gunpowder_burning", {
        -- unaffected by explosions
        on_blast = function() end,
        on_construct = function(pos)
-               minetest.sound_play("tnt_gunpowder_burning", {pos = pos, gain = 2})
+               minetest.sound_play("alarm", {pos = pos, gain = 10})
                minetest.get_node_timer(pos):start(1)
        end,
 })
diff --git a/sounds/alarm.ogg b/sounds/alarm.ogg
new file mode 100644 (file)
index 0000000..0ec4749
Binary files /dev/null and b/sounds/alarm.ogg differ