[solved] Help with a scoping script
#1
Hey everybody...I got this script off of the "scripts" thread. Its purpose is to allow the player to zoom in while scoping (by using scroll i believe). Unfortunately, after a week of trying to get this thing to work, I have failed. At first, when I scrolled, I would just change weapons. Since then I have set "Next Weapon" and "Previous Weapon" to different keys in the keyboard settings. Now it stays in scope but it still won't zoom. Am I missing something? I'm not the smartest dude when it comes to scripting but here's what I got in my scripts folder:

//zoom script by stef with fog 1024 trick added, a must for a sniper
alias adjustsens [
scopefov 40
scopesensscale = (divf $scopefov $fov)
]
alias altaction_4 [ alias oldfog $fog;fog 1024
adjustsens; domodifier 1; zoom 1;
onrelease [ zoom 0; adjustsens; fog $oldfog ]
]
alias delta_game_1 [
if (= $arg1 1) [
if (> $scopefov 5) [scopefov (- $scopefov 5) ]
][
if (< $scopefov 60) [scopefov (+ $scopefov 5) ]
];
sensitivity (divf (*f (*f $oldsens $scopesensscale) $scopefov) 40)
]

Anyone have this script or know how to make it work?
Thanks given by:
#2
Here is a script I've been using by Kirin, it allows me to zoom in and out using the scroll wheel on my mouse. Idk if this will help.
//ZoomWheel-Script by Kirin
if (checkalias dscopefov) [] [
dscopefov = $scopefov;
echo (c 0) Zoom Script by (c X) Kirin (c 0) successfully injected!
]
autoscopesens 1
scopefov $dscopefov
alias delta_game_zoomwh [-= scopefov (* 10 $arg1)]
alias altaction_5 [ domodifier zoomwh; scopefov $dscopefov; setscope 1; onrelease [ setscope 0 ] ] // Sniper
Thanks given by:
#3
that. is fantastic :D thx so much man
Thanks given by:
#4
Solved?
Thanks given by:
#5
No problem, glad I could help!
Thanks given by:
#6
Since this clearly was solved i change the title to that.
Thanks given by: