Sniper Scripting Help
#1
How do I make it were everytime I press F8, it will zoom in by 10.
Thanks given by:
#2
you could bind F8 with /scopefov #
not sure what you mean by 10 though. :S
EDIT:
/bind F8 [if $scopefov [scopefov 10; echo ZOOMED] [scopefov 50; echo NORMAL]]

^^ Kinda like that... Not sure that works though.
Thanks given by:
#3
Lol, thank you, but not what I wanted but close, I mean like everytime I press F8, it will zoom in by 10% or what ever you call it.
Thanks given by:
#4
Not too hard to script, but I don't have anytime to throw it together right now. I'll paste something here soon enough.
Thanks given by:
#5
(18 Aug 12, 06:20PM)CDan75 Wrote: How do I make it were everytime I press F8, it will zoom in by 10.


Dont know if this is what you want I go into main menu settings viedo settings advanced viedo settings change the scope fov to 10 then go to keyboard settings change special action to the key you want use this should let you zoom to 10 on scope when you push the key you put in instead of rclick hope this helps
Thanks given by:
#6
1. Find and download Sniper Zoom Script
2. Extract/install
3. (optional) modify as needed
4. Be done with it :DDD
Thanks given by:
#7
i had dat script but stupid ac deleted it, with a bunch of others for some reason :(
Thanks given by:
#8
[cubescript]default_scopefov = 50
scopefov_increment = 10

validfov = [ bool = 0; if (&& (> $arg1 4) (< $arg1 61)) [ bool = 1 ]; result $bool ]

doscope = [
if (! $numargs) [
scopefov $default_scopefov
setscope 1
onrelease [ setscope 0 ]
] [
if (strcmp $arg1 "+") [
newfov = (- $scopefov $scopefov_increment)
if (validfov $newfov) [ scopefov $newfov ]
]
if (strcmp $arg1 "-") [
newfov = (+ $scopefov $scopefov_increment)
if (validfov $newfov) [ scopefov $newfov ]
]
]
]

altaction_5 = doscope
delta_game_0 = [ if (= (curweapon) 5) [ if (= $arg1 1) [ doscope + ] [ doscope - ] ] [ if (= $arg1 1) [ shiftweapon 1 ] [ shiftweapon -1 ] ] ][/cubescript]

Heres how I'd do it. Scrolling the mouse wheel while scoped will zoom in/out.

If you really want a version that just zooms in when you press F8, just do:

[cubescript]bind F8 [ doscope + ][/cubescript]
Thanks given by:
#9
Thank you for the Help People! Thanks! :D
Thanks given by: