Fandom

Urban Terror Wiki

Script: Crosshair Toggle

190pages on
this wiki
Add New Page
Comments0 Share
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 BanMe Edit

  • Use & keys to change crosshair types.
  • Use & keys to change crosshair size.

Allows the user to see the crosshair while setting options, rather than using the options menu and then going back to the game to see what it looks like.

  1. //BanMe's Cross Hair Toggle
  2. //Left and right arrows change crosshair type
  3. //Up and down arrows change size of crosshair
  4.  
  5. set cross1 "cg_drawcrosshair 1;wait 15;ut_echo Crosshair 1;set nextcross vstr cross2;set lastcross vstr cross13 "
  6. set cross2 "cg_drawcrosshair 2;wait 15;ut_echo Crosshair 2;set nextcross vstr cross3;set lastcross vstr cross1 "
  7. set cross3 "cg_drawcrosshair 3;wait 15;ut_echo Crosshair 3;set nextcross vstr cross4;set lastcross vstr cross2"
  8. set cross4 "cg_drawcrosshair 4;wait 15;ut_echo Crosshair 4;set nextcross vstr cross5;set lastcross vstr cross3"
  9. set cross5 "cg_drawcrosshair 5;wait 15;ut_echo Crosshair 5;set nextcross vstr cross6;set lastcross vstr cross4"
  10. set cross6 "cg_drawcrosshair 6;wait 15;ut_echo Crosshair 6;set nextcross vstr cross7;set lastcross vstr cross5"
  11. set cross7 "cg_drawcrosshair 7;wait 15;ut_echo Crosshair 7;set nextcross vstr cross8;set lastcross vstr cross6"
  12. set cross8 "cg_drawcrosshair 8;wait 15;ut_echo Crosshair 8;set nextcross vstr cross9;set lastcross vstr cross7"
  13. set cross9 "cg_drawcrosshair 9;wait 15;ut_echo Crosshair 9;set nextcross vstr cross10;set lastcross vstr cross8"
  14. set cross10 "cg_drawcrosshair 10;wait 15;ut_echo Crosshair 10;set nextcross vstr cross11;set lastcross vstr cross9"
  15. set cross11 "cg_drawcrosshair 11;wait 15;ut_echo Crosshair 11;set nextcross vstr cross12;set lastcross vstr cross10"
  16. set cross12 "cg_drawcrosshair 12;wait 15;ut_echo Crosshair 12;set nextcross vstr cross13;set lastcross vstr cross11"
  17. set cross13 "cg_drawcrosshair 13;wait 15;ut_echo Crosshair 13;set nextcross vstr cross1;set lastcross vstr cross12"
  18.  
  19. set nextcross "vstr cross1"
  20. set lastcross "vstr cross1"
  21.  
  22. bind RIGHTARROW "vstr nextcross"
  23. bind LEFTARROW "vstr lastcross"
  24.  
  25. set size0"cg_crosshairsize 0; ut_echo Crosshair Size 0;set nextsize vstr size1;set lastsize vstr size100"
  26. set size1"cg_crosshairsize 1; ut_echo Crosshair Size 1;set nextsize vstr size2;set lastsize vstr size0 "
  27. set size2"cg_crosshairsize 2; ut_echo Crosshair Size 2;set nextsize vstr size3;set lastsize vstr size1 "
  28. set size3"cg_crosshairsize 3; ut_echo Crosshair Size 3;set nextsize vstr size4;set lastsize vstr size2 "
  29. set size4"cg_crosshairsize 4; ut_echo Crosshair Size 4;set nextsize vstr size5;set lastsize vstr size3 "
  30. set size5"cg_crosshairsize 5; ut_echo Crosshair Size 5;set nextsize vstr size6;set lastsize vstr size4 "
  31. set size6"cg_crosshairsize 6; ut_echo Crosshair Size 6;set nextsize vstr size7;set lastsize vstr size5 "
  32. set size7"cg_crosshairsize 7; ut_echo Crosshair Size 7;set nextsize vstr size8;set lastsize vstr size6 "
  33. set size8"cg_crosshairsize 8; ut_echo Crosshair Size 8;set nextsize vstr size9;set lastsize vstr size7 "
  34. set size9"cg_crosshairsize 9; ut_echo Crosshair Size 9;set nextsize vstr size10;set lastsize vstr size8 "
  35. set size10"cg_crosshairsize 10; ut_echo Crosshair Size 10;set nextsize vstr size11;set lastsize vstr size9 "
  36. set size11"cg_crosshairsize 11; ut_echo Crosshair Size 11;set nextsize vstr size12;set lastsize vstr size10 "
  37. set size12"cg_crosshairsize 12; ut_echo Crosshair Size 12;set nextsize vstr size13;set lastsize vstr size11 "
  38. set size13"cg_crosshairsize 13; ut_echo Crosshair Size 13;set nextsize vstr size14;set lastsize vstr size12 "
  39. set size14"cg_crosshairsize 14; ut_echo Crosshair Size 14;set nextsize vstr size15;set lastsize vstr size13 "
  40. set size15"cg_crosshairsize 15; ut_echo Crosshair Size 15;set nextsize vstr size16;set lastsize vstr size14 "
  41. set size16"cg_crosshairsize 16; ut_echo Crosshair Size 16;set nextsize vstr size17;set lastsize vstr size15 "
  42. set size17"cg_crosshairsize 17; ut_echo Crosshair Size 17;set nextsize vstr size18;set lastsize vstr size16 "
  43. set size18"cg_crosshairsize 18; ut_echo Crosshair Size 18;set nextsize vstr size19;set lastsize vstr size17 "
  44. set size19"cg_crosshairsize 19; ut_echo Crosshair Size 19;set nextsize vstr size20;set lastsize vstr size18 "
  45. set size20"cg_crosshairsize 20; ut_echo Crosshair Size 20;set nextsize vstr size25;set lastsize vstr size19 "
  46. set size25"cg_crosshairsize 25; ut_echo Crosshair Size 25;set nextsize vstr size30;set lastsize vstr size20 "
  47. set size30"cg_crosshairsize 30; ut_echo Crosshair Size 30;set nextsize vstr size35;set lastsize vstr size25 "
  48. set size35"cg_crosshairsize 35; ut_echo Crosshair Size 35;set nextsize vstr size40;set lastsize vstr size30 "
  49. set size40"cg_crosshairsize 40; ut_echo Crosshair Size 40;set nextsize vstr size45;set lastsize vstr size35 "
  50. set size45"cg_crosshairsize 45; ut_echo Crosshair Size 45;set nextsize vstr size50;set lastsize vstr size40 "
  51. set size50"cg_crosshairsize 50; ut_echo Crosshair Size 50;set nextsize vstr size55;set lastsize vstr size45 "
  52. set size55"cg_crosshairsize 55; ut_echo Crosshair Size 55;set nextsize vstr size60;set lastsize vstr size50 "
  53. set size60"cg_crosshairsize 60; ut_echo Crosshair Size 60;set nextsize vstr size65;set lastsize vstr size55 "
  54. set size65"cg_crosshairsize 65; ut_echo Crosshair Size 65;set nextsize vstr size70;set lastsize vstr size60 "
  55. set size70"cg_crosshairsize 70; ut_echo Crosshair Size 70;set nextsize vstr size75;set lastsize vstr size65 "
  56. set size75"cg_crosshairsize 75; ut_echo Crosshair Size 75;set nextsize vstr size80;set lastsize vstr size70 "
  57. set size80"cg_crosshairsize 80; ut_echo Crosshair Size 80;set nextsize vstr size85;set lastsize vstr size75 "
  58. set size85"cg_crosshairsize 85; ut_echo Crosshair Size 85;set nextsize vstr size90;set lastsize vstr size80 "
  59. set size90"cg_crosshairsize 90; ut_echo Crosshair Size 90;set nextsize vstr size95;set lastsize vstr size85 "
  60. set size95"cg_crosshairsize 95; ut_echo Crosshair Size 95;set nextsize vstr size100;set lastsize vstr size90 "
  61. set size100"cg_crosshairsize 100; ut_echo Crosshair Size 100;set nextsize vstr size0;set lastsize vstr size95 "
  62.  
  63. set nextsize "vstr size1"
  64. set lastsize "vstr size1"
  65.  
  66. bind UPARROW "vstr nextsize"
  67. bind DOWNARROW "vstr lastsize"

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.