Some progress on this one.
I added more config options including the possibility to specify the key which will zoom in and I also added a
zoom lock feature (as proposed by T-Man) that will lock the zoom.
But the bigger feature is the FRED interface for forcing zoom-in or -out and adding allowed/restricted classes on the (mission) fly.
They are used as following:
when
true
eval-script
function-name
where function-name is one of:
zoom_zoomIn():
Causes a zoom in. Locks all player zoom controls.
This is never automatically zoomed back so the FREDer has to take care of this!zoom_zoomOut():
Causes a zoom out. Also gives back zoom controlls to the player.
zoom_alS(ship):
Allows the ship class specified with
ship. For it to work specify the ship class escaped with ' because " crashes FRED.
Due to the SEXP string length restriction of FSO it may not be possible to use this with all ship classes.zoom_alW(weapon):
Allows the specified Weapon class. Essentially the same as zoom_alS().
zoom_reS(ship):
Restricts the specified Ship class. Essentially the same as zoom_alS().
zoom_reW(weapon):
Restricts the specified Weapon class. Essentially the same as zoom_alS().
New version is in wiki:
http://www.hard-light.net/wiki/index.php/Script_-_ZoomPlease report any bugs or unwanted side effect here.