Partial because i have no idea how to show it in game.
I hook into netRecvForfeit, netSendForfeit and notifyDeath to determine who has died in a quest.
If player is offline only notifyDeath gets trigered.
The mission host always sends netSendForfeit when someone dies, so if player is host we check for it.
If player is not host we check netRecvForfeit, making sure is from host to avoid duplicates.
I probably made some mistakes since im not familiar with lua, but from what i tested with log.info() it should work fine.
Partial because i have no idea how to show it in game.
I hook into netRecvForfeit, netSendForfeit and notifyDeath to determine who has died in a quest. If player is offline only notifyDeath gets trigered. The mission host always sends netSendForfeit when someone dies, so if player is host we check for it. If player is not host we check netRecvForfeit, making sure is from host to avoid duplicates.
I probably made some mistakes since im not familiar with lua, but from what i tested with log.info() it should work fine.