In the following, I use the term departure signal to make clear that I refer to a whole family of signals. Members of the family are UK contemporary ready-to-start and "station work complete", German Zp9, French "Plaque mi-blanche, mi-verte", etc.
Conditions to show the departure signal are
- passenger exchange complete (end of "loading activity")
- departure time arrived
- next signal is clear
Forms/aspects of the departure signal are
- a whistle or similar blown by the guard
- a buzzer and/or a light in the cab remotely actuated by the guard
- a figure showing a hand signal
- a stationary signal, occasionally repeated
To implement these variations, I guess the best way would be to build up on the framework for signals. Such a "signal" would have one link between platform and next signal. It can be linked to any animation and shape. To implement the buzzer inside the cab, it would have to send a message to the train (which is possible, too). Sounding the buzzer would require a bit of engine scripting, but it would allow for perfect customisation, which is certainly required if you look at the diversity of such installations in modern trains around the world.
To make it possible, two new functions must be introduced (by RSC):
LoadingComplete -- called when the loading is complete, and
DepartureTimeArrived -- called when the departure time arrived.
The state of the next signal can be checked using the existing getNextSignalState function. Making the DepartureTimeArrived function available to all signals will also benefit cases where the signal is not pulled before departure time.
Although not demanded as much, this feature could also help to beef up the freight loading gameplay. Instead of "ready for departure", the guard will show "pull back", or "push on". Unfortunately, making him show "stop" when the next wagon is in the right position will require another, more complex, expansion of the system not to be discussed here. As a stop-gap solution, signals can be dedicated to a certain type (length) of wagon, which would not be all that bad given the small set of hopper wagons available. Once the signal gets informed about the TAB press, the driver could switch between wagon types.