Thread: Zoom view?
View Single Post
  #16  
Old 11-05-2012, 03:18 AM
MadBlaster MadBlaster is offline
Approved Member
 
Join Date: Oct 2010
Posts: 666
Default

you can also use glovepie. youtube has tutorials, etc. if you never heard of it and want to learn more. below is a script that will do what you want. it assumes you are only using one joystick (labled "joystick1") and you will have to change the fov keys to whatever you are using in clod. joystick1.pov1 is your hat switch. var.fov is your virtual axis. when you start the script, var.fov is automatically initialized to equal zero as the starting point. var.fov++ add 1, var.fov-- subtracts 1.

;zoom script
if (var.fov <=10 and joystick1.Pov1=0 degrees) then //decrease fov/zoom in
key.end=true //change key.end to whatever your incremental decrease fov key is (e.g., key.delete)
key.end=false //same thing as above
var.fov++
endif
if (var.fov >=0 and joystick1.Pov1=180 degrees) then //increaese fov/zoom out
key.home=true //change key.home to whatever your incremental decrease fov key is (e.g., key.insert)
key.home=false //same thing as above
var.fov--
endif

Last edited by MadBlaster; 11-05-2012 at 03:23 AM.
Reply With Quote