Showing posts with label urban terror. Show all posts
Showing posts with label urban terror. Show all posts

Friday, 7 August 2009

A Guide to Configure Urban Terror on Linux

Urban Terror (or UrT for short, not to be confused with Unreal Tournament) is a great standalone first-person shooter available for Linux too, using the ioQuake3 engine. In this article I'll show several ways to make it a little faster by tweaking several variables in favour of performance over good looking graphics. Experienced players will probably know all of this, so this guide is intended to newbies.


The configuration settings will go inside a text file called autoexec.cfg, which should be created (if it doesn't already exist) inside the Urban Terror directory. That could be something like UrbanTerror or ~/.q3a/q3ut4/ (usually it should be the one which contains the ioUrbanTerror.i386 and ioUrTded.i386 files - or their 64-bit equivalents), depending on how and where you installed Urban Terror. The commands and scripts which are placed in this file are automatically executed when Urban Terror starts. You can set here keyboard binds, customise client variables, write basic scripts and so on.

Alternately, you can spread these settings all over more files, for example key binds in binds.cfg, cl variables in cl.cfg, scripts in scripts.cfg and so on, and then just add lines in autoexec.cfg which go like this:

exec binds.cfg
exec cl.cfg
exec scripts.cfg ...

UrT is based on the ioQuake3 engine, which is open-source and maintained by the ioquake3.org project, which just recently shipped a new version of the engine recently. So mostly all the configuration variables that apply to Quake 3 will apply to Urban Terror too.

To start with, for better understanding of how autoexec.cfg works, just create it and add some lines like this:

set r_gamma 1.3 // sets the gamma to a higher value than default
bind v "+button5" // +button5 means bandage, so pressing V will bandage yourself or a teamate

Everything that follows the two slashes are comments. Now you can observe the changes in the game, and see the maps are brighter than usual and V will trigger the bandage action. Notice that these can be configured from the game itself too, but there are some which don't, so you'll have to put them in a cfg file, otherwise they remain set to the default value.

Here are some lines to add in autoexec.cfg to make Urban Terror faster. Notice that everything that follows double slash (//) are comments, so the game will ignore those, and you don't have to add them in your file. There are comments on what a command is doing before it and comments showing the default value of the specified variable. The values I set here are the ones which I regularly use, but the comments will help you know what are the values for obtaining maximum performance. Notice that not all of them are engine-related, some will just customise the look and feel, without any impact on performance.

All of these are called cvars, which is the shorter form for Console Variables or Configuration Variables. Variables starting with r_ (e.g. r_gamma) refer to renderer variables, cl_ refer to client variables, sv_ (e.g. sv_) refer to server configuration, and so on. Also notice that although these are not all the cvars (huge lists can be found here, here or here), they are usually most useful for both configuring Urban Terror and getting a better framerate. Most of the variables can take either the value of 1 (true, enable) or 0 (to disable that specific cvar). You can maximum tweak some of them, but there are variables which should be left default, because enabling them can be really useful and the performance impact when disabling them is negligible.

// cg_ cvars
// prevents lag effects when shooting
set cg_antilag 1 // default 1
// use small gun; some players do not like the gun taking up half of the screen, use this setting to make it small
set cg_gunsize 1 // default 0
// hit sounds when hitting an opponent; this really helps to know whether you hurt an opponent or not
set cg_hitsound 1 // default 0

// amount of time ejected shells stay on the ground, has a small effect on performance if disabled; measured in miliseconds (so 5000 is 5 seconds)
set cg_sfxbrasstime 0 // default 5000
// disable muzzle flash from weapons
set cg_sfxMuzzleFlash 0 // default 1
// in how many spots an injured teamate bleeds
set cg_visibleBleeding 3 // default 5
// enable or disable breathing sound of an exhausted player
set cg_sfxBreathing 1 // default 1
// disable all particle effects except hit effects
set cg_sfxParticle 0 // default 0
// disable smoke effects like blood when hitting other players
set cg_sfxParticleSmoke 0 // default 0
// disable damage skins on models whena a player gets hit
set cg_sfxShowDamage 1 // default 1
// enable bullet impact effects when hitting surfaces
set cg_sfxSurfaceImpacts 1 // default 1

// if enabled it will show info messages about who hit you and where; 0 to disable, 1 to show where you were hit and by whom; 2 where, by whom and what amount of damage did they do
set cg_showBulletHits 0 // default 2
// show fps
set cg_drawfps 1 // default 1

// cap the maximum fps (frames per second)
set com_maxfps 70 // default 85

// Renderer cvars
// change gamma (brightness of colours)
r_gamma 1.4 // default 1

// mouse sensitivity
sensitivity 12 // default 5

// Keyboard binds
// these are binds which I use, so you should customise those to your likings, not everyone uses ESDF for movement etc.
// movement binds
bind e "+forward"
bind s "+moveleft"
bind f "+moveright"
bind d "+back"
bind SHIFT "+movedown"
bind r "+activate" // activate (use)
bind t "+button5" // reload
bind a "+button8" // sprint
bind q "+button6" // bandage

// weapons - should be self-explanatory
bind v "ut_weaptoggle knife"
bind w "ut_weaptoggle secondary"
bind z "ut_weaptoggle bomb"
bind g "ut_weaptoggle grenade"
bind z "ut_weaptoggle sidearm"

// misc binds
bind b "ui_radio" // open the radio menu

// chat binds
bind y "messagemode" // chat (all)
bind u "messagemode2" // chat (team)
bind i "messagemode3" // chat (target)

// Scripts
// UrT supports basic scripts, which allow you to change settings on the fly. For example:

set n0 "sensitivity 7; bind n vstr n1"
set n1 "sensitivity 9; bind n vstr n2"
set n2 "sensitivity 12; bind n vstr n0"
bind n vstr n0

// the above script will change the sensitivity when you press the N key, and cycle it through 7, 9 and 12

Additional resources
There are many places in which you can find help on further configuring Urban Terror, like the official manual or Quake 3 configuration sites, like this or this.

Tuesday, 24 March 2009

First-Person Shooter Games for Linux III: Urban Terror


This article is part of the first-person shooter games reviews I'm putting up. Until now I talked about Wolfenstein: Enemy Territory, ioQuake3, UT2004, Nexuiz and OpenArena. For those who want to read my previous articles, here are the links:

3 Classic First-Person Shooter Games for Linux

First-Person Shooter Games for Linux II: Nexuiz and OpenArena

I will dedicate this edition entirely to Urban Terror, a great first-person shooter game which was initially developed as a Quake 3 mod and evolved into a powerful and fast standalone game. Most of the people who played both Counter-Strike on Windows (or through Wine) and Urban Terror usually have the same opinion when describing it: it's like Counter-Strike, only better. That was my impression too. I think Urban Terror is the best alternative for those who like CS and eventually made the switch from Windows. It is natively supported on Linux, it is maintained constantly and it has a solid community. In fact, when I first played it about a year ago, I was stunned to see that I was playing it very good just because I was used with Counter-Strike.

Developed by Frozen Sand, the team behind it, Urban Terror was initially developed as a Quake 3 mod, but the game offers now a complete package and can be run without the need of Quake 3 binaries. The last version, UrT 4.1, comes with a ZIP package for Linux, of about 700 MB, and you only need to uncompress it, make the ioUrbanTerror.i386 binary executable and run it.

A multiplayer game on Abbey

The game features modes like TDM (team deathmatch), FFA (free for all) or CTF (capture the flag) and provides a large number of weapons to choose from, like the popular Kalashnikov, the M4A1 or the Remington SR-8. Usually each weapon should be used in a different way (for example you can use to Remington to snipe your opponents and the powerful Kalashnikov for medium-range combats). Notice that the rebound is pretty high, so firing constantly will do anything else but hitting your opponent. It's best to use burst firing when you have an automatic weapon.

Prague, one of the most popular maps

One of the features I find great in Urban Terror is the ability to run for a short distance, then keep the crouch key pressed: this way you will be able to move very fast, and it's useful especially to make quick and unexpected attacks and to go quickly from one part of the map to another. Of course, there is an energy bar which will start to decrease when running or jumping, so you will have to walk from time to time too in order to save strength for when you will need it.

Another feature is the ability to 'bandage' yourself and other wounded teammates. After a successful attack against you, your character will not be able to run or walk at full speed unless you bandage yourself (or another teammate bandages you). Also, depending on how much health you have left, you will not be able to run at maximum speed or make long jumps.

The game comes bundled with around 30 wonderful maps, which vary from cities to jungle areas or desert. Maps like Kingdom, Abbey, Prague or Uptown are very popular on the Internet servers.

The game was designed for multiplayer only, and bots are not supported officially, but still there is the possibility to play against bots (read how in this forum thread). Instead, the game offers a great and dynamic online playing experience. The servers are usually crowded, and the multitude of mods will certainly fit any fan of fast-paced shooter games.

Uptown, probably the most played map

The graphics are not very impressing, but at least this allows the game to run on older computers too. I tested on my Core 2 Duo 1.8 GHz and GeForce 7600 GS and it runs at a steady 76 fps using the resolution 1280x1024. I usually encounter frame drops only on several maps with water and many players, otherwise there are no problems running it.

Another aspect worth mentioning are the trickjumps and the ability to jump off walls, which, in combination with the run/crouch ability will let you go in places inaccessible otherwise.

Many competitions are often organised, and details regarding those are available on the official website and the forums.

In conclusion, Urban Terror is awesome in every aspect (maybe except the graphics which are not exactly the newest) and it offers a great pleasure playing it. It's fast-paced, it has plenty of mods and maps, and it allows you to configure everything just the way you want it.