Mwheel zoom script help :)
Im trying to get this QL script generators
http://qlzoomscript.heroku.com/ to translate into Warsow. Im not
sure if the alias cmds or the vstr's or what isn't working.
Would anyone be willing to take a look at it and see where the language differs.
Thanks a ton in advance for any help on this at all.
*Solution found. See below.
(updated 2012-08-20 06:02:21)
Would anyone be willing to take a look at it and see where the language differs.
Thanks a ton in advance for any help on this at all.
*Solution found. See below.
(updated 2012-08-20 06:02:21)
Oh that seems like one awesome script! I'd love to have that in
Warsow too, since im a big zoomuser. My 63 in zoomfov is a bit high
when it comes to longer distances.
capatcha is getting a lot tougher....
I should have stated that I have changed the cg_mouseaccel and cg_fov to m_accel and fov in the outputted script. This is not why its not working.
Forgot to say that in the OP.
*edit*
Im trying to help myself, but the wiki is severely slow and at times just wont load certain pages for me.
get this
Error 500!
/wiki/index.php
Internal Server Error!
:(
(updated 2012-08-20 02:07:50)
I should have stated that I have changed the cg_mouseaccel and cg_fov to m_accel and fov in the outputted script. This is not why its not working.
Forgot to say that in the OP.
*edit*
Im trying to help myself, but the wiki is severely slow and at times just wont load certain pages for me.
get this
Error 500!
/wiki/index.php
Internal Server Error!
:(
(updated 2012-08-20 02:07:50)
Yeah those captchas can be really annoying, It's a good thing you
only need to deal with them on your first few posts (can't remember
the exact number) should be 5 or 10.
Anyway, I will give this script a few tries - to see if I can get it working, although im no scripting guru :)
Anyway, I will give this script a few tries - to see if I can get it working, although im no scripting guru :)
Well, I'd advise against using vstr - instead you should just use
aliases. Here is a little sample (untested, though it should work).
If you rewrite the script in this style you should have what you're
looking for:
Edit: in case you need any specific help just post here I'll be glad to help you. :)
(updated 2012-08-20 02:53:22)
// These are your settings, you can add m_accel or anything else here
// If you want more just add more the way the other ones are created
// You will also have to adjust the cycles
alias defaults "fov 90; sensitivity 5.0"
alias settings1 "fov 72; sensitivity 4.0"
alias settings2 "fov 43; sensitivity 2.4"
alias settings3 "fov 21; sensitivity 1.2"
alias settings4 "fov 12; sensitivity 0.7"
// This is where the magic happens, aliases > vstr
// Make sure that you understand how this works in order to add more cycles
alias cycle1 "defaults; bind MWHEELUP cycle2; bind MWHEELDOWN cycle5"
alias cycle2 "settings1; bind MWHEELUP cycle3; bind MWHEELDOWN cycle1"
alias cycle3 "settings2; bind MWHEELUP cycle4; bind MWHEELDOWN cycle2"
alias cycle4 "settings3; bind MWHEELUP cycle5; bind MWHEELDOWN cycle3"
alias cycle5 "settings4; bind MWHEELUP cycle1; bind MWHEELDOWN cycle4"
// Execute the default cycle to reset the settings after a restart
cycle1
Edit: in case you need any specific help just post here I'll be glad to help you. :)
(updated 2012-08-20 02:53:22)
Thank you so much Orbital.
I will go though it and try your idea out.
*Edit*
Thanks again to Orbital who showed me the folly of my ways :P
I put a few extra commands and a few unbind commands as to stop the zoom from repeating if you rolled the mouse wheel to far forward or backwards.
Here is what I ended up with.
---------------------------------------------------------------------------
Warsow MouseWheel Zoom Script By Orbital and Funeral
// Roll your mousewheel forwards and backwards to zoom in and out.
// These are your settings, you can add m_accel or anything else here
// If you want more just add more the way the other ones are created
// You will also have to adjust the cycles
alias defaults "fov 130; sensitivity 1.0; m_accel 0.02"
alias settings1 "fov 104; sensitivity 0.8; m_accel 0.016"
alias settings2 "fov 62; sensitivity 0.48; m_accel 0.0096"
alias settings3 "fov 31; sensitivity 0.24; m_accel 0.0048"
alias settings4 "fov 18; sensitivity 0.144; m_accel 0.00288"
// This is where the magic happens, aliases > vstr
// Make sure that you understand how this works in order to add more cycles or less
alias cycle1 "defaults; bind MWHEELUP cycle2; unbind MWHEELDOWN"
alias cycle2 "settings1; bind MWHEELUP cycle3; bind MWHEELDOWN cycle1"
alias cycle3 "settings2; bind MWHEELUP cycle4; bind MWHEELDOWN cycle2"
alias cycle4 "settings3; bind MWHEELUP cycle5; bind MWHEELDOWN cycle3"
alias cycle5 "settings4; unbind MWHEELUP; bind MWHEELDOWN cycle4"
// Execute the default cycle to reset the settings after a restart
alias cycle1
----------------------------------------------------------------------------
(updated 2012-08-20 05:09:04)
I will go though it and try your idea out.
*Edit*
Thanks again to Orbital who showed me the folly of my ways :P
I put a few extra commands and a few unbind commands as to stop the zoom from repeating if you rolled the mouse wheel to far forward or backwards.
Here is what I ended up with.
---------------------------------------------------------------------------
Warsow MouseWheel Zoom Script By Orbital and Funeral
// Roll your mousewheel forwards and backwards to zoom in and out.
// These are your settings, you can add m_accel or anything else here
// If you want more just add more the way the other ones are created
// You will also have to adjust the cycles
alias defaults "fov 130; sensitivity 1.0; m_accel 0.02"
alias settings1 "fov 104; sensitivity 0.8; m_accel 0.016"
alias settings2 "fov 62; sensitivity 0.48; m_accel 0.0096"
alias settings3 "fov 31; sensitivity 0.24; m_accel 0.0048"
alias settings4 "fov 18; sensitivity 0.144; m_accel 0.00288"
// This is where the magic happens, aliases > vstr
// Make sure that you understand how this works in order to add more cycles or less
alias cycle1 "defaults; bind MWHEELUP cycle2; unbind MWHEELDOWN"
alias cycle2 "settings1; bind MWHEELUP cycle3; bind MWHEELDOWN cycle1"
alias cycle3 "settings2; bind MWHEELUP cycle4; bind MWHEELDOWN cycle2"
alias cycle4 "settings3; bind MWHEELUP cycle5; bind MWHEELDOWN cycle3"
alias cycle5 "settings4; unbind MWHEELUP; bind MWHEELDOWN cycle4"
// Execute the default cycle to reset the settings after a restart
alias cycle1
----------------------------------------------------------------------------
(updated 2012-08-20 05:09:04)
I just bind MWHEELUP to set a low zoomfov and set my normal zoomfov
on each weapon bind. This way I just scroll up once if I want to
zoom across some giant CA map. Much more simple and something to
consider. :D
Ah, yeah, cycling through the settings infinitely is obviously not
wanted. :P
As said the whole thing was untested but if your variation works for you, that's nice! Btw, a cool variation is being able to activate the script via a certain key (e.g. alt) - that way it will automaticly reset as soon as you let go of that key. This is how you'd do that:
So in this manner it would do nothing (you could bind something do these keys in -cycling if you wanted) while you're just playing normally. This prevents that you accidentally zoom in. Now if you press ALT (or whatever key you choose) you can start zooming with your mouse wheel. As soon as you let go of ALT it will automaticly revert to the defaults. :)
(updated 2012-08-20 18:19:22)
As said the whole thing was untested but if your variation works for you, that's nice! Btw, a cool variation is being able to activate the script via a certain key (e.g. alt) - that way it will automaticly reset as soon as you let go of that key. This is how you'd do that:
// The game will automaticly execute -cycling when you release the key
alias +cycling "cycle1"
alias -cycling "defaults; unbind MWHEELUP; unbind MWHEELDOWN"
// Disable the key binds to begin with
-cycling
bind ALT +cycling
So in this manner it would do nothing (you could bind something do these keys in -cycling if you wanted) while you're just playing normally. This prevents that you accidentally zoom in. Now if you press ALT (or whatever key you choose) you can start zooming with your mouse wheel. As soon as you let go of ALT it will automaticly revert to the defaults. :)
(updated 2012-08-20 18:19:22)
I hear you, but one of the reasons I like doing it this way is to
not have to hold a key while aiming. I just cant do it with
anything but mouse1. :P
I am interested in learning more though so variations and new ideas are always welcome on my end of the screen. :)
Thanks for all the help so far.
Be well.
I am interested in learning more though so variations and new ideas are always welcome on my end of the screen. :)
Thanks for all the help so far.
Be well.

