small fix

This commit is contained in:
MihailRis 2025-09-13 23:38:01 +03:00
parent afd5eec6d0
commit 1c2fa2bba4
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ end
function move_vertical(speed, vel) function move_vertical(speed, vel)
vel = vel or body:get_vel() vel = vel or body:get_vel()
vel[2] = vel[2] * 0.2 + speed * 0.8 vel[2] = vel[2] * 0.2 + props.movement_speed * speed * 0.8
body:set_vel(vel) body:set_vel(vel)
end end

View File

@ -42,9 +42,9 @@ local function process_player_inputs(pid, delta)
if mob.is_flight() then if mob.is_flight() then
if isjump then if isjump then
mob.move_vertical(speed * 8) mob.move_vertical(speed * 4)
elseif iscrouch then elseif iscrouch then
mob.move_vertical(-speed * 8) mob.move_vertical(-speed * 4)
end end
elseif body:is_grounded() and isjump then elseif body:is_grounded() and isjump then
mob.jump() mob.jump()