Hi, I'm trying to make a script that makes clicking and holding the right mouse button zoom in to fov 90 and changes the gunsize to 0 [the larger one] until it is released.
I tried /bind MOUSE2 toggle cg_gunsize 0; toggle cg_fov 90 but it did not work.
Advertisement
Page 1 of 1
"Zoom" script
#2
Posted 04 September 2009 - 07:08 PM
This will also zoom in scoped weapons.
Use the search function in the future.
For what you want:
Use the search function in the future.
//PRESS AND HOLD ZOOM//
set do_zoom_on "ut_zoomin ; vstr fov_small"
set do_zoom_off "ut_zoomreset; vstr fov_wide"
set fov_small "cg_fov 90 ; cg_drawCrosshair 8; cg_crosshairSize 15; cg_drawHands 0"
set fov_wide "cg_fov 110 ; cg_drawCrosshair 7; cg_crosshairSize 15; cg_drawHands 1"
bind MOUSE2 "+vstr do_zoom_on do_zoom_off"
For what you want:
//PRESS AND HOLD ZOOM//
set do_zoom_on "ut_zoomin ; vstr fov_small"
set do_zoom_off "ut_zoomreset; vstr fov_wide"
set fov_small "cg_fov 90 ; cg_drawCrosshair 8; cg_crosshairSize 15; cg_gunsize 0"
set fov_wide "cg_fov 110 ; cg_drawCrosshair 7; cg_crosshairSize 15; cg_gunsize 1"
bind MOUSE2 "+vstr do_zoom_on do_zoom_off"
#4
Posted 04 September 2009 - 07:27 PM
You could do it in autoexec, but it is better to save it as zoomscript.cfg and add this line to your autoexec:
EXEC zoomscript.cfg
One thing- Windows doesnt like making .cfg files, so duplicate autoexec, rename it, and put in the script. Otherwise you will get zoomscript.cfg.txt
When you use the EXEC command, you can comment that line out (add "//" without the quotes before the line) to disable the script easily.
P.S. I am glad to help, keep the questions coming xD
EXEC zoomscript.cfg
One thing- Windows doesnt like making .cfg files, so duplicate autoexec, rename it, and put in the script. Otherwise you will get zoomscript.cfg.txt
When you use the EXEC command, you can comment that line out (add "//" without the quotes before the line) to disable the script easily.
P.S. I am glad to help, keep the questions coming xD
#5
Posted 04 September 2009 - 08:36 PM
Quote
You could do it in autoexec, but it is better to save it as zoomscript.cfg and add this line to your autoexec:
EXEC zoomscript.cfg
One thing- Windows doesnt like making .cfg files, so duplicate autoexec, rename it, and put in the script. Otherwise you will get zoomscript.cfg.txt
When you use the EXEC command, you can comment that line out (add "//" without the quotes before the line) to disable the script easily.
P.S. I am glad to help, keep the questions coming xD
EXEC zoomscript.cfg
One thing- Windows doesnt like making .cfg files, so duplicate autoexec, rename it, and put in the script. Otherwise you will get zoomscript.cfg.txt
When you use the EXEC command, you can comment that line out (add "//" without the quotes before the line) to disable the script easily.
P.S. I am glad to help, keep the questions coming xD
Well its easy to make cfg files just save with "name.cfg" and you are good to go. If you try to save without "" you get name.cfg.txt so just to say that its easier to make new than duplicate other cfg.
Advertisement
Page 1 of 1
1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users
Advertisement