mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-05 17:23:16 +01:00
Merge pull request 'Make mob walk velocity be more normal' (#2821) from epcode-patch-1 into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2821 Reviewed-by: cora <cora@noreply.git.minetest.land>
commit
ec4d431835
@ -3931,7 +3931,7 @@ local mob_step = function(self, dtime)
|
|||||||
if not self.animation.walk_speed then
|
if not self.animation.walk_speed then
|
||||||
self.animation.walk_speed = 25
|
self.animation.walk_speed = 25
|
||||||
end
|
end
|
||||||
self.object:set_animation_frame_speed((v2/self.walk_velocity)*self.animation.walk_speed*self.frame_speed_multiplier)
|
self.object:set_animation_frame_speed((v2/math.max(1,self.run_velocity))*self.animation.walk_speed*self.frame_speed_multiplier)
|
||||||
end
|
end
|
||||||
|
|
||||||
--set_speed
|
--set_speed
|
||||||
|
Loading…
Reference in New Issue
Block a user