Variable Masslock

Ships have shorter masslock radius based on mass.

 Ship name	    Mass    Masslock radius (r=mass*0.02+17000)
 Adder          16 t    17 km
 Gecko          25 t    17.5 km
 Sidewinder     25 t    17.5 km
 Viper          34 t    17.7 km
 Mamba          36 t    17.7 km
 Moray          51 t    18 km
 Cobra Mk I     52 t    18 km
 Fer-de-Lance   53 t    18 km
 Asp            76 t    18.5 km
 Krait          93 t    19 km
 Boa            182 t   20.5 km
 Cobra Mk III   215 t   21 km
 Boa2           216 t   21 km
 Python         267 t   22 km
 Anaconda       438 t   26 km

You can't use Tours drive in combat situations due to red alert, regardless of these distances.

Torus will disengage when a new ship arrives in scanner range but you can engage it again when your alert level is green.

Ships outside of masslock range are marked with darker yellow lollipop in green alert.

Torus will disengage when there are asteroids, buoys, cargo boxes or mines in a collision course to allow time to slow down and prevent impact.

Instructions:

Do not unzip the .oxz file, just move into the AddOns folder of your Oolite installation.

License:

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License version 4.0.
If you are re-using any piece of this OXP, please let me know by sending an e-mail to norbylite@gmail.com.

Changelog:
 2026.02.20. v2.0  Rewrites by cag.
 2015.05.22. v1.1  Set proper scannerDisplayColors for ships out of masslock range.
                   Torus stop before Buoys and cargo boxes, not only asteroids.
 2015.04.20. v1.0  First release.
