1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

tweak riding functions

This commit is contained in:
tenplus1
2022-04-21 08:28:35 +01:00
parent 0e72f0ca81
commit 7b429df9e9
2 changed files with 5 additions and 5 deletions

View File

@ -296,7 +296,7 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime)
elseif velo.y > 0 then
velo.y = velo.y - 0.1
velo.y = velo.y - dtime
if velo.y < 0 then velo.y = 0 end
end
@ -310,7 +310,7 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime)
elseif velo.y < 0 then
velo.y = velo.y + 0.1
velo.y = velo.y + dtime
if velo.y > 0 then velo.y = 0 end
end
@ -366,7 +366,7 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime)
if not p then return end
local new_acce = {x = 0, y = -9.81, z = 0}
local new_acce = {x = 0, y = entity.fall_speed, z = 0}
p.y = p.y - 0.5