mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-07 20:20:50 +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,6 +12,12 @@ function inject(serv, player)
|
||||||
health: attackedPlayer.entity.health
|
health: attackedPlayer.entity.health
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(attackedPlayer.entity.health==0)
|
||||||
|
attackedPlayer._writeOthers('entity_status',{
|
||||||
|
entityId:attackedPlayer.entity.id,
|
||||||
|
entityStatus:3
|
||||||
|
});
|
||||||
|
else
|
||||||
attackedPlayer._writeOthers('animation',{
|
attackedPlayer._writeOthers('animation',{
|
||||||
entityId:attackedPlayer.entity.id,
|
entityId:attackedPlayer.entity.id,
|
||||||
animation:1
|
animation:1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue