From d36939d2dfa61d242c190a31cdbb12fb2b14d27b Mon Sep 17 00:00:00 2001 From: epCode <64379263+epCode@users.noreply.github.com> Date: Mon, 17 Oct 2022 15:11:36 -0700 Subject: [PATCH] add sound and other fixes --- mods/ITEMS/mcl_bows/arrow.lua | 3 ++- .../mcl_bows/sounds/mcl_bows_hit_wiggle.ogg | Bin 0 -> 12576 bytes 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 mods/ITEMS/mcl_bows/sounds/mcl_bows_hit_wiggle.ogg diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index 04eaa348b..868bd3690 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -224,7 +224,7 @@ function ARROW_ENTITY.on_step(self, dtime) end end elseif hitpoint.type == "node" then - if not self._stuck and minetest.registered_nodes[minetest.get_node(hitpoint.under).name].walkable then + if not self._stuck and minetest.registered_nodes[minetest.get_node(hitpoint.under).name].walkable and self._time_in_air > 1.4 then self._stuck_pos = hitpoint.intersection_point self._stuckin = hitpoint.under end @@ -403,6 +403,7 @@ function ARROW_ENTITY.on_step(self, dtime) end minetest.sound_play({name="mcl_bows_hit_other", gain=0.3}, {pos=self.object:get_pos(), max_hear_distance=16}, true) + minetest.sound_play({name="mcl_bows_hit_wiggle", gain=0.3}, {pos=self.object:get_pos(), max_hear_distance=9}, true) self.object:set_animation({x=1,y=20}, 50, 0, false) diff --git a/mods/ITEMS/mcl_bows/sounds/mcl_bows_hit_wiggle.ogg b/mods/ITEMS/mcl_bows/sounds/mcl_bows_hit_wiggle.ogg new file mode 100644 index 0000000000000000000000000000000000000000..d8046d52f66d9f06bb9e2db46c0587298ebf6c8a GIT binary patch literal 12576 zcmaia1yqz@xAz&kq$LDlP-^I*1e7irLTX46DQQGfL|_m^8ib*d9*}O7l#uT3P?V5T zx|DB$|M$M{cfW7ld)8TJ?dR<0*?acczu#H=oHY-ut#tqv_^17}#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