Turns out this function that handles the new sonar contacts also handles many other things (aircraft spotted, smoke on the horizon, etc.). Very interesting function

I'm playing with it currently trying to figure out how it determines all these different items.