This isn't what I'd call an actual zoom, but it may work well enough for the occasions where a closer look would be nice without actually getting closer.
If you add these lines to the "custom views" section of the shipdata.plist for your ship:
Code: Select all
{
view_description = "10 KM Zoom View";
view_orientation = "1.0 0.0 0.0 0.0";
view_position = "0.0 30.0 10000.0";
weapon_facing = "FORWARD";
},
{
view_description = "20 KM Zoom View";
view_orientation = "1.0 0.0 0.0 0.0";
view_position = "0.0 30.0 20000.0";
weapon_facing = "FORWARD";
}
Now, here's the regular forward view:
Note from the scanner that we're a bit over 20 km out from the station. So I use the "v" key to switch to custom views and scroll through to the "10 KM Zoom View"
Then the "20 KM Zoom View"
Ok, so far, so good.. (and the code mavens here might add "so what?", but it took me a bit to figure out and at least other mostly non-coders might have some use for it).. But there are some odd problems you can run into using it, which is why I referred to it as a kludge.
The "camera" won't collide with obstacles, but if it goes inside things that we'd normally think of as objects, it can look pretty weird..
That'd be the "inside" of the station in the other pics, except of course there really isn't anything interior to see, much. Kind of an "illusion breaker" in my opinion, so if you decide to try this, you might want to avoid doing that.
Using this kludge will not make anyone into a long-distance uber-sharpshooter, since the targeting reticle doesn't work in camera views. For that reason, also any ID-ing of ships using it to look out to the edge of scanner range would be visual ID only. That stands to reason in game logic, though, since if scanner range could be extended with the technology in the game universe, it stands to reason that would already have been done.
It might be some fun for long range sharpshooters who'd like to get a pic of the results of their shot though, if they lined up the shot before switching to the "zoom view".
It could maybe be useful at times when you can see something going on up ahead but aren't in scanner range yet, or to get some nice close-up shots of big things like stations without risking colliding with them. Might be handy for a player who's still early enough in the game to have to be very cautious about pirates and etc (though I doubt many of them go pasting code snippets).
Anyway, it's crude and inelegant, but it *sorta* simulates a zoom capability, so I figured I may as well post it.