diff --git a/mods/ITEMS/mcl_bows/README.txt b/mods/ITEMS/mcl_bows/README.txt index 5660f922b..fe879c95c 100644 --- a/mods/ITEMS/mcl_bows/README.txt +++ b/mods/ITEMS/mcl_bows/README.txt @@ -7,7 +7,10 @@ License: * Textures: See MineClone 2 license notes. * Sounds: - * mcl_bows_bow_shoot.ogg: MIT License + * mcl_bows_bow_shoot.ogg: CC0 by Freesound.org user JoeDinesSound + https://freesound.org/people/JoeDinesSound/sounds/534942/ + * mcl_bows_hit_other.ogg: CC0 by Freesound.org user JoeDinesSound + https://freesound.org/people/JoeDinesSound/sounds/534952/ * mcl_bows_hit_player.ogg: CC BY 3.0 by Freesound.org user tim.kahn. https://freesound.org/people/tim.kahn/sounds/38495/ http://creativecommons.org/licenses/by/3.0/ diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index 1bb9af651..7920f4e17 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -274,6 +274,7 @@ ARROW_ENTITY.on_step = function(self, dtime) end end end + minetest.sound_play({name="mcl_bows_hit_other", gain=0.3}, {pos=self.object:get_pos(), max_hear_distance=16}, true) end self.object:remove() return @@ -325,6 +326,8 @@ ARROW_ENTITY.on_step = function(self, dtime) self.object:set_velocity({x=0, y=0, z=0}) self.object:set_acceleration({x=0, y=0, z=0}) + minetest.sound_play({name="mcl_bows_hit_other", gain=0.3}, {pos=self.object:get_pos(), max_hear_distance=16}, true) + -- Push the button! Push, push, push the button! if mod_button and minetest.get_item_group(node.name, "button") > 0 and minetest.get_item_group(node.name, "button_push_by_arrow") == 1 then local bdir = minetest.wallmounted_to_dir(node.param2) diff --git a/mods/ITEMS/mcl_bows/bow.lua b/mods/ITEMS/mcl_bows/bow.lua index eb91e484d..3a7bc6b80 100644 --- a/mods/ITEMS/mcl_bows/bow.lua +++ b/mods/ITEMS/mcl_bows/bow.lua @@ -49,7 +49,7 @@ mcl_bows.shoot_arrow = function(arrow_item, pos, dir, yaw, shooter, power, damag le._damage = damage le._is_critical = is_critical le._startpos = pos - minetest.sound_play("mcl_bows_bow_shoot", {pos=pos}, true) + minetest.sound_play("mcl_bows_bow_shoot", {pos=pos, max_hear_distance=16}, true) if shooter ~= nil and shooter:is_player() then if obj:get_luaentity().player == "" then obj:get_luaentity().player = shooter diff --git a/mods/ITEMS/mcl_bows/sounds/mcl_bows_bow_shoot.ogg b/mods/ITEMS/mcl_bows/sounds/mcl_bows_bow_shoot.ogg index c8911e5fe..ca8b0f718 100644 Binary files a/mods/ITEMS/mcl_bows/sounds/mcl_bows_bow_shoot.ogg and b/mods/ITEMS/mcl_bows/sounds/mcl_bows_bow_shoot.ogg differ diff --git a/mods/ITEMS/mcl_bows/sounds/mcl_bows_hit_other.ogg b/mods/ITEMS/mcl_bows/sounds/mcl_bows_hit_other.ogg new file mode 100644 index 000000000..6956e4d8d Binary files /dev/null and b/mods/ITEMS/mcl_bows/sounds/mcl_bows_hit_other.ogg differ