Tygernoot
Registered
Hi guys,
I'm pretty sure this question has already been asked before, but I couldn't manage to find it.
I want to know the sectors that were set on the driver's best lap.
The plugin provides these fields:
My issue is that the mBestSector1/2 represent the best sector overall - of all laps done by the driver, and not the sectors of the best lap. And it's the latter I want to know.
The only way I figured to keep track of the best lap's sectors, is by storing the mLastSector1/2 manually whenever a new mBestLapTime is made.
The downside of this is that when joining a server that's already in progress, you don't have access to these sector times (as the plugin wasn't active at that time to store them).
The game obviously knows these sector times, as when you do a first timed lap, you can see the difference between your sector and the best lap's sector in the in-game HUD.
Other than pulling them out of memory, am I missing something? Any other way to get to know these?
Hope my question is clear
Thanks and best regards,
Ed.
I'm pretty sure this question has already been asked before, but I couldn't manage to find it.
I want to know the sectors that were set on the driver's best lap.
The plugin provides these fields:
Code:
double mBestSector1; // best sector 1
double mBestSector2; // best sector 2 (plus sector 1)
double mBestLapTime; // best lap time
double mLastSector1; // last sector 1
double mLastSector2; // last sector 2 (plus sector 1)
double mLastLapTime; // last lap time
double mCurSector1; // current sector 1 if valid
double mCurSector2; // current sector 2 (plus sector 1) if valid
My issue is that the mBestSector1/2 represent the best sector overall - of all laps done by the driver, and not the sectors of the best lap. And it's the latter I want to know.
The only way I figured to keep track of the best lap's sectors, is by storing the mLastSector1/2 manually whenever a new mBestLapTime is made.
The downside of this is that when joining a server that's already in progress, you don't have access to these sector times (as the plugin wasn't active at that time to store them).
The game obviously knows these sector times, as when you do a first timed lap, you can see the difference between your sector and the best lap's sector in the in-game HUD.
Other than pulling them out of memory, am I missing something? Any other way to get to know these?
Hope my question is clear
Thanks and best regards,
Ed.