16 Jan 11, 08:04PM
[SELECT ALL] Code:
bind MOUSE2 [
startfov = $fov
if (= (curweapon) 5) [] [ // Avoid screwing up any sniper scope scripts clients may have
while [ (> $fov 75) ] [ fov (- $fov 1) ] // Zoom in with while :)
onrelease [
loop s (- $startfov $fov) [ // Zoom out with loop, couldn't get while to work here :p
if (= $fov $startfov) [] [
fov (+ $fov 1)
]
]
]
]
]
I know it's after the deadline but I was proud that I finally got while to work without bombing my client! :P