mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 11:17:30 +01:00
tweaks again
This commit is contained in:
parent
3c0992e58d
commit
cd6da88b37
@ -301,7 +301,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
end
|
end
|
||||||
mcl_player.player_set_animation(player, "fly")
|
mcl_player.player_set_animation(player, "fly")
|
||||||
local slowdown_mult = 0 -- amount of vel to take per sec
|
local slowdown_mult = 0 -- amount of vel to take per sec
|
||||||
local fall_speed = 40 -- amount to fall down per sec in nodes
|
local fall_speed = 20 -- amount to fall down per sec in nodes
|
||||||
local speedup_mult = 7 -- amount of speed to add based on look dir
|
local speedup_mult = 7 -- amount of speed to add based on look dir
|
||||||
local max_speed = 100
|
local max_speed = 100
|
||||||
local direction = player:get_look_dir()
|
local direction = player:get_look_dir()
|
||||||
@ -315,10 +315,10 @@ minetest.register_globalstep(function(dtime)
|
|||||||
speed_mult = math.max(speed_mult, -1)
|
speed_mult = math.max(speed_mult, -1)
|
||||||
speed_mult = math.min(speed_mult, max_speed)
|
speed_mult = math.min(speed_mult, max_speed)
|
||||||
if turn_amount > 0.3 then
|
if turn_amount > 0.3 then
|
||||||
speed_mult = speed_mult - (speed_mult * (turn_amount / (math.pi*3)))
|
speed_mult = speed_mult - (speed_mult * (turn_amount / (math.pi*8)))
|
||||||
end
|
end
|
||||||
|
|
||||||
playerphysics.add_physics_factor(player, "gravity", "mcl_playerplus:elytra", 0.1)
|
playerphysics.add_physics_factor(player, "gravity", "mcl_playerplus:elytra", 0.01)
|
||||||
if elytra.rocketing > 0 then
|
if elytra.rocketing > 0 then
|
||||||
elytra.rocketing = elytra.rocketing - dtime
|
elytra.rocketing = elytra.rocketing - dtime
|
||||||
if vector.length(player_velocity) < 40 then
|
if vector.length(player_velocity) < 40 then
|
||||||
|
Loading…
Reference in New Issue
Block a user