To this end I did some research and found a simple improvement consisting of single conditional check to see if the current escort ship has only one order to dock at its parent and if so cancel the dock order and then give them the attack order.
Code: Select all
<do_if value="this.assignedcontrolled.orders.count == 1 and this.assignedcontrolled.order.id == 'DockAt' and this.assignedcontrolled.order.$destination == this.assignedcontrolled.commander">
<cancel_order order="this.assignedcontrolled.order"/>
</do_if>
Note only ships waiting for an open dock will still be able to attack, ships that have an assigned dock are in the critical phase of the docking order and cannot abort docking. Attacking will still be put on their order queue though.
I have launched this as a mod found here on steam. The mod's source is also hosted on github here.
The feedback so far from end users has all been positive, reaching out to user for more direct feedback.