mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 06:21:08 +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
|
||||
});
|
||||
|
||||
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,
|
||||
animation:1
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue