coavins / mhrise-coavins-dps

A detailed DPS meter for Monster Hunter Rise (PC)
GNU General Public License v3.0
24 stars 11 forks source link

Partial death counter support #30

Closed SeppNel closed 2 years ago

SeppNel commented 2 years ago

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.

coavins commented 2 years ago

This looks great, thanks for doing the legwork to get it started! You've done 99% of the work here. I will clean this up and merge it right now.