1
0
Fork 0

Make shooty mobs jump

This commit is contained in:
jordan4ibanez 2021-04-21 12:48:23 -04:00
parent ebd995fbd2
commit 20886f54bb
1 changed files with 8 additions and 0 deletions

View File

@ -206,4 +206,12 @@ mobs.projectile_attack_walk = function(self,dtime)
end end
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 end