Urban Terror Forums: Double Bind - Urban Terror Forums

Jump to content

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

Double Bind Rate Topic: -----

--

#1 User is offline   broxz Icon

  • Account: broxz
  • Joined: 02-August 12
  • Posts: 2

Posted 21 September 2012 - 05:41 PM

Hello, i was wondering if you could make something like, /bind END ; bind mouse1 "+attack;ut_zoomreset .

#2 User is offline   ValkoVer Icon

  •   mapper   
  • Account: valkover
  • Country:
  • Joined: 28-February 10
  • Posts: 645

Posted 21 September 2012 - 11:42 PM

There's no an easy way to do it, but you can do it with scripts:
bind END "+vstr bind_off bind_on"
set bind_off	"vstr default_bind"
set bind_on		"vstr double_bind"
set default_bind	"bind MOUSE1 +attack"
set double_bind	"bind MOUSE1 ut_zoomreset"
vstr			"default_bind"

You have to press END key and then rmb to execute double bind command (in this case zoom reset), when only rmb is pressed, it will work as normal attack key. Unfortunately END key can't be used as single key. It might not work because i don't tested it in game.

#3 User is offline   broxz Icon

  • Account: broxz
  • Joined: 02-August 12
  • Posts: 2

Posted 22 September 2012 - 11:31 PM

Sorry, what you mean?

#4 User is offline   broxz Icon

  • Account: broxz
  • Joined: 02-August 12
  • Posts: 2

Posted 22 September 2012 - 11:49 PM

I only wanna know the bind, nothing else please whats the bind. what should i write to get it working i only want it like turning on there. not like off and on, only on :D

#5 User is offline   Runamok Icon

  • Account: runamok
  • Main tag: -WAR-
  • Country:
  • Joined: 01-March 10
  • Posts: 472

Posted 23 September 2012 - 07:07 AM

this should work

bind END "bind mouse1 +vstr shoot_on shoot_reset"
seta shoot_on "+attack
seta shoot_reset "-attack;ut_zoomreset;-attack"

but if you only ever want it on, why don't you just type

bind mouse1 "+attack;ut_zoomreset"

edit: haha, whoops my bad, I'll write a press and release one.. should thought that through

the mouse1 bind by itself still works as intended though

This post has been edited by Runamok: 27 September 2012 - 08:13 AM

-WAR-Runamok`

cyrus: "Camping" is a non-issue for a player that uses his/her head.

bullet_loaderAdvertisement

#6 User is offline   Iye Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: iye
  • Country:
  • Joined: 07-June 11
  • Posts: 1,054

Posted 26 September 2012 - 11:42 AM

View PostRunamok, on 23 September 2012 - 07:07 AM, said:

this should work

bind END "bind mouse1 vstr shoot_reset"
seta shoot_reset "+attack;ut_zoomreset"

but if you only ever want it on, why don't you just type

View PostRunamok, on 23 September 2012 - 07:07 AM, said:

bind mouse1 "+attack;ut_zoomreset"

AHHH :wacko:
don't do this.
it will set attack to 1 and you will attack forever (until you restart the game)
better try:
bind MOUSE1 "+atack;ut_zoomreset;-attack"

after all this isnt a good solution too. Because it will bind MOUSE1 to a quick-scope-out forever. Thsi will result in to the fact that every gun will be a semi auto, because this command starts and ends the attack after 1 shot.

Thats why you need the toggle.
Try:

// code snippet

//setting a toggle key
bind END "vstr mouse1_toggle"
//setting a toggle var (better than rebinding the key)
set mouse1_toggle "vstr mouse1_scope_out"
// setting option1 (scopeout)
set mouse1_scope_out "bind MOUSE1 vstr scopeout_attack;ut_echo ^1MOUSE1: ^3Scopeout;set mouse1_toggle vstr mouse1_normal"
//setting the scopeout attack
set scopeout_attack "+attack;ut_zoomreset;-attack"
//setting option2 (normal attack"
set mouse1_normal "bind MOUSE1 +attack; ut_echo ^1MOUSE1: ^2Normal Mode;set mouse1_toggle vstr mouse1_scope_out"
// running the normal attack for startup
vstr mouse1_normal;

// end of code snippet



have fun ^^ :rolleyes: :rolleyes:

This post has been edited by Iye: 26 September 2012 - 11:46 AM

Sorry for my bad spelling - I am still asleep. :)

|=| Iye's UrT Addon |=| Firefox Personas |=| Maps |=|
http://www.mediafire...vk3a602hcfg.jpg

#7 User is offline   Runamok Icon

  • Account: runamok
  • Main tag: -WAR-
  • Country:
  • Joined: 01-March 10
  • Posts: 472

Posted 27 September 2012 - 08:14 AM

whoops, I'll edit the post

bind END "bind mouse1 +vstr shoot_on shoot_reset"
seta shoot_on "+attack
seta shoot_reset "-attack;ut_zoomreset;-attack"

that's a press and release script, attack while holding down, and zoomout when letting go
-WAR-Runamok`

cyrus: "Camping" is a non-issue for a player that uses his/her head.

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

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