Engine( ORTSTrainDynamicBlendingTable( 0 ( 0 0 300km/h 0 ) 0.3 ( 0 1 300km/h 1 ) 0.9 ( 0 1 300km/h 1 ) 1 ( 0 0 300km/h 0 ) ) )
In this example, from 0 to 30% of the train brake controller, dynamic brake ranges from 0 to 100%. Then, it stays at 100%, and is deactivated if the train brake controller is in emergency position. Different % of dynamic braking can be applied depending on speed, if required.
This feature is typically useful for MU trains. It is a separate feature from the "local" dynamic brake blending from modern locomotives, which replaces air brakes with dynamic brakes if available.
I also added the possibility of removing the dynamic brake controller lock at Setup position: dynamic brake lever can be moved to any position, but it will only start braking after dynamic braking has been engaged. I'd need some feedback on what should be the default value: lock in setup position (this was the standard behaviour up to now), or do not lock by default (this seems to be the most common case).