---------------
ServerMode v0.1
(C)2005 iDeFiX
---------------


Description
-----------

An Unreal Tourmanent mutator which allows to easily switch the server between different modes.
A mode can be a mix of settings, gametype, mutators and map.


Installation
------------

Copy the files in this package to the UnrealTournament\System directory.

If you want ServerMode always to be active, add the following line to the server's ini:
ServerActors=ServerMode01.ServerModeSA

To add as an mutator, add the mutator ServerMode to the server mutator list.

Important:
- Don't add ServerMode as a serveractor and mutator together!


Configuration
-------------

This mutator can be configured in ServerMode.ini.

Up to 5 modes can be configured: ServerMode01.ServerMode1, ServerMode01.ServerMode2, etc. Two samples for mode 1 (called 'FFA', public) and mode 2 ('war', official clanbase game):

[ServerMode01.ServerMode1]
Name=FFA
DefaultMap=CTF-Face.unr
DefaultGametype=botpack.ctfgame
DefaultMutators=XMaps.XMapsControl
Commands[0]=set UTPureRC7G.UTPure bUTPureEnabled False
Commands[1]=set UTDCv16b.UTDCMut UTDCActive false
Commands[2]=set Botpack.DeathMatchPlus btournament false
Commands[3]=set MvReporter.MvReporterConfig bEnabled false
Commands[4]=
Commands[5]=
Commands[6]=
Commands[7]=
Commands[8]=
Commands[9]=
ForceRestart=true
ForceDefault=true

[ServerMode01.ServerMode2]
Name=War
DefaultMap=CTF-Orbital-LE102.unr
DefaultGametype=botpack.ctfgame
DefaultMutators=BotPack.NoRedeemer,SmartCTF_4C.SmartCTF
Commands[0]=set UTPureRC7G.UTPure bUTPureEnabled true
Commands[1]=set UTPureRC7G.UTPure bForceDemo true
Commands[2]=set UTPureRC7G.UTPure bDoEndShot true
Commands[3]=set UTDCv16b.UTDCMut UTDCActive True
Commands[4]=set Botpack.DeathMatchPlus btournament true
Commands[5]=set MvReporter.MvReporterConfig bEnabled true
Commands[6]=
Commands[7]=
Commands[8]=
Commands[9]=
ForceRestart=true
ForceDefault=true

ForceRestart will restart the map after a mode is set; most settings require this to become active. ForceDefault will restart the game to the configurated map/game/mutator.
Be carefull if using ServerMode and a servermode mutator together (because a servermode mutator attempts to overrule).

Important:
- Don't add a servermode mutator to a DefaultMutators list!
- Setting a mode doesn't explicit mean restarting/changing the game. Changing a mode with ServerMode means: "Process commands[0]-commands[9]" THEN "ForceDefault? Restart with defaults" THEN "ForceRestart? Restart" THEN "continue".


Usage
-----

To view available/current mode/help, enter the following command in the console:
MUTATE MODE

To change mode, login as administrator (ADMINLOGIN) and enter the following command in the console:
MUTATE MODE {number}

It's possible to select a mode as mutator, for usage with Mapvote. Add the mode it to the mutator list (check ServerMode01.int). For example, to select mode 1 add "ServerMode01.ServerMode1" (or "ServerMode #1" in GUI) to the mutator list.


Feedback
--------

If you have problems, suggestions, questions etc, please contact me at #dutchnet (QuakeNet) or idefix4u@xs4all.nl


Credits
-------

Unknown.


History
-------

0.1: Released