Added mining drill sound
authorMaciej Kasatkin <mk@realbadangel.pl>
Wed, 10 Oct 2012 19:13:20 +0000 (21:13 +0200)
committerMaciej Kasatkin <mk@realbadangel.pl>
Wed, 10 Oct 2012 19:13:20 +0000 (21:13 +0200)
mining_drill.lua
sonic_screwdriver.lua
sounds/mining_drill.ogg [new file with mode: 0644]

index 99a7878e8caec39cbaa9b367c323b9dcbeffb471..3f2a7c89fa1047b9d76af786911aa36bc92893d4 100644 (file)
@@ -53,6 +53,7 @@ function drill_dig_it (pos, player)
                        player:get_inventory():add_item("main", dropped_item)
                end
        end
+       minetest.sound_play("mining_drill", {pos = pos, gain = 1.0, max_hear_distance = 10,})
        minetest.env:remove_node(pos)
        end
 
index c6efc426fba37629a33dbddf899ed82e5df9ec11..77b01e8c35cfadb3058ebdde49f14316978f7605 100644 (file)
@@ -16,7 +16,7 @@ sonic_screwdriver_max_charge=15000
                         if charge ==0 then charge =65535 end
                         charge=get_RE_item_load(charge,sonic_screwdriver_max_charge)
                         if charge-100>0 then
-                                minetest.sound_play("technic_sonic_screwdriver", {pos = pos, gain = 0.5, max_hear_distance = 10,})
+                                minetest.sound_play("technic_sonic_screwdriver", {pos = pos, gain = 0.3, max_hear_distance = 10,})
                            local n = node.param2
                            if minetest.registered_nodes[node_name].paramtype2 == "facedir" then
                            n = n+1
diff --git a/sounds/mining_drill.ogg b/sounds/mining_drill.ogg
new file mode 100644 (file)
index 0000000..1493544
Binary files /dev/null and b/sounds/mining_drill.ogg differ