http://www.urbanterror.info/support/178-map-cycles/
 Login | Register 
  urt_home downloads support news HD | members groups servers forums    Follow on external_facebookexternal_twitterexternal_youtubeexternal_rss_feed  
printer


Server Admin

Map Cycles

Map cycles in Urban Terror have been done to make configuring them easier. Instead of having strange commands in your server.cfg, Urban Terror loads maps and sets information from a simple text file.

By default, the map rotation file is called mapcycle.txt. This file must be placed in the q3ut4 folder of the server. You can change the name of the map cycle file by setting the g_mapcycle CVAR to the name of the alternate file. For example, to use a map rotation file called mymaps.txt, you'd go to the console and type:

/g_mapcycle " mymaps.txt"

The map rotation file is a basic text file (you can use MS Notepad, BBEdit, Word, etc to create it). In its most simple form, the file is just a list of maps, one map to a line. When the last map is finished, the first map in the file is loaded and the process repeats. So, for example, a mapcycle.txt that looks like this:

ut_ricochet
ut_swim
ut_uptown
Would load up ricochet, then swim, then uptown, and then restart.
You can also use the map rotation file to set any server CVAR. The format for
this is:
[mapname]
{
[cvar] [value]
[cvar] [value]
...
}


The [cvar] is the name of any Urban Terror server CVAR (eg: g_gametype) and the value is the value you want it set to. In the following example, the first example has been extended to set CVARs on ut_uptown:

ut_ricochet
ut_swim
ut_uptown
{
g_gametype 6
g_friendlyfire 1
g_maxteamkills 0
}


keylevel_none by - By Frozen Sand  -  Friday, 10 June 2011  -  viewed by 247 members and 7446 visitors


Copyright © 2012 FrozenSand / 0870760 B.C. Ltd  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of 0870760 B.C. Ltd