forked from VoxeLibre/VoxeLibre
fix only hostile mobs using smooth turning
This commit is contained in:
parent
4a086db4c5
commit
c500dc98f9
|
@ -3722,7 +3722,7 @@ local mob_step = function(self, dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- smooth rotation by ThomasMonroe314
|
-- smooth rotation by ThomasMonroe314
|
||||||
if self._turn_to and (not self.type == "monster" and self.state == "attack") then
|
if self._turn_to then
|
||||||
set_yaw(self, self._turn_to, .1)
|
set_yaw(self, self._turn_to, .1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue