From ea155787feb793b8500b70ffd4750695e70ec735 Mon Sep 17 00:00:00 2001 From: TheTermos <55103816+TheTermos@users.noreply.github.com> Date: Tue, 12 Nov 2019 16:58:38 +0100 Subject: [PATCH 1/2] Update init.lua --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 09ffa86..74a7434 100644 --- a/init.lua +++ b/init.lua @@ -538,8 +538,8 @@ function mobkit.get_next_waypoint(self,tpos) end end --scan rear - height, pos2, liq = mobkit.is_neighbor_node_reachable(self,mobkit.neighbor_shift(neighbor,4)) - if height and not liq + height, pos2, liquidflag = mobkit.is_neighbor_node_reachable(self,mobkit.neighbor_shift(neighbor,4)) + if height and not liquidflag and not (nogopos and mobkit.isnear2d(pos2,nogopos,0.1)) then update_pos_history(self,pos2) return height,pos2 @@ -836,7 +836,7 @@ end function mobkit.vitals(self) -- vitals: fall damage - vel = self.object:get_velocity() + local vel = self.object:get_velocity() local velocity_delta = abs(self.lastvelocity.y - vel.y) if velocity_delta > mobkit.safe_velocity then self.hp = self.hp - floor(self.max_hp * min(1, velocity_delta/mobkit.terminal_velocity)) @@ -1277,8 +1277,8 @@ function mobkit.hq_hunt(self,prty,tgtobj) end function mobkit.hq_warn(self,prty,tgtobj) - timer=0 - tgttime = 0 + local timer=0 + local tgttime = 0 local func = function(self) if not mobkit.is_alive(tgtobj) then return true end local pos = mobkit.get_stand_pos(self) From 40f6006d7a3fca6ce4c7a851549e109fede7fb72 Mon Sep 17 00:00:00 2001 From: TheTermos <55103816+TheTermos@users.noreply.github.com> Date: Wed, 13 Nov 2019 11:55:59 +0100 Subject: [PATCH 2/2] Add files via upload --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 74a7434..6451a82 100644 --- a/init.lua +++ b/init.lua @@ -919,7 +919,7 @@ function mobkit.actfunc(self, staticdata, dtime_s) end function mobkit.stepfunc(self,dtime) -- not intended to be modified - self.dtime = max(dtime,0.05) + self.dtime = min(dtime,0.2) self.height = mobkit.get_box_height(self) -- physics comes first -- self.object:set_acceleration({x=0,y=mobkit.gravity,z=0})