I think it makes more sense for the season mode to open the data and tweak the cars' fuel consumption then.
When you go to car.ini in the \data folder it has these values.
Code:
[FUEL]
CONSUMPTION=0.001 ; fuel consumption. In one second the consumption is (rpm*gas*CONSUMPTION)/1000 litres
FUEL=30 ; default starting fuel in litres
MAX_FUEL=195 ; max fuel in litres
Wouldn't it be much easier to edit this data and set max fuel to say, 35 liters so the ai would have to pit if it has to finish the 20 lap race, huh?
Of course you'd have to edit it for all ai cars separately. If you want some variation when the ai cars pit, simply use a different max fuel capacity for different cars so the ai cars won't all pit in the same lap. Like McLaren max. capacity 32 liters, Ferrari 36l, etc.
No idea if this works at all... just thinking loud... but I'm going to try this tomorrow. I'm sure someone here knows.