FANDOM


This page includes script files for Urban Terror.

Copy the script and paste it into a text editor. Then save it with a .cfg extension in your Game path. To execute, type /exec <script name> in Console.
For more information, see Installing Scripts.

See Category:Scripts & Configs for more information about scripts, scripting, and additional sample scripts.

File-script

by iynqueEdit

By default, Urban Terror allows you to use the mouse wheel to change weapons, but you can't select the knife that way. This script allows you to change weapons with the mouse wheel, including the knife.

This script assumes you want keys 1 though 5 to be bound to weapon selection in addition to the mouse wheel for weapon selection. You can simply remove the number binds if you don't want to use them. The script works regardless of whether the number binds are there.

iy_mwheel.cfg

  1. //Wheel with knife
  2.  
  3. //Allows you to select weapon with the mouse wheel, including the knife
  4.  
  5. bind MWHEELUP       "vstr iy_wheelup"
  6. bind MWHEELDOWN     "vstr iy_wheeldown"
  7.  
  8. //You can remove these binds and use the number keys for whatever
  9.     bind 1          "vstr iy_weap01"
  10.     bind 2          "vstr iy_weap02"
  11.     bind 3          "vstr iy_weap03"
  12.     bind 4          "vstr iy_weap04"
  13.     bind 5          "vstr iy_weap05"
  14. /////////////////////////////////////////////////////////////////
  15.  
  16. set iy_wheelup      "vstr iy_weap01"
  17. set iy_wheeldown    "vstr iy_weap04"
  18.  
  19. set iy_weap01       "ut_weaptoggle knife;                                                                                               set iy_wheelup vstr iy_weap02; set iy_wheeldown vstr iy_weap05"
  20. set iy_weap02       "ut_weaptoggle knife; ut_weaptoggle grenade;                                                                        set iy_wheelup vstr iy_weap03; set iy_wheeldown vstr iy_weap01"
  21. set iy_weap03       "ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm;                                                 set iy_wheelup vstr iy_weap04; set iy_wheeldown vstr iy_weap02"
  22. set iy_weap04       "ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary;                        set iy_wheelup vstr iy_weap05; set iy_wheeldown vstr iy_weap03"
  23. set iy_weap05       "ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary; set iy_wheelup vstr iy_weap01; set iy_wheeldown vstr iy_weap04"
  24.  
  25. //created by iynque
  26. ut_echo ^7[^4iy_mwheel.cfg loaded^7];echo iy_mwheel.cfg loaded


by iynqueEdit

Same as the above script, but adds the bomb (bomb mode) to the mousewheel as well.

iy_mwheel-bomb.cfg

  1. //Wheel with knife
  2.  
  3. //Allows you to select weapon with the mouse wheel, including the knife
  4.  
  5. bind MWHEELUP       "vstr iy_wheelup"
  6. bind MWHEELDOWN     "vstr iy_wheeldown"
  7.  
  8. //You can remove these binds and use the number keys for whatever
  9.     bind 1          "vstr iy_weap01"
  10.     bind 2          "vstr iy_weap02"
  11.     bind 3          "vstr iy_weap03"
  12.     bind 4          "vstr iy_weap04"
  13.     bind 5          "vstr iy_weap05"
  14.     bind 6          "vstr iy_weap06"
  15. /////////////////////////////////////////////////////////////////
  16.  
  17. set iy_wheelup      "vstr iy_weap01"
  18. set iy_wheeldown    "vstr iy_weap04"
  19.  
  20. set iy_weap01       "ut_weaptoggle knife;                                                                                                                   set iy_wheelup vstr iy_weap02; set iy_wheeldown vstr iy_weap06"
  21. set iy_weap02       "ut_weaptoggle knife; ut_weaptoggle grenade;                                                                                            set iy_wheelup vstr iy_weap03; set iy_wheeldown vstr iy_weap01"
  22. set iy_weap03       "ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm;                                                                     set iy_wheelup vstr iy_weap04; set iy_wheeldown vstr iy_weap02"
  23. set iy_weap04       "ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary;                                            set iy_wheelup vstr iy_weap05; set iy_wheeldown vstr iy_weap03"
  24. set iy_weap05       "ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary;                     set iy_wheelup vstr iy_weap06; set iy_wheeldown vstr iy_weap04"
  25. set iy_weap06       "ut_weaptoggle knife; ut_weaptoggle grenade; ut_weaptoggle sidearm; ut_weaptoggle secondary; ut_weaptoggle primary; ut_weaptoggle bomb; set iy_wheelup vstr iy_weap01; set iy_wheeldown vstr iy_weap05"
  26.  
  27. //created by iynque
  28. ut_echo ^7[^4iy_mwheel-bomb.cfg loaded^7];echo iy_mwheel.cfg loaded


Scripts & Configs

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.