mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 01:49:32 +01:00
Add player damage animation
This commit is contained in:
parent
200f7451eb
commit
12109e7f44
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue