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

Fixes a bug in 4.2: if you pick up both kinds of grenades, it only allows you to select the last type you picked up. For example, if you spawn with HE and then pick up smoke, pushing 2 switches to smoke, but pushing 2 again would not switch to HE like it should—you're stuck with smoke.

by iynque Edit

  • Push 2 to switch to grenades.
  • Push 2 again to switch to the other type of grenades.

iy_grenadebugfix.cfg

  1. //Nade bug fix
  2. //  Push 2 to switch to grenades. Push 2 again to switch
  3. //  to the other type of grenades.
  4.  
  5. //Fixes a bug in 4.2: if you pick up both kinds of grenades,
  6. //it only allows you to select the last type you picked up.
  7. //For example, if you spawn with HE and then pick up smoke,
  8. //pushing 2 switches to smoke, but pushing 2 again would
  9. //not switch to HE like it should--you're stuck with smoke.
  10.  
  11. //No nades? Nothing happens.
  12. //One type (smoke or HE)? Selects that type.
  13. //Both types? One will be selected, and
  14. //  pushing 2 again selects the other.
  15.  
  16. set iy_get_nades    "vstr iy_get_he"
  17.  
  18. set iy_get_he       "set iy_get_nades vstr iy_get_smoke;    weapon 13; weapon 11"
  19. set iy_get_smoke    "set iy_get_nades vstr iy_get_he;                  weapon 11; weapon 13"
  20.  
  21. bind 2 "vstr iy_get_nades"
  22.  
  23. //created by iynque
  24. ut_echo ^7[^4iy_grenadebugfix.cfg loaded^7];echo iy_grenadebugfix.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.