Improve bow/arrow physics

This commit is contained in:
Juraj Vajda 2022-10-30 10:54:11 -04:00
parent be4639044e
commit bfde48768e

View File

@ -1324,6 +1324,7 @@ function XBowsEntityDef.on_step(self, selfObj, dtime)
local new_pos = selfObj.object:get_pos()
if new_pos then
minetest.add_particlespawner({
amount = 5,
time = 0.25,
@ -1339,6 +1340,7 @@ function XBowsEntityDef.on_step(self, selfObj, dtime)
collisiondetection = true,
object_collision = true,
})
end
minetest.sound_play(selfObj._sound_hit, {
pos = pointed_thing.under,