Aliases[32]=(Command="Toggle bZoom | set Input MouseWheelUp cycleZoomLevel| set Input MouseWheelDown cycleZoomLevel 1| set Input RightMouse togglezoom_unzoom",Alias="togglezoom")
Aliases[33]=(Command="Toggle bZoom | set Input MouseWheelUp NextWeapon| set Input MouseWheelDown PrevWeapon| set Input RightMouse togglezoom",Alias="togglezoom_unzoom")
Aliases[32]=(Command="Button bZoom | set Input MouseWheelUp cycleZoomLevel | set Input MouseWheelDown cycleZoomLevel 1 | onRelease set Input MouseWheelUp NextWeapon | onRelease set Input MouseWheelDown PrevWeapon",Alias="wheelzoom")
ilys said:Change your zoom key to use wheelzoom
Aliases[34]=(Command="Set PlayerCharacterController ZoomLevel 0",Alias="LowZoom")
Aliases[35]=(Command="Set PlayerCharacterController ZoomLevel 1",Alias="HighZoom")
Aliases[32]=(Command="Toggle bZoom | set Input MouseWheelUp HighZoom| set Input MouseWheelDown lowZoom| set Input RightMouse togglezoom_unzoom",Alias="togglezoom")
(in a totally platonic way man...)buiZe said:holy christ i love you ilys
Aw cripes man, its not quite workin for me I think (or at least I cant get it to work so far...).ilys said:Do you want the zoom to toggle (sticky)?
I'll give you the code for both anyway.
For zoom toggling with wheelzoom whilst zoomed:
Add the following code to your user.ini file, replacing the lines that are already there.
Change your zoom key to use togglezoom.Code:Aliases[32]=(Command="Toggle bZoom | set Input MouseWheelUp cycleZoomLevel| set Input MouseWheelDown cycleZoomLevel 1| set Input RightMouse togglezoom_unzoom",Alias="togglezoom") Aliases[33]=(Command="Toggle bZoom | set Input MouseWheelUp NextWeapon| set Input MouseWheelDown PrevWeapon| set Input RightMouse togglezoom",Alias="togglezoom_unzoom")
Change RightMouse to whatever it is you use to zoom.
For wheelzoom whilst zoomed:
Add the following code to your user.ini file, replacing the line that is already there.
Change your zoom key to use wheelzoom.Code:Aliases[32]=(Command="Button bZoom | set Input MouseWheelUp cycleZoomLevel | set Input MouseWheelDown cycleZoomLevel 1 | onRelease set Input MouseWheelUp NextWeapon | onRelease set Input MouseWheelDown PrevWeapon",Alias="wheelzoom")
You may want to swap around the bindings for the wheel if you want the zooming and weapon switching to go the other direction.
Hope that helps.
Tahnit said:This script works however there are a few problems.
I dont get the uberhuge crosshair that i use for my sniping.
I dont get the "black border effect" i like that.
I dont get the zoom level readout wihle zoomed.
Is there anyway whatsoever to change the zoom key to toggle the above and not the "neuterd zoom".