MegaAntiCheat / MegaAntiCheat-UI

React frontend
GNU General Public License v3.0
45 stars 26 forks source link

Add per-player killfeed modal #125

Open TheLazySquid opened 3 months ago

TheLazySquid commented 3 months ago

I noticed there was an unused endpoint in the backend for the killfeed and figured that it could be useful to see the history of a player's kills in order to make a verdict (for example to see whether a sniper has hit any bodyshots). I did my best to recreate the killfeed entries as faithfully as I could, but all the ids for kills were gathered in one long, boring afternoon and there may be mistakes here and there. (If an icon is missing it will fall back to the default skull).

Each killfeed icon is a few kilobytes, with all 200ish totaling to around a megabyte.

image

megascatterbomb commented 2 months ago

Couple quirks:

TheLazySquid commented 2 months ago

Fixing either of those cleanly would probably require some work on the backend, unless there's some stuff I don't know about. It's also worth noting that the system of short polling the entire killfeed every second is really innefficient- after a few hours of play the killfeed will need to transfer a few hundred kilobytes per second.

With that said, I know next to no Rust, so I unfortunately won't be able to do much of anything.