I have built an app that records hotstints. You select the duration (3, 5, 10, 20 etc laps) and drive an outlap after which the app starts recording your times for the stint. Currently the stint is terminated once you enter the pitlane, and a new stint is started when you exit. It is simple and straightforward but I was thinking it would be nice to allow the driver to do pitstops in the middle of the stint. It would be interesting to try different strategies for longer stints.
But if I allow pitstops (in other words), then I should account for the player teleporting to pits in the middle of the stint (pressing esc and selecting "back to pits"). However, I could not find information anywhere on how to recognize this event in the app. I could come up with some hacks to try to guess when this happens from the sudden change of location etc. but none seem too reliable or practical.
Does anyone know on how to best recognize when the player teleports to the pits in a Python app? I feel I might be missing something obvious...
But if I allow pitstops (in other words), then I should account for the player teleporting to pits in the middle of the stint (pressing esc and selecting "back to pits"). However, I could not find information anywhere on how to recognize this event in the app. I could come up with some hacks to try to guess when this happens from the sudden change of location etc. but none seem too reliable or practical.
Does anyone know on how to best recognize when the player teleports to the pits in a Python app? I feel I might be missing something obvious...