Comfort Blinker Function - Game version 1.41+
These edits will add a 'comfort blinker' function to the trucks indicators.
Mainly used on motorways when changing lanes. Allows the chosen indicator to flash only 4 times (or set to as many times as you want), so there's no need to worry about it being left on.
Using game default keys as an example:
Quick Press
[ to indicate left as normal.
Press & Hold
[ for 0.5 seconds (stop pressing as soon as the indicator comes on) to enable the left indicator to blink for only 2 seconds.
Quick Press
] to indicate right as normal.
Press & Hold
] for 0.5 seconds (stop pressing as soon as the indicator comes on) to enable the right indicator to blink for only 2 seconds.
You can set how long you want the indicators to blink for, just change
2000 (2 seconds) to suit your requirement.
Replace
keyboard.lbracket?0 &
keyboard.rbracket?0 with your preferred key/button.
"mix lblinker `short_press(
keyboard.lbracket?0, 490) | semantical.lblinker?0`"
"mix lblinkerh `memory(long_press(
keyboard.lbracket?0 * ! lblinkerh, 500) + (
keyboard.rbracket?0 * lblinkerh) + long_press(lblinkerh,
2000), ! lblinkerh) | semantical.lblinkerh?0`"
Replace
keyboard.lbracket?0 &
keyboard.rbracket?0 with your preferred key/button.
"mix rblinker `short_press(
keyboard.rbracket?0, 490) | semantical.rblinker?0`"
"mix rblinkerh `memory(long_press(
keyboard.rbracket?0 * ! rblinkerh, 500) + (
keyboard.lbracket?0 * rblinkerh) + long_press(rblinkerh,
2000), ! rblinkerh) | semantical.rblinkerh?0`"
----------
If you use an actual indicator stalk, where the indicators are held on whilst the stalk is either up or down, then you'll probably need to use these edits instead:
Quick flick stalk on/off, for the given direction, to enable the chosen indicator to blink for only 2 seconds.
You can set how long you want the indicators to blink for, just change
2000 (2 seconds) to suit your requirement.
Replace
joy.b1?0 &
joy.b2?0 with your preferred key/button.
"mix lblinker `semantical.lblinker?0`"
"mix lblinkerh `long_press(
joy.b1?0, 600) + memory(short_press(
joy.b1?0 * ! lblinkerh, 590) + (
joy.b2?0 * lblinkerh) + long_press(lblinkerh,
2000), ! lblinkerh) | semantical.lblinkerh?0`"
Replace
joy.b1?0 &
joy.b2?0 with your preferred key/button.
"mix rblinker `semantical.rblinker?0`"
"mix rblinkerh `long_press(
joy.b2?0, 600) + memory(short_press(
joy.b2?0 * ! rblinkerh, 590) + (
joy.b1?0 * rblinkerh) + long_press(rblinkerh,
2000), ! rblinkerh) | semantical.rblinkerh?0`"
Go back to the first post for the full list of what's available: viewtopic.php?p=24744#p24744