mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Add player damage animation
This commit is contained in:
parent
200f7451eb
commit
12109e7f44
@ -228,6 +228,8 @@ minetest.register_globalstep(function(dtime)
|
||||
-- Apply animations based on what the player is doing
|
||||
if player:get_hp() == 0 then
|
||||
player_set_animation(player, "die")
|
||||
elseif player:get_meta():get_int("mcl_damage:damage_animation") > 0 then
|
||||
player_set_animation(player, "walk", animation_speed_mod)
|
||||
elseif mcl_playerplus.elytra[player] and mcl_playerplus.elytra[player].active then
|
||||
player_set_animation(player, "stand")
|
||||
elseif walking and velocity.x > 0.35
|
||||
|
Loading…
Reference in New Issue
Block a user