QuakeWorld Team Server Mod 1.0 by Fang^FAQ^ - Topi Paavola - tjp@cc.jyu.fi

FEATURES
========
This patch is an easy-to-use helper for team or clan fights: it resets
every player's items and frags at start, keeps track of time and
offers lots of useful options, all selectable before the match begins:

- Timelimit, fraglimit, teamplay and map selection.
- Powerups (quad, pentagram, ring) can be disabled.
- Fair start: all players get a grenade launcher and 100 green armor
  when they respawn for the first time.
- Normal QW respawn code or totally random respawns.
- Discharges can be disabled.
- Spectalk toggle (sets whether players can hear spectators' comments
  during the game)
- Dropquad and dropring options.
- Server locking options:
  * allow anyone to connect during a match
  * don't let any players in
  * players who have set their teams to one of the existing teams can
    connect (default)
- Automatic respawn after five seconds.
- Suicide-flood protection; only allows one suicide in 10 seconds.
- Night mode. No light in the map except for some fluorescent lights,
  water, slime and lava. You get a flashlight and flares. (Inspired by
  Midnight CTF)
- Two additional game modes: Llamaball and Basketball.

INSTALLATION
============
Unzip the patch to a directory called, for example, "team" and start
the server with "qwsv +gamedir team". A sample server.cfg is included
in the package; modify it to your taste. QuakeC notes: If you want to
change the MOTD (message of the day), see the MOTD_TEXT macro in
motd.qc. Most changes to id code are marked with "TEAM" -comments. The
code is based on QW 2.01, and makes use of the M4 macro processor; see
compile.txt for more information.

Server admins can add special maps to the big list in maps.qc and the
MAPSTEXT macro in commands.qc.

The following serverinfo keys can be set to 1 or 0 to enable or
disable the corresponding option:

p       Powerups
r       Random respawns
f       Fair start
d       Discharges
dq      Quad dropping
dr      Ring dropping
n       Night mode

The patch updates the "status" serverinfo key to say "Standby",
"Countdown" or "x min left" and writes the match results to console
log (see the match.qc file).

COMMANDS
========
When the server is in pre-match mode, items cannot be picked up and no
damage can be done; however, players have all weapons and unlimited
ammo, so you can practice those rocket-jumps. After all players have
typed "ready", the game will start after a 30 second countdown.

Here are the commands available to players:

commands        Show this short list of commands.
ready           Type this when you are ready to start. The match begins
                when all players are ready.
break           or "notready". Stop the countdown or vote for stopping
                the match. A majority vote is needed.
options         Show some more commands.
advanced        Even more commands.
status          Show the match settings.
reset           Sets all options to pretty sane defaults.
maps            Show which special maps are available.

The "options" menu:

timedown        Subtracts five minutes from timelimit.
timeup          Adds five minutes to timelimit.
timedown1       -1 timelimit.
timeup1         +1 timelimit.
fragsdown       Subtracts five from the fraglimit.
fragsup         Adds five to the fraglimit.
dm              Changes deathmatch mode (1 - 5).
tp              Changes teamplay mode (1 - 3).
dropquad        If this is on, a player will drop the quad when he is
                killed. The quad can be picked up for the remaining
                time.
dropring        Same thing for rings.
lock            Change server locking mode.

The "advanced" menu:

respawn         Toggles totally random respawns; in other words, disables
                the QW spawnfrag avoidance code (if you love telefrags).
powerup         Toggles availability of Quads, Pentagrams and Rings.
fairstart       Gives grenade launcher, 5 rockets and 100 green armor at
                first respawn when enabled.
discharge       Toggles lightning gun underwater discharges.
spectalk        Sets whether players can hear spectators' comments during 
                a match. Handy for important clan matches. Spectalk is
                automatically enabled before and after the game.
lights          Switches map lighting on or off; if off, enables the
                "flashlight" and "flare" commands (bind them to a key).
game            Changes game mode (regular DM, Llamaball or Basketball).
rules           Gives a brief description of the current game mode.

Also, players can change the map by typing the map name - for example,
"dm4" or "e1m1".

The Llamaball game was primarily meant for 2-on-2 games, but is
probably playable with more players. A ball is spawned near a respawn
spot. The idea is to get points by passing the ball to your teammate;
the longer passes you make, the more points you get. You also get -5
points for throwing the ball into water/slime/lava, +5 for
intercepting an opponent's pass and +1 for fragging the ball carrier.
Use the "throw" command to throw the ball.

Basketball is another ballgame, and works best in dm4. You score 2 or
3 points for throwing the ball into the quad box. If a teammate held
the ball before you, he gets an assist bonus of 2 points. The only
weapon is the axe, but you can tackle players by running and jumping
into them; they might drop the ball when tackled. If the ball goes
into lava, the opponents get it. Don't throw the ball from too close
to the quad, or you get no points. Defending too close also gives you
damage. All armors are green +100 armors. Use "throw" to throw the
ball and "superjump" to jump quickly around the level.

COPYRIGHT AND PERMISSIONS
=========================
Basically, do whatever you want with this code as long as you keep
your modifications public and *don't* charge money for it. If you
use this in a public server, please mention me somewhere.

CREDITS AND THANKS
==================
- Tomppa & the rest of the guys at Cute (www.cute.org), for running
  this patch and many other cool servers
- kemiKal_sWeMoB, for ideas and parts of the code
- Axu<FAQ>, for the M4 hacks

DOWNLOAD
========
This patch is available at

FTP: ftp.cdrom.com:/packages/idgames2/quakec/teamplay/
WWW: http://www.quake.jyu.fi/archive/team.html

The latest news and the newest version can be found at the web page. If
you have any bug reports, suggestions or anything else, please send
email to tjp@cc.jyu.fi.

Enjoy!

(personal homepage: <http://www.jyu.fi/~tjp/>)
