mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 03:31:10 +00:00
add animation when a player is dead, fix #17
This commit is contained in:
parent
56e0e93a3f
commit
17ab2c8b19
1 changed files with 7 additions and 1 deletions
|
|
@ -12,7 +12,13 @@ function inject(serv, player)
|
||||||
health: attackedPlayer.entity.health
|
health: attackedPlayer.entity.health
|
||||||
});
|
});
|
||||||
|
|
||||||
attackedPlayer._writeOthers('animation',{
|
if(attackedPlayer.entity.health==0)
|
||||||
|
attackedPlayer._writeOthers('entity_status',{
|
||||||
|
entityId:attackedPlayer.entity.id,
|
||||||
|
entityStatus:3
|
||||||
|
});
|
||||||
|
else
|
||||||
|
attackedPlayer._writeOthers('animation',{
|
||||||
entityId:attackedPlayer.entity.id,
|
entityId:attackedPlayer.entity.id,
|
||||||
animation:1
|
animation:1
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue