Improve bow/arrow physics
This commit is contained in:
parent
be4639044e
commit
bfde48768e
2
api.lua
2
api.lua
|
@ -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,
|
||||
|
|
Ŝarĝante…
Reference in New Issue