The online racing simulator
Is it possible to make Roof-Mounted Pedal Indicator Lights
Greetings

Is it possible to map a clutch indicator light or a throttle indicator light in the same way as an additional brake light?

In some drifting series, indicator lights are mounted on the car’s roof to inform other competitors when the driver ahead is pressing the clutch, brake, or throttle pedal.

These kinds of indicator lights would also make judging easier.

At least for the player, pedal bars can be displayed via **\[Options] → \[Display] → \[Show Pedals]**:

* Grey = Handbrake
* Purple = Clutch
* Red = Brake
* Green = Throttle

I wasn’t sure which section this question belongs in. The moderators may delete it or move it to the correct place.
#2 - Racon
I don't think you can do it directly for anything but brake, but if you used frontfog, rearfog and the extra light to make handbrake, throttle and clutch indicators, then it's possible to use a local insim to toggle those on and off from outsim data. They'd only be binary, but maybe that's enough?
Quote from Racon :I don't think you can do it directly for anything but brake, but if you used...

How?
#4 - Racon
So you would have the fog and extra light mappings set on your indicator lights in LFS Editor.

We can use OutGauge in a local InSim to monitor Throttle/Brake/Clutch values directly, but there isn't one for Handbrake. There's the dashboard handbrake indicator though, we could use that light for our check if it triggers quickly enough

Once we know that, we can set fog and extra lights locally with a SMALL_LCS packet, and LFS will replicate the lights to other clients so everyone see it.

I can knock up a test version in PIE if you need Thumbs up
Quote from Racon :So you would have the fog and extra light mappings set on your indicator lights...

If you can make it, I’d really appreciate it.
#6 - Racon
No problem, it would be good to see it working in LFS Thumbs up

It's a PIE script, so you'll need PIE to run it, and you'll need to configure OutGauge if you haven't already in your LFS/cfg.txt file (I used Mode 2; Delay 10; IP 127.0.0.1; Port 49999 for testing).

I've set it to use RearFog for Throttle, FrontFog for Clutch and Extra for Handbrake, but you can swap those around in the script if that's not convenient. I've also set the 2 pedals to have a threshold for triggering, set to 0.1 initially, but you might want to tune that.

Good luck!
Attached files
driftlights.zip - 823 B - 4 views

FGED GREDG RDFGDR GSFDG