Added mining drill sound

This commit is contained in:
Maciej Kasatkin 2012-10-10 21:13:20 +02:00
parent a0229013ce
commit 845b0607eb
3 changed files with 2 additions and 1 deletions

View 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

View 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

BIN
sounds/mining_drill.ogg Normal file

Binary file not shown.