mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
When mobs stop, don't stop animations easier
fixes mob punch animation.
This commit is contained in:
parent
636e5545a7
commit
de4c40f60a
@ -4001,7 +4001,11 @@ local mob_step = function(self, dtime)
|
||||
if not self.animation.walk_speed then
|
||||
self.animation.walk_speed = 25
|
||||
end
|
||||
self.object:set_animation_frame_speed((v2/math.max(1,self.run_velocity))*self.animation.walk_speed*self.frame_speed_multiplier)
|
||||
if abs(v.x)+abs(v.z) > 0.5 then
|
||||
self.object:set_animation_frame_speed((v2/math.max(1,self.run_velocity))*self.animation.walk_speed*self.frame_speed_multiplier)
|
||||
else
|
||||
self.object:set_animation_frame_speed(25)
|
||||
end
|
||||
end
|
||||
|
||||
--set_speed
|
||||
|
Loading…
Reference in New Issue
Block a user