No longer do the AI completely ignore yellow flags!
Affects the AI when a yellow flag is present in the following ways:
- They slow down significantly (Top Speed limit.)
- They don't overtake each other.
They weave to generate heat in their tyres. (After lap one to reduce crashes.)(Temporarily removed, will look to re-add when I can get it too work without causing too many crashes.)
Affects the Player when a yellow flag is present in the following ways:
- Reduces top speed of the player to yellow flag speed limit. (Doesn't affect brake, only limits gas pedal.)
The app also ensures that the shortest time a yellow flag is present is 10 seconds.
You can tailor the app to your preferences using the User variables in the .lua file to set:
- Yellow Flag Speed Limit
You can now also trigger your own yellow flags using the Start Yellow Flag UI Buttons.
I have also added buttons for enabling and disabling track physics. Track physics needs to be disabled for when jumping into online lobbies to avoid being kicked for having checksum error (non-matching files.)
Track physics needs to be enabled for the yellow flag app to work in your offline sessions vs AI.
For the future:
- Add weaving feature (in state without too many crashes)
- Look into adding penalties for overtaking under yellow flags.