mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-18 21:14:11 +02:00
Show elytra animation when using elytra
This commit is contained in:
parent
899c45534f
commit
4c0bad754e
@ -242,7 +242,7 @@ minetest.register_globalstep(function(dtime)
|
||||
player:get_meta():set_int("mcl_damage:damage_animation", 0)
|
||||
end)
|
||||
elseif mcl_playerplus.elytra[player] and mcl_playerplus.elytra[player].active then
|
||||
player_set_animation(player, "stand")
|
||||
|
||||
elseif walking and velocity.x > 0.35
|
||||
or walking and velocity.x < -0.35
|
||||
or walking and velocity.z > 0.35
|
||||
|
@ -366,7 +366,7 @@ minetest.register_globalstep(function(dtime)
|
||||
set_properties(player, player_props_elytra)
|
||||
|
||||
-- control body bone when flying
|
||||
local body_rot = vector.new((75 - degrees(dir_to_pitch(player_velocity))), -player_vel_yaw + yaw, 0)
|
||||
local body_rot = vector.new(degrees(dir_to_pitch(player_velocity)) + 110, -player_vel_yaw + yaw, 180)
|
||||
set_bone_pos(player, "Body_Control", nil, body_rot)
|
||||
elseif parent then
|
||||
set_properties(player, player_props_riding)
|
||||
|
Loading…
Reference in New Issue
Block a user