Posts: 762
Threads: 120
Joined: May 2011
ikljo was nice enough to share with me a cool scoping script (tyvm ikljo :D) but i was just wondering...although i can now zoom in with scoping, is there a way i can make the fog disappear while doing so and lowering the sensitivity while "in zoom"? anyone proficient in cube script? :P
Posts: 356
Threads: 18
Joined: Aug 2011
Posts: 1,718
Threads: 169
Joined: Jun 2010
12 Mar 12, 11:03PM
(This post was last modified: 12 Mar 12, 11:05PM by MykeGregory.)
/fog 1024?
dont know much about the sensitivity though, it would be a 'OnZoom' type thing though.
Posts: 762
Threads: 120
Joined: May 2011
(12 Mar 12, 10:49PM)Snoosnoo Wrote: Why you no one thread.
bcuz first thread = solved
Posts: 2,067
Threads: 11
Joined: Jun 2010
Why don't you just turn fog off, instead of only on zoom in.
I know how to do it in theory, but I'm not too good at the whole ($onRelease) part of Cubescript.
Posts: 560
Threads: 10
Joined: Jan 2011
13 Mar 12, 11:27AM
(This post was last modified: 13 Mar 12, 11:29AM by Frogulis.)
If by scoping script you mean that it uses the sniper scope, then don't look at the spoiler. If it's used to zoom any weapon, click away (at your own risk >:D).
Dunno what script you're using, but if it's a simple button press (right click to zoom or some such) then it may be in the form of
[cubescript]
bind MOUSE2 [ fov 30; onrelease [ fov 180 ] ]
[/cubescript]
Note: 30 and 180 aren't necessarily the real numbers. IIRC you can't get 30 fov in AC.
If this is the case, just add fog commands to each part:
[cubescript]
bind MOUSE2 [ fov 30; fog 1024; onrelease [ fov 180; fog 200 ] ]
[/cubescript]
I think that should work.
Of course, if it's the mouse wheel zoom script, that won't help at all.
I am not sure about this next solution (to be read: check with someone who knows more than me), but you could also use the addOnLoadAlways command to run /fog 1024 whenever a map starts. I think you run addOnLoadAlways only once, inside of AC.
This made me think of something
@Devs and/or knowledgeable people: Is there some way to return fog to the map default?
Posts: 840
Threads: 10
Joined: Jun 2010
It used to be a script like that in 1.0 but it's useless in 1.1 (kinda like myself hahaha) it did all that you want except maybe the sensitivity.
Posts: 762
Threads: 120
Joined: May 2011
13 Mar 12, 09:29PM
(This post was last modified: 13 Mar 12, 09:43PM by MerCyKiL.)
(13 Mar 12, 11:27AM)Frogulis Wrote: If by scoping script you mean that it uses the sniper scope, then don't look at the spoiler. If it's used to zoom any weapon, click away (at your own risk >:D).
Dunno what script you're using, but if it's a simple button press (right click to zoom or some such) then it may be in the form of
[cubescript]
bind MOUSE2 [ fov 30; onrelease [ fov 180 ] ]
[/cubescript]
Note: 30 and 180 aren't necessarily the real numbers. IIRC you can't get 30 fov in AC.
If this is the case, just add fog commands to each part:
[cubescript]
bind MOUSE2 [ fov 30; fog 1024; onrelease [ fov 180; fog 200 ] ]
[/cubescript]
I think that should work.
Of course, if it's the mouse wheel zoom script, that won't help at all.
I am not sure about this next solution (to be read: check with someone who knows more than me), but you could also use the addOnLoadAlways command to run /fog 1024 whenever a map starts. I think you run addOnLoadAlways only once, inside of AC.
This made me think of something
@Devs and/or knowledgeable people: Is there some way to return fog to the map default?
meant for sniper :P
(13 Mar 12, 08:00AM)Orynge Wrote: Why don't you just turn fog off, instead of only on zoom in.
I know how to do it in theory, but I'm not too good at the whole ($onRelease) part of Cubescript.
im cool doin that. my major problem is reducing sensitivity while in scope...
ok here's the script:
//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
im just wondering if anyone knows cubescript enough to write some into this that decreases sensitivity each time I zoom closer...
Posts: 45
Threads: 5
Joined: Sep 2011
16 Mar 12, 04:20PM
(This post was last modified: 16 Mar 12, 04:21PM by Noobicus.)
(13 Mar 12, 11:27AM)Frogulis Wrote: This made me think of something
@Devs and/or knowledgeable people: Is there some way to return fog to the map default?
You could load the current map fog level into a variable before setting foglevel 1024. Then on scope fog 1024. Off scope fog savedvariable.
Or something like that. :P
Posts: 992
Threads: 35
Joined: Mar 2011
autoscopesens 1 is what keeps it constant.
you could do something along the lines of coding
alias delta_game_zoomwh [-= scopefov (* 10 $arg1)]
do a similar thing with fog as that line and make another alias to incorporate it into the rest of the script. I am no wizard. I suggest going to #cubescript on irc @gamesurge or finding B}Ronald_Reagan, Bukz or some other well known cubescripters to help you. If you ask them directly and nicely, they might be willing to dedicate their time to helping. You can also post on the scripts thread in this forum asking for someone to help.
Posts: 762
Threads: 120
Joined: May 2011
found it guys! ikljo showed me that there's a "scope scale" in the gameplay options. noob has learned something today but ty for teh halp :)