Urban Terror Forums: "Zoom" script - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

"Zoom" script Rate Topic: -----

#1 User is offline   spook (old) Icon

  • Joined: 19-April 09
  • Posts: 25

Posted 04 September 2009 - 03:01 PM

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.

#2 User is offline   yumcax (old) Icon

  • Joined: 08-February 09
  • Posts: 116

Posted 04 September 2009 - 07:08 PM

This will also zoom in scoped weapons.
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"



#3 User is offline   spook (old) Icon

  • Joined: 19-April 09
  • Posts: 25

Posted 04 September 2009 - 07:13 PM

My apologies for not using search.

Thanks. So I should write that in the console or autoexec or what?

#4 User is offline   yumcax (old) Icon

  • Joined: 08-February 09
  • Posts: 116

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

#5 User is offline   Rappio Icon

  •   mapper   
  • Account: rappio
  • Main tag: [PRKL]
  • Country:
  • Joined: 28-February 10
  • Posts: 484

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




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.

bullet_loaderAdvertisement

#6 User is offline   dAkINGaRN Icon

  • Account: dakingarn
  • Main tag: [GSG]
  • Country:
  • Joined: 01-March 10
  • Posts: 6

Posted 04 May 2010 - 12:14 AM

can i change the numbers to get more zoom or is it impossible?

#7 User is offline   ObScUrE Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: obscure
  • Country:
  • Joined: 28-February 10
  • Posts: 2,192

Posted 04 May 2010 - 01:15 AM

fov is locked between 90-110 so no way.

Quote

BenQ-XL2420T|Filco-Ninja-TKL-MXRed|Logitech-G403|AKG-K70201000010 01101100 01110101 01110100 01010010 01100001 01110101 00100100 01100011 01101000~The quieter you become, the more you are able to hear.~

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942