GIF incoming...
When approaching a distant vessel its lights will blink, sending you a welcoming message in Morse code
Vessel's lights are divided into 3 groups :
- Lights of crew-able part :
- They will remain off until a kerbal gets on-board
- Lights NOT in the light action group : (and kerbal's helmet light)
- They'll go on when the sun's fall, off when it rises
- Other Lights :
- They will work as usual, toggling by the light action group
This mod rely on the light action group to determine which light belongs to which group, in stock KSP you can change action group only in the editor, so no lights on all crafts already launched will react to the sun rising/falling. To change action group in flight you will need the mod Action Groups Extended, by Diazo.
Most of the function can be disabled, or tweaked, directly from the in-game settings screen :
There's also some extra option for the Morse Code message.
Due to limitation of the stock settings menu (or limitation to my modding skill :p ) it's a bit tricky to access it : in the settings screen enable the "More Morse Settings", hit accept, twice, and you got it.
Here you can change the morse message send by distant vessel as you approch them. And the timing for the different symbol (they are sync to the dit duration unless you check manual timing).
ModuleManager is the only dependency, all credits go to ialdabaoth and sarbian
Lights on kerbal's helmet don't turn on/off as the sun rises/falls. Lights will be turned on if the kerbal disembark in the dark but status of the sunlight won't be checked after that. The range sphere of the Motion Detector is offset from the light position only for the stock light, for others the sphere center is at the light position.
Report it to Github or the KSP forum
This is my first mod for KSP and one of my first working C# code, I've tested it on every situation I could think of but it may have bugs left.
A big thanks to all the modders/users of the KSP forum who have helped me, directly and by answering question before I posted them ๐
License is MIT