Fandom

Urban Terror Wiki

Script: Mini Games

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
Breakout

Breakout

Snake

Snake

by iynque Edit

Play Breakout and Snake. ⇧ Shift key starts Snake, push again for Breakout. In Breakout, resets Snake, resets Breakout. Use / key to pause mini game. Use arrow keys & to play breakout, and all four arrow keys (, , & ) to play Snake.

Remember to setup rebinds: these are what the arrow keys (and / key) re-bind to when you stop playing.

iy_playgames.cfg

  1. //PLAY BREAKOUT AND SNAKE
  2. //  SHIFT key starts Snake, push again for Breakout.
  3. //  In Breakout, ARROWUP resets Snake, ARROWDOWN resets Breakout.
  4. //  Use / key to pause minigame.
  5.  
  6. //KEY TO START MINIGAMES
  7. //  All other keys can revert when you're done, but you need
  8. //  one dedicated bind reserved to start minigames.
  9. bind SHIFT  "vstr iy_playtime"
  10.  
  11. //MINIGAME BINDS REVERT TO BINDS SET HERE
  12. set iy_revertbind01 "bind DOWNARROW     vstr iy_null"  //reset minigame bind to this bind, use "vstr iy_null" for none
  13. set iy_revertbind02 "bind UPARROW       vstr iy_null"  //reset minigame bind to this bind, use "vstr iy_null" for none
  14. set iy_revertbind03 "bind RIGHTARROW    vstr iy_null"  //reset minigame bind to this bind, use "vstr iy_null" for none
  15. set iy_revertbind04 "bind LEFTARROW         vstr iy_null"  //reset minigame bind to this bind, use "vstr iy_null" for none
  16. set iy_revertbind05 "bind /                 vstr iy_null"  //reset minigame bind to this bind, use "vstr iy_null" for none
  17.  
  18. //Snake Keys
  19. set iy_snakebind01  "bind UPARROW       snake_up"
  20. set iy_snakebind02  "bind DOWNARROW     snake_down"
  21. set iy_snakebind03  "bind LEFTARROW     snake_left"
  22. set iy_snakebind04  "bind RIGHTARROW    snake_right"
  23. set iy_snakebind05  "bind /             vstr iy_snakepause"
  24. set iy_snakebind06  "bind SHIFT         vstr iy_playtime"
  25.  
  26. //Breakout Keys
  27. set iy_breakbind01  "bind UPARROW       vstr iy_snakereset"
  28. set iy_breakbind02  "bind DOWNARROW     vstr iy_breakoutreset"
  29. set iy_breakbind03  "bind LEFTARROW     breakout_left"
  30. set iy_breakbind04  "bind RIGHTARROW    breakout_right"
  31. set iy_breakbind05  "bind /             vstr iy_breakoutpause"
  32. set iy_breakbind06  "bind SHIFT         vstr iy_playtime"
  33.  
  34. //The script!
  35. set iy_playtime         "vstr iy_playsnake"
  36. set iy_playsnake        "vstr iy_snakebind01;   vstr iy_snakebind02;    vstr iy_snakebind03;    vstr iy_snakebind04;    vstr iy_snakebind05;    vstr iy_snakebind06;    snake_play;     play sound\items\itemon.wav;    play sound\uptown\jazz.wav; ut_echo ^7[^8S^)N^2A^5K^(E^6!^7];           set iy_playtime vstr iy_stopsnake"
  37. set iy_stopsnake        "vstr iy_revertbind01;  vstr iy_revertbind02;   vstr iy_revertbind03;   vstr iy_revertbind04;   vstr iy_revertbind05;                   s_stop; snake_play;     play sound\items\itemoff.wav;                                                                           set iy_playtime vstr iy_playbreakout"
  38. set iy_playbreakout     "vstr iy_breakbind01;   vstr iy_breakbind02;    vstr iy_breakbind03;    vstr iy_breakbind04;    vstr iy_breakbind05;    vstr iy_breakbind06;    breakout_play;  play sound\items\itemon.wav;    play sound\uptown\jazz.wav; ut_echo ^7[^1B^8R^3E^)A^2K^5O^4U^(T^6!^7];  set iy_playtime vstr iy_stopbreakout"
  39. set iy_stopbreakout     "vstr iy_revertbind01;  vstr iy_revertbind02;   vstr iy_revertbind03;   vstr iy_revertbind04;   vstr iy_revertbind05;                   s_stop; breakout_play;  play sound\items\itemoff.wav;                                                                           set iy_playtime vstr iy_playsnake"
  40. set iy_snakepause       "snake_pause;       play sound\misc\menu1.wav"
  41. set iy_breakoutpause    "breakout_pause;    play sound\misc\menu1.wav"
  42. set iy_snakereset       "snake_reset;       ut_echo ^7[^4Resetting Snake...^7]"
  43. set iy_breakoutreset    "breakout_reset;    ut_echo ^7[^4Resetting Breakout...^7]"
  44.  
  45. //created by iynque
  46. ut_echo ^7[^4iy_playgames.cfg loaded^7];    echo iy_playgames.cfg loaded

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.