Add files via upload
parent
7225c23f0b
commit
56595ddb85
5
init.lua
5
init.lua
|
@ -844,6 +844,7 @@ end
|
||||||
function mobkit.actfunc(self, staticdata, dtime_s)
|
function mobkit.actfunc(self, staticdata, dtime_s)
|
||||||
|
|
||||||
self.logic = self.logic or self.brainfunc
|
self.logic = self.logic or self.brainfunc
|
||||||
|
self.physics = self.physics or mobkit.physics
|
||||||
|
|
||||||
self.lqueue = {}
|
self.lqueue = {}
|
||||||
self.hqueue = {}
|
self.hqueue = {}
|
||||||
|
@ -908,11 +909,11 @@ function mobkit.stepfunc(self,dtime) -- not intended to be modified
|
||||||
self.isonground = false
|
self.isonground = false
|
||||||
end
|
end
|
||||||
|
|
||||||
mobkit.physics(self)
|
self:physics(self)
|
||||||
|
|
||||||
if self.logic then
|
if self.logic then
|
||||||
if self.view_range then self:sensefunc() end
|
if self.view_range then self:sensefunc() end
|
||||||
self:logic()
|
self:logic(self)
|
||||||
execute_queues(self)
|
execute_queues(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue