Author Topic: Zoom code?  (Read 745 times)

I'm aware that the zoom feature in blockland uses setzoom(); or something like that, but does anyone know all the code that goes into that function? (the one called when you press F by default?)
I'd like to tweak it out a bit. Thank you.

It calls toggleZoom which looks something like this:

Code: [Select]
function toggleZoom( %val )
{
   if ( %val )
   {
      $ZoomOn = true;
      setFov( $Pref::player::CurrentFOV );
   }
   else
   {
      $ZoomOn = false;
      setFov( $Pref::player::DefaultFov );
   }
}

setFov is an engine function
« Last Edit: September 13, 2015, 12:41:58 AM by Headcrab Zombie »