Urban Terror Forums: Toggle Question - Urban Terror Forums

Jump to content

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

Toggle Question Rate Topic: -----

#1 User is offline   unclesam189 Icon

Posted 04 April 2013 - 12:30 AM

If I wanted to press the mouse3 button to toggle between |having attack set to the scroll wheel both up and down| and |attack set to mouse1 where scroll wheel switches weapons| how would I do this?

It's for fast knife in zbomb and superts (mod servers from 1up).

Thanks.

#2 User is offline   YAY5637 Icon

  • Account: yay5637
  • Main tag: <PWC>
  • Country:
  • Joined: 28-February 10
  • Posts: 633

Posted 04 April 2013 - 09:52 AM

Try that out, i didnt test it because i dont want to rebind my stuff ;)

bind mouse3 "vstr attack_script"
set attackscript "vstr attack1"
set attack1 "set attackscript vstr attack2; bind MWHEELDOWN +attack;bind MWHEELUP +attack; ut_echo fast attack"
set attack2 "set attackscript vstr attack1; bind MWHEELDOWN weapprev;bind MWHEELUP weapnext; ut_echo weapswitch"


#3 User is offline   unclesam189 Icon

Posted 04 April 2013 - 10:56 PM

tried it but it does not work. WHen I press mouse 3 it always echos fast attack and never weapswitch. Also you reference attack_script but only define attackscript which I fixed.

here it is:
bind mouse3 "vstr attack_script"
set attack_script "vstr attack1"
set attack1 "set attackscript vstr attack2; bind MWHEELDOWN +attack;bind MWHEELUP +attack; ut_echo fast attack"
set attack2 "set attackscript vstr attack1; bind MWHEELDOWN weapprev;bind MWHEELUP weapnext; ut_echo weapswitch"



Thanks.

#4 User is offline   unclesam189 Icon

Posted 04 April 2013 - 11:01 PM

woops, I didn't change them all to attack_script, now it works, thanks.

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