summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-12-11 18:20:31 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-12-11 18:20:31 +0000
commitcf6b529627936644741a931519fc6ea422d2b8f9 (patch)
tree1bba9be0db855f75d0b0464c087e8e6bbb3f0056
parentec4ba73bab1140c9a639df05f83921f7e47e1b94 (diff)
tweaked pathfinding
-rw-r--r--api.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/api.lua b/api.lua
index b934af7..3bb5209 100644
--- a/api.lua
+++ b/api.lua
@@ -3,7 +3,7 @@
mobs = {}
mobs.mod = "redo"
-mobs.version = "20171018"
+mobs.version = "20171112"
-- Intllib
@@ -1079,11 +1079,11 @@ local smart_mobs = function(self, s, p, dist, dtime)
p1.y = floor(p1.y + 0.5)
p1.z = floor(p1.z + 0.5)
- local dropheight = 10
+ local dropheight = 6
if self.fear_height ~= 0 then dropheight = self.fear_height end
--- self.path.way = minetest.find_path(s, p1, 16, 2, 6, "Dijkstra") -- "A*_noprefetch"
- self.path.way = minetest.find_path(s, p1, 16, self.stepheight, dropheight, "Dijkstra")
+-- self.path.way = minetest.find_path(s, p1, 16, 2, 6, "Dijkstra")
+ self.path.way = minetest.find_path(s, p1, 16, self.stepheight, dropheight, "A*_noprefetch")
-- attempt to unstick mob that is "daydreaming"
self.object:setpos({