I've made a little thing that counts casualties and confirmed (in-los, or identified radar blobs) kills and their metal value for 1x1 games.
It currently has some limitations and bugs, or WHAT IT DOES WRONG:
- Any loss of enemy unit is considered your kill, because i can't access this information via sync and kills are detected as "units that entered LOS and then stopped existing without leaving los". (
and it is politically impossible to get that info from synced because everybody would just start bertha scouting, i hear). Enemy decides to selfd? Your win. Falls off cliff? Your win. Death by lava? All increases your score.
(fairly legit for 1v1, and doing all those things to yourself will naturally include your own casualty count)
- Some false positives might be listed when a nanoframe is insta-recycled by a factory. Don't know how to fix that.
- It doesn't tolerate luaui reloads too well. All scores will be lost on luaui reload.
- It doesn't respond to changes in spectator state, or in spectate-team, and doesn't display which player "you" are.
- It will not work for team games (because all kills would be counted as yours, including ally casualties). Therefore it disables itself the moment you are discovered to have an ally.
- In FFA, it files every dead unit as something that you killed personally, so is fairly meaningless.
WHAT IT DOES RIGHT:
- It allows you to see at a glimpse if you are failing too bad at tactics and wasting your units to no good.
- It displays a percentage:
- grey N/A when no kills and no losses
- blue PWN! if you're doing the other guy with no losses at all
- green if attrition rate over 100%
- yellow if rate over 75%
- orange if rate over 50%
- red if you're getting massacred two-to one or worse
WHAT IT COULD DO BUT DOESNT BECAUSE I'M A LAZY BASTARD:
- It doesn't declare IMPRESSIVE EXCELLENT HUMILIATION and flash red/green signs when your attrition rate climbs or falls over significant margins.
- Spectator support.
TL:DR
https://dl.dropbox.com/u/19320633/attrition.lua