Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Tony R
on
Jeremy Kerr wrote:
I believe this is a simple fix that will keep showing intervals after a car has finished. Just replace the first part of the "ConvertToGapOrInterval" function on line 158 with this, which checks for "Finished" in addition:
// show OUT/PIT in a race
        if (r.Session.Type == SessionType.Race)
            {       
            // If we are still racing, then check for OUT or PIT
            if (!r.Finished)
            {
                if (r.Out)
                    return "OUT";
                if (r.Entity?.Car?.Movement?.IsInPits == true)
                    return "PIT";
                }
            }

I can confirm this script modification works! Thanks!

A future modification I will want to look at is to change the text to "Winner" after checkered flag (instead of "Leader") .. but my focus is on other things which i will add to a new post.
Doesn't work for me. Still showing PIT or OUT after the race after exporting the theme again.

Or I did something wrong ?