mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Make shooty mobs jump
This commit is contained in:
parent
ebd995fbd2
commit
20886f54bb
1 changed files with 8 additions and 0 deletions
|
@ -206,4 +206,12 @@ mobs.projectile_attack_walk = function(self,dtime)
|
|||
end
|
||||
end
|
||||
|
||||
--make shooty mobs jump
|
||||
--check for nodes to jump over
|
||||
--explosive mobs will just ride against walls for now
|
||||
local node_in_front_of = mobs.jump_check(self)
|
||||
if node_in_front_of == 1 then
|
||||
mobs.jump(self)
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in a new issue