i think the best approach would be a time sensitive one, wherein if you come about as soon as the battle starts youd have trouble, and if it is later depending on who is winning youd have troubles, only less so
like depending on relative fleet sizes and whether the station is winning or not (and dispositions) you may have to fight a break off version of the fleet attacking, which should be factored into the ongoing battle
honestly that sounds like a lot of coding for something so simple, so really i think a one size fits all approach would be something similar to the way mount and blade handles things
i mean, it just doesnt make sense to me that youd be able to dock at a station under attack, whereas you COULD dock at a planet with a battlestation while it is under attack.
i mean there really is room for nuance here
say, a really large fleet is attacking a station (orbiting a planet wherein much of the population and infrastructure is planet based) wherein they could easily break off a detachment to mess with you, you would have to "deal with them," meaning a dialogue screen (open comms engage disengage etc).
if you want to dock at a small, self contained station, well tough luck as its in lockdown because its being attacked.
a larger (say, size 6) station on the other hand may be big enough that the fleets occupied with the main battlestation part are far enough away from the docking area (again, if the fleet is of appropriate size that it cant send a breakaway force to see whats up with you) you could still dock, albeit perhaps with limited functionality.
i mean, why would a fleet that is CLEARLY at war with the station be ok with ANYONE docking there?
it doesnt make much sense to me.
besides that, its not as if it would take them THAT long to fly around to whatever side of the station youre trying to dock with and say "hey, whats up. you gonna help us out here, or get lost? cause were kinda trying to screw the place up"
anyway, this is just an idea for the future more than anything, and as time goes on i would like to see something done to adress this, personally, because its what i think lol