mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
add sound and other fixes
This commit is contained in:
parent
6a1ff8ea00
commit
d36939d2df
2 changed files with 2 additions and 1 deletions
|
@ -224,7 +224,7 @@ function ARROW_ENTITY.on_step(self, dtime)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif hitpoint.type == "node" then
|
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._stuck_pos = hitpoint.intersection_point
|
||||||
self._stuckin = hitpoint.under
|
self._stuckin = hitpoint.under
|
||||||
end
|
end
|
||||||
|
@ -403,6 +403,7 @@ function ARROW_ENTITY.on_step(self, dtime)
|
||||||
end
|
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_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)
|
self.object:set_animation({x=1,y=20}, 50, 0, false)
|
||||||
|
|
||||||
|
|
BIN
mods/ITEMS/mcl_bows/sounds/mcl_bows_hit_wiggle.ogg
Normal file
BIN
mods/ITEMS/mcl_bows/sounds/mcl_bows_hit_wiggle.ogg
Normal file
Binary file not shown.
Loading…
Reference in a new issue