1
0
Fork 0

Unlimit mob ai

This commit is contained in:
jordan4ibanez 2021-04-11 18:29:32 -04:00
parent 9aafc28a20
commit 00759da39d
1 changed files with 3 additions and 3 deletions

View File

@ -3574,7 +3574,6 @@ local mob_activate = function(self, staticdata, def, dtime)
end end
-- main mob function
local mob_step = function(self, dtime) local mob_step = function(self, dtime)
if not self or not self.object or not self.object:get_luaentity() then if not self or not self.object or not self.object:get_luaentity() then
@ -3683,14 +3682,17 @@ local mob_step = function(self, dtime)
-- attack timer -- attack timer
self.timer = self.timer + dtime self.timer = self.timer + dtime
--[[
if self.state ~= "attack" then if self.state ~= "attack" then
if self.timer < 1 then if self.timer < 1 then
print("returning>>error code 1")
return return
end end
self.timer = 0 self.timer = 0
end end
]]--
-- never go over 100 -- never go over 100
if self.timer > 100 then if self.timer > 100 then
@ -3729,8 +3731,6 @@ local mob_step = function(self, dtime)
return return
end end
do_jump(self) do_jump(self)
runaway_from(self) runaway_from(self)