07 Mar 12, 11:57PM
(This post was last modified: 08 Mar 12, 01:39AM by OpenSource.)
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?
//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?