or something like this
if ((racer enter pitlane) and (he speed < 10) and (penalty not stop'n'go)) {remember racer penalty; clear.penalty;}
elseif (racer have the remembered penalty) {To renew the penalty}
If I correctly have understood you, all correctly works
use
struct IS_PLA // Pit LAne
{
byte Size; // 8
byte Type; // ISP_PLA
byte ReqI; // 0
byte PLID; // player's unique id
byte Fact; // pit lane fact (see below)
byte Sp1;
byte Sp2;
byte Sp3;
};
PITLANE_EXIT, // 0 - left pit lane
PITLANE_ENTER, // 1 - entered pit lane
PITLANE_NO_PURPOSE, // 2 - entered for no purpose
PITLANE_DT, // 3 - entered for drive-through
PITLANE_SG, // 4 - entered for stop-go
PITLANE_NUM
Attentive. The Gap before green light always random because gap before first red too random. The General time always equally. Look at begin race (after restart) and you see this.
edit config.lua (address and password) run and fun
Never mind where center. It need for know peaks. We may get coords item of Layout. Put cone (you know coords it) and move car each of side. I think if use this method may be get more or less peaks of car.
Please make when race not ended (one of the driver not completed all laps) result not saved (or optional). Now it save all time and i have .tsv file without time data and graph.exe crashing.