This looks very interesting! Some remarks:
- The names list suggests that you can also switch focus manually, by (double-)clicking on a name. But nothing happens, so I guess that feature isn't included. Would be very nice to add it, though. (It does conflict with the auto-switching that LRV does, tho. Maybe that should be disabled when you switch manually.)
- I like to watch the race from various views (in-car, helicopter, chase). But when LRV switches focus, it resets the view to default.
- What function do the password and prefix have (i.e., in what situation are they used)?
- Adding statistics to the player list would be very nice. For example: current lap number, fastest lap, latest split time (for each player).
- The names in list of drivers differ from the driver names in-game (account name vs. player name, I guess).
About the focus-switching algorithm:
- It should ignore cars whose speed is close to zero.
- Basing it on distance is OK, but a battle is less interesting when the cars are not in the same lap.
- "When a crash occurs and causes an yellow flag, the camera focuses on it immediately". I couldn't test it, but what does it do at the T1 carnage? Does it switch focus like mad?
Keep up the good work! This could become a really great tool.