Urban Terror Forums: 2 scripting questions - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

2 scripting questions Rate Topic: -----

#1 User is offline   unclesam189 Icon

Posted 11 April 2013 - 12:35 AM

set zoom_in "ut_zoomin; cg_fov 90; bind MOUSE1 vstr abc"
set zoom_out "ut_zoomreset; cg_fov 100; bind MOUSE1 vstr acb"
bind MOUSE2 "+vstr zoom_in zoom_out" 

set abc "bind MWHEELUP ut_zoomin; bind MWHEELDOWN ut_zoomout"
set acb "bind MWHEELUP weapnext; bind MWHEELDOWN weapprev"


this is supposed to zoom in with fov and hold to zoom with sr8+psg+g36. I want to be able to zoom in more by using the mousewheel while scoped in (sniper rifles+g36) and then when scoped out it again switches weapons. Doing something wrong though.


bind f "ut_zoomin; +attack"


Quickscope but doesn't work either. Do i need to insert -attack? where? possibly wait some idk what's going on here.

Thanks.

#2 User is online   JRandomNoob Icon

  •   moderator   
    Community Moderator

Posted 12 April 2013 - 10:41 PM

The first script works perfectly fine to me, although it seems completely nonsensical — why do you want to press MOUSE1 to activate zooming in and out with the wheel? Did you want to execute the vstr here? With
set zoom_in "ut_zoomin; cg_fov 90; vstr abc"
set zoom_out "ut_zoomreset; cg_fov 100; vstr acb"

it’s a great script that doesn’t seem to have any issues, and, being reset on button release, certainly has no “stuck state” problem that characterizes many zoom scripts.

The second script is just fundamentally bad — you want to scope in and shoot as quickly as possible while giving up the finer control necessary for such shot to hit. And no, I don’t think it could be made to work anyway; no matter what I tried, even with wait 100 (very noticable delay) the shots behave as if unscoped, and it randomly fails to shoot at all. Might be a feature of the game:-P
dswp.de
Beginner’s Guide to Urban Terror (woefully out of date)
Daily Deadnade (Last updated September 9, 2016)

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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

Sponsored link
https://www.urbanterror.info/members/donate/


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