diff options
author | Maciej Kasatkin <mk@realbadangel.pl> | 2012-10-10 21:13:20 +0200 |
---|---|---|
committer | Maciej Kasatkin <mk@realbadangel.pl> | 2012-10-10 21:13:20 +0200 |
commit | 845b0607eb09602a0da871a22ff044069506c53a (patch) | |
tree | 8e1254794a5f0409c2f2ce5875c98905ac748113 | |
parent | a0229013ce2462b1475d8c03a077eedec0ac7daa (diff) |
Added mining drill sound
-rw-r--r-- | mining_drill.lua | 1 | ||||
-rw-r--r-- | sonic_screwdriver.lua | 2 | ||||
-rw-r--r-- | sounds/mining_drill.ogg | bin | 0 -> 14499 bytes |
3 files changed, 2 insertions, 1 deletions
diff --git a/mining_drill.lua b/mining_drill.lua index 99a7878..3f2a7c8 100644 --- a/mining_drill.lua +++ b/mining_drill.lua @@ -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 diff --git a/sonic_screwdriver.lua b/sonic_screwdriver.lua index c6efc42..77b01e8 100644 --- a/sonic_screwdriver.lua +++ b/sonic_screwdriver.lua @@ -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 Binary files differnew file mode 100644 index 0000000..1493544 --- /dev/null +++ b/sounds/mining_drill.ogg |