Urban Terror Wiki
Register
Advertisement
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[]

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

iy_grenadebugfix.cfg

//Nade bug fix
//  Push 2 to switch to grenades. Push 2 again to switch
//  to the other type of grenades.

//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.

//No nades? Nothing happens.
//One type (smoke or HE)? Selects that type.
//Both types? One will be selected, and
//  pushing 2 again selects the other.

set iy_get_nades    "vstr iy_get_he"

set iy_get_he       "set iy_get_nades vstr iy_get_smoke;    weapon 13; weapon 11"
set iy_get_smoke    "set iy_get_nades vstr iy_get_he;                  weapon 11; weapon 13"

bind 2 "vstr iy_get_nades"

//created by iynque
ut_echo ^7[^4iy_grenadebugfix.cfg loaded^7];echo iy_grenadebugfix.cfg loaded
Advertisement