
DeathMatch PLUS PACK! v1.12                                  by W.Harris
---------------------                                    wfh20@cam.ac.uk
                                                      Paragon_ on #quake

Microsoft did it! id DIDN'T so.. I DID!!

Features outlined:

        New Weapons
        -----------
        Timed Bomb.
        BFG.
        TripWire(s).
        Super Homing Bomb
        Super-Super Nailgun. :)
        Super-Rocket launcher.
        Super-Lightning gun.
        Cluster bombs.

        New Deathmatch Options
        ----------------------
        IT
        TI
        Quake-TI
        Capture the Flag
        NEW!! Random Capture the Flag
        Deathmatch 3
        NEW!! More versatile teamplay options.
        NEW!! Teamplay scores.

        New Other Stuff
        ---------------
        Personal Teleporter
        Each new item/weapon can be toggled on or off
        Multiskin 1.1 support
        Anti-suicide
        NEW!! Gibbable bodies
        NEW!! Teleporting Weapons.
        NEW!! Teamplay respawn points
        NEW!! Capture the flag level included
        NEW!! Place items on maps

        All New Remote Administration
        -------------------------
        Multilevel ops with passwords
        Kick,Gib,Op,Deop people.
        Change the current map.
        Change any Cvar.
        Type *any* command on the console remotely.

        And a few bug fixes :)

-----------------------------------------------------------------------------

New Weapons:

        Super Weapons powerup
        ---------------------

        In a deathmatch game, this item (a disembodied glowing axe), will
appear every two minutes ramdomly on the level. The spawning routine is not
perfect... so it may appear in a place that cannot be accessed.  In that
case, it will automatically choose another place if it hasn't been picked
up in a while. You can manually replace it using the ALLOW command. Turn
it off then on, and it will respawn.
        
        
        Timed Bomb
        ----------

        A favorite at our deathmatch sessions (mainly because of the ominious
ticking).  Fire it at the wall, and RUUUUUNNN!!!!!!!  It blows after a few
seconds.
        To use it, pick up the Chain Nailgun.  Each shot needs 10 rockets.
        To choose the Bomb, type IMPULSE 13
        
        Super Timed Bomb
        ----------------

        When you pick up the Super Weapons powerup, you get this item.
It is an experimental weapon. It will fly around the level, avoiding walls
and will automatically lock onto the nearest enemy player.  It will try and
negotiate corners to try and reach the target.
        If it gets close to a player... It will explode.  It will also
explode after 60 seconds of flying.
        It spits out grenades every 3 seconds... just to liven things up.

        Super-Super Nailgun
        -------------------

        Just a souped up version of the SuperNailgun that you get if you
have the Super Weapons powerup.

        Super Rocket Launcher
        ---------------------

        If you get the Super Weapons powerup, you get this. Its just like
the original, but it spits out lots of grenades, and when it hits something
its spits out 5 or so more.

        Cluster Bomb
        ------------

        This is what you get to replace the Grenade launcher when you have
Super Weapons.  Fire it and watch everyone die.  Please tell me if you are
getting packet overflows!
                           
        Super Lightning Gun
        -------------------

        When you get the Super Weapons powerup, it turns your lightning gun
into a bouncy lightning gun.  The beam will bounce off walls.  Also, if you
hit someone with it, then you take their health, and it adds onto yours.

        BFG
        ---

        Hopefully a faithful copy of the original DOOM one, along with the
strange firing system so you can fire at a close wall, and kill an emeny
far away.
        To use it, pick up the Lightning gun.  Each shot needs 20 cells.
        To choose the BFG, type IMPULSE 14


        TripWire
        --------

        Friends of mine said that there was this game called Duck Nukem which
had a tripwire, so I decided to write this in.  To use the weapon, you must
have 5 cells and 5 rockets.  Stand against a wall, and type IMPULSE 17.  It
will bleep, and activate in about one second.
        If anyone steps into the beam, it will bleep, and blow up at one end
with the force of a few rockets.  You can trigger them by shooting at them
as well.

        Super-TripWire
        --------------

        If you place a trip-wire with the super-weapon powerup, you get one
of these.  They are like normal trip-wires, but if anyone comes within close
proximitity of it, then it fires off a lightning bolt taking off 5 health.
It does this every 1 second.  You cannot destroy these by shooting at them.

        Teleport
        --------

        Anyone who has played the classic BBC game Exile will appriciate the
Personal Teleporter.  type IMPULSE 15 to remember your location, and
IMPULSE 16 to teleport to that old location.
        Teleporting costs 10 cells.  You cannot teleport under 'Capture the
Flag'.

-----------------------------------------------------------------------------
Remote Administration:

        Introduction
        ------------

        People in the game are either ops or peons.  Typing NAMES in
        the game, will display who is an op, and who isn't.  Ops have an
        @ beside their name, and master ops have two '@'s.

        ]NAMES
        1-@@Paragon (T:2 F:54)  2-PsLAM (T:1 F:34)
        3-Alek (T:1 F:12)

        The T: is the team that the person belongs to.  If you are playing
        teams-by-skins then this will the skin, otherwise, the color of
        your pants.  F: is the frags.

        In all these commands, you can either enter the name, or the number.

        To gain ops in a game, you must use the OP command :

        1) type OP
        2) press the ` key (top left) to remove the console
        3) enter the code using the number keys 1-8 (see below for code)

        There are two codes that you can enter, the master code, and the
        normal op code.  The master code should not be disclosed to anyone.

        I made two levels, so that level 1 ops cannot actually crash the
        server whatever they do.  This means that remote users could be
        made level 1 ops without fear that they will end up crashing the
        server, and you have to go and restart it :(

        It is quite easy for master ops to crash the server.

        Ops get new commands. The number of new commands depends on what
        level of ops you are:

        Normal               Master
        -----------------------------------
        KCK                  All of Normal commands
        GIB                  SHUTDOWN
        OP                   COMMAND
        DEOP                 CHPASSWD
        NEWMAP               CHMPASSWD
        CKCVAR               GODMODE
        ALLOW
        PLACE
        IMPULSE 206

        Normal op commands
        ==================

        KCK/GIB/OP/DEOP
        ---------------

        To use the first four commands, type the command on its own, it will
        then list all the people in the game.  Type a user's name and the
        command will act on that user.

        e.g.

        ]GIB
        1-@@Paragon (T:2 F:54)  2-PsLAM (T:1 F:34)
        3-Alek (T:1 F:12)
        Please type name or number to Gib or cancel
        ]3
        Alek gets bored with life.

        NEWMAP
        ------

        Newmap allows an op to change the current level. It is entirely menu
        operated, and designed so that ops with level 1 cannot accidently
        enter in a level that the server doesnt have, and therefore crash it
        If you are a Master Op, then you get an addional menu option, where
        you can enter in a level name manually. But be careful that the level
        does exist in the /maps directory!

        Ops with level 2 can also enter in commands manually using the
        COMMAND command. Enter COMMAND on the console, then enter NAME
        "<command you want>" then enter EXECUTE.

        CHCVAR
        ------

        ChCvar allows normal ops to change a Cvar such as TEAMPLAY or
        DEATHMATCH.  This is also menu operated.

        You can now change quickly to CTF, Normal, or Quake-TI modes using
        the

                CTF
                NORMAL
                and QUAKETI

        commands.

        ALLOW
        -----

        Using this command you can allow and dis-allow weapons.  This
        is menu operated as with other functions.

        TOGGLES
        -------

        YOu can toggle a few options with this menu.  I have added a
        3wave scoring compatability mode. I may make this the default
        because from the games I have played, it does make for a better
        game.
        The 'quaketi armor' option is a new game that we came up with
        that quake-ti instead of getting powerful weapons, just gets
        powerful armor instead. Tell me if this works or not.

        PLACE
        -----

        This command allows you to place an item on a map that will act
        just like a normal item.
        This is useful for those maps without specific items that you may
        want. (e.g. e1m1 doesn't have a BFG).

        Type 'ALLOW' and follow the menus.  The item will place after 2mins.
        Remember that deathmatch rules apply (i.e. it will respawn)
        Make sure you want to place the item, becuause once placed, you
        cannot remove it :)

        IMPULSE 206
        -----------

        This command will make you 'it' in teamplay modes 1,2, and 3. This
        was added just incase the person who is IT leaves, and leaves the
        game without an 'IT'.  Dmplus SHOULD alutomatically detect this,
        and make the person with the most frags IT, but it may not work :)
        Use this if it doesn't.

        Master op Commands
        ==================

        GODMODE
        -------

        Added this in dmplus 1.12.. Means you can sit around without being
        killed by people. They get a message sayind why you can't be killed
        so eventually they stop.  Gib them if they ignore you :)

        To make it fair, and to stop master-ops from using this as a cheat
        (heaven forbid), you cannot pick up any items, or shoot anyone :)

        RESET
        -----

        Reset just types the RESTART command on the server, you should do
        this when you change the DEATHMATCH cvar.  This wipes the ops and
        various settings. Use NEWMAP instead to change to the current
        map.

        SHUTDOWN
        --------

        Shutdown shuts the server down. You get no warning, so use with
        care.

        COMMAND
        -------

        This very powerful command allows you to type any command you like
        on the server console.

        e.g.

        ]command
        Please enter name "<command>";execute
        ]name "sv_gravity 100";execute
        Paragon renamed to sv_gravity 100
        sv_gravity 100 renamed to Paragon
        "sv_gravity" changed to "100"
        ]

        it will automatically change your name back to your old name after
        the command completes.  Due to an inbuilt Quake limit, the maximum
        number of characters in the command is 15. This means that
        the CHANGELEVEL command will not work with level names longer than
        3 characters. For this reason, master ops also get an additional
        menu option on the NEWMAP command:

        ]NEWMAP
        0 - Start
        blah blah
        7 - Cancel
        8 - Enter Map manually.

        Selecting option 8 will give you a similar prompt to the 'command'
        command.

        -------------------------------------------------------------------
        DO NOT USE THE 'MAP' COMMAND. If you do, it will disconnect all the
        players, wipe out who is an OP or not, reset the password back
        to the default in CLIENT.QC, and reset the allowed weapons. Use
        NEWMAP instead.
        Also, do not type CHANGELEVEL on the server console if there are
        no clients connected. That will also wipe that info.
        -------------------------------------------------------------------

        CHPASSWD and CHMPASSWD
        ----------------------

        You can change the password that ops have to enter either by editing
        the CLIENT.QC file or by typing the CHPASSWD command in the game.

        I would recommend that if you are running a server on the internet,
        that you change the default password to something else.

        To change the password in the game, type CHPASSWD, then remove the
        console by pressing ` (top left). Then type the new password.  A
        password consists of 4 numbers from 1-8. This gives you the choice of
        4096 conbinations. Hope thats enough :)

        CHMPASSWD will change the master password.

        The default passwords are : 4132 for the normal ops
                                    6145 for master ops.

-----------------------------------------------------------------------------

Teamplay Options:

---------
NOTE!!!!!
---------
        Since version 1.1, I have altered the teamplay options.  A teamplay
command now consists of TEAMPLAY = XY where X is from 0-3 and Y is from 0-4

e.g.    TEAMPLAY 14    X=1  Y=4    so this is Capture the Flag,
                                   with no Friendly Fire. (old TEAMPLAY 7)


Friendly Fire Options
---------------------

        Normal (X=0)
        ------

        Just normal options, you can shoot anyone you like.

        No Friendly Fire (X=1)
        ----------------

        You cannot hurt your teammates with this option enabled.

        Super-Non-Friendly Fire (X=2/3)
        -----------------------

        If you kill a teammate under X=2, then you explode.  If you
kill a teammate under X=3 then you don't get the frag for killing him
        Useful for people who can't abide by rules. (that's YOU Dario
Casali!)

        If you add 4 to X, then it changes for being COLOR oriented to skin
oriented.  Therefore TEAMPLAY 50 is the skins version of TEAMPLAY 10, and
TEAMPLAY 64 is the skins version of TEAMPLAY 24.


Game Type Options: (these show up as the four runes on the dashboard)
------------------

        Note that for all these options, everyone starts up as 'IT' or 'TI'
However, after a few kills the game settles down to one person as 'IT' or
'TI'.
        
        Normal (Y=0)
        ------

        No play options, just all out fragfest.

        IT (Y=1)
        --

        One player is 'IT' this player has a red shirt.  Everyone else has a
white shirt.  If anyone kills 'IT', then he gets three frags instead of the
usual one.  If 'IT' kills someone, then that person becomes 'IT'.  Being 'IT'
is therefore bad, because you have no chance of getting bonus frags.
        'IT' gets a silver key on his display.
        This results in a game in which people are trying to kill 'IT',
and are (mostly) ignoring each other.  If one person is, however,
significantly lower in skill than the rest, then, he will invariably end up
as 'IT' permanently.

        TI (Y=2)
        --

        'TI' in my opinion is better than 'IT'.  One person is 'TI', and he
has a red shirt.  Everyone else has a white shirt.  The person who is 'TI'
gets three kills for everyone he kills.  Therefore being 'TI' is good, for
you get lots of frags.  However, everyone is after 'TI', because when anyone
kills 'TI' they become 'TI'.
        'TI' gets a gold key on his display.
        This game, results in a very elitist game.  If there is one good
person in the game, then he may stay 'TI' for some time, and therefore get
a large lead.

        Quake-TI (Y=3)   (TRY THIS OUT. YOU'LL LOVE IT!)
        --------

        'Quake-TI' was suggested by Simon Jago (72046.263@compuserve.com).
It is similar to 'TI' but instead of 'TI' getting three kills for killing
someone, he gets a special 'Quake Power'.  The power of the quake power is
in ratio to the number of players in the game:

        Damage multiple = number of players in game.

        e.g. For 5 players in the game, each shot does 5 times the normal
        damage.

        If anyone kills 'TI' then he gets three frags.  If a non-ti kills
a non-ti, then he just gets the normal one frag.

        This results in a very interesting and (hopefully) well balanced
game.  For all the players are after 'TI' to get the quake power and the 
three frags, so they are not interested in killing each other and only
getting one frags, so they all go around being nice to each other,
planning Quake-TI's demise.  When they meet Quake-TI, and someone kills him,
he immediatly becomes Quake-TI and starts gibbing everyone else.
        I recommend playing DM5, because when you are playing 8 player, and
Quake-TI has the lighning gun, its quite a sight!
        
        Capture the Flag (Y=4) and Random Capture the Flag (Y=5)
        --------------------------------------------------------

        Capture the flag is a game of two teams.  At the start of the game,
the server types 'TEAMPLAY 7' and the players in the game must divide into
two teams called 'Silver' and 'Gold'

        Silver members type 'COLOR 0'
        Gold members type 'COLOR 1'

        Now, each team must decide where on the level they want to place
their flag.  When they have decided, one member of each team types
IMPULSE 18 to drop the base.   When both teams have dropped their base,
then the game automatically starts.  The flags are initially placed in
their respective bases.
        When you are placing your base, you cannot do any damage to
anything.
        If you pick up the enemy flag, and you take it back to your base,
then you get three frags.  If you are killed carrying a flag then you drop
it where you die.  The flag can then be picked up by either team, if the
team that owns the flag picks it up, then it is teleported back to their
base.  This removes a minor bug of teams being able to 'hog' their flag,
meaning that the other team cannot capture it.
        If you are carrying a flag, you glow.
        If you want to drop the flag that you are carrying, then type
IMPULSE 18.  This is so that a well coordinated team can make a human
chain to capture the flag efficiently.

        If you play on a DM-PLUS aware map (e.g. FLAG.BSP included in this
package), then the flags will automatically place, and teams will respawn
in their respective bases.

        At the end of a Capture the Flag game, the scores will be shown for
each team.

        When Y=5, the flags will appear randomly on the level, like in
Descent, rather than always respawning at the base.

        Conversions from DmPlus v1.0
        ---------------------------

         OLD TEAMPLAY   |   NEW TEAMPLAY
                0       |        0
                1       |        10
                2       |        20
                3       |        30
                4       |        01
                5       |        02
                6       |        03
                7       |        14 or 15

        The new 'teamplay 2' option in v1.06 has been in Dmplus all along :)
To get it, use TEAMPLAY 30. Oh... the wonders of Dmplus :)

        Deathmatch 3
        ------------

        This is a mixture of deathmatch 1 and 2.  Weapons remain, so that
anyone can pick up a weapon, but health/items respawn.

-----------------------------------------------------------------------------

Other stuff

        To access multiskin type IMPULSE 201 or IMPULSE 200... you need the
new player.mdl for this to work, put this in the dmplus\progs directory.

        The auto-suicide kicker will kick someone if they type KILL twice in
thirty seconds.

        To view the help, type 'COMMANDS'.

-----------------------------------------------------------------------------
Notes:

        Keyboard Bindings
        -----------------

        Thoughout this documentation I have said things like:

        'type IMPULSE 17'

        However, I would not recommend that whenever you want to place a
tripwire, you enter the console, and manually type 'IMPULSE 17'.  This will
result in you being killed rather quickly.
        I recommend that you bind these keys:


        BIND 9 "IMPULSE 13"            (bomb)
        BIND 0 "IMPULSE 14"            (BFG)
        BIND R "IMPULSE 15"            (remember)
        BIND SHIFT "IMPULSE 16"        (for rapid teleports!)
        BIND CTRL "IMPULSE 17"         (tripmine)
        BIND D "IMPULSE 18"            (drop flag)

        Impulse commands summary
        ------------------------

                Impulse     |         Action
                ------------|---------------
                1-8         |        Weapons
                9           |        All weapons cheat
                10          |        Cycle weapon up
                11          |        Super Weapons cheat
                12          |        Cycle weapon down
                13          |        Choose Bomb
                14          |        Choose BFG
                15          |        Remember
                16          |        Teleport
                17          |        Tripwire
                18          |        Drop Flag/base
                            |
                201 and 202 |        Change skin
                255         |        Quad Power

        Why no sounds/models?
        ---------------------

        When I started writing this new add-on I decided that it would be
made completely server side.   This means that a server can run it using
QUAKE -GAME DM-PLUS and any client can connect to it, without needing to
download any new .WAV files.  If I get a lot of demand for new .WAVs or
models, I may make some.

        How to use this
        ---------------

        Just in case you don't know how to play new PROGS.DAT files. Make a
new directory parallel to ID1 in the QUAKE directory called DM-PLUS and put
this new PROGS.DAT in that directory. Then just load quake by typing:

QUAKE -game DM-PLUS

        If you are playing a network game, then only the server needs DMPLUS,
all the other machine can just run a normal Quake installation.

        Comments/bug reports Welcome!
        -----------------------------

        I am releasing this as a PROGS.DAT only because I released it with
source before, and had no end of trouble from people wanting to take my mod
and add THEIR little feature to it, and release it as their own mod.  This
really annoyed me.

        However, with Dmplus 1.1, there are new problems, for the master op
key is hardcoded into the game.  Also, a lot of server admin people have
expressed interest in my mod, because they want to add their own mods to it
to run on their server.

        I agree with this that server admins should be allowed access to the
code.  Therefore, if anyone is running a server on the internet, and wants
to run DMPLUS, please feel free to email me for the code.  As long as you
keep it to yourself, and do NOT upload your mods onto the internet, thats
fine by me.  This will allow you to change the passwords.

        Oh, and if anyone from id is reading this, and you like it, then
email me please!!!

        Have fun deathmatching!
-----------------------------------------------------------------------------
Version history:

0.8 Released to public

----

0.9 Second Release:

FIXED: Under 'IT' and 'TI', you didnt get the icon on your screen to
indicate if you were 'IT' or 'TI'.

FIXED: You did not get a frag under Quake-TI if a white bloke killed a white
bloke.

FIXED: If you are Quake-TI, you sometimes don't get quake power.

FIXED: If you disconnected with a flag, then it could never be recovered.

FIXED: If you suicided with a flag, you kept it.

FIXED: Hogging of your flag under 'Capture the flag' fixed.

FIXED: Damage multiplyer under Quake-TI didnt work. (woops)

ADDED: BFG Chargeup sound.

FIXED: BFG Time delay now exactly the same as the DOOM one.

ADDED: Debug 'IMPULSE 19' command.

FIXED: If you have the Lightning gun, but not the BFG, you couldn't pick
up the BFG.

FIXED: If you have the Chain-Nailgun, but not the bomb, you couldn't pick up
the bomb.

ADDED: Made SuperShotgun more powerful (because no-one was using it).

----

1.0 Third Release:

ADDED: You can telefrag someone if you teleport on them

ADDED: Deathmatch 3 option, health and items respawn, weapons stay.

ADDED: Super-weapons and super-weapon powerup. (lots here)

ADDED: Auto-suicide kick, Multiskin 1.1 support.

----

1.1 Fourth Release:

FIXED: Dropping your base in the lava :)

ADDED: New fixed base and deathmatch respawn points on maps that support this

ADDED: Remote Administration options. (lots here)

ADDED: New Teamplay options.

ADDED: Help.

FIXED: Made the BFG and the Bomb less powerful.

ADDED: I forget, because ive added so much. These lists are silly anyway

-----------------------------------------------------------------------------

Bugs:

If you have 0 frags, and you are killed, you lose ops.
-----------------------------------------------------------------------------

Source Code:

If you have the package with the source code included, then these notes
apply to you, otherwise, ignore this :)

The main DMplus .qc files are:

MODIFIED .QC (by id, and me)
------------
weapons.qc  -  Contains all the new code for the new weapons.

client.qc   -  Lots of stuff here, but I have tried to move out the
               DMplus stuff into separate files.
               Please note that this file contains the default master op
               and op password in there. Also, it contains the default
               allowances for weapons etc...

player.qc   -  Only really for the new weapons, a few new frames and stuff.

triggers.qc -  Only the teleporting weapons.               

items.qc    -  Super weapons powerup code and other stuff

admin.qc    -  Administration routines.
               Contains the 'other maps' option on the 'NEWMAP' command,
               so that server admin people who have maps that they want
               normal OPS to be able to change to, add your maps here.

defs.qc     -  Very important file. I have been adding the new bits
               pretty much randomly in this file, so it may be hard to
               find the dmplus bits :)

MY .QC (written all by me. muhahahaha)
------
corpse.qc   -  Solid corpses, called from world.qc

teamplay.qc -  Teamplay stuff. Most of this was in client.qc until I moved
               it out into this file instead. Contains the game type defs.

capture.qc  -  This was also in client.qc, but I moved it out into an ALMOST
               self contained module. Called mainly from weapons.qc and
               client.qc

progs.src   -  Use this one, because your one won't include the new .qc files

License for Source code:
        
        You are welcome to modify this source code, and use it on YOUR
server, however, DO NOT DISTRIBUTE THIS SOURCE CODE, and DO NOT DISTRIBUTE
any work that has been created using any bits from the dmplus parts of 
this source code.

-----------------------------------------------------------------------------
               
Credits:

Programming: Will Harris (wfh20@cam.ac.uk) (Paragon_ on #quake)

Conceptual Consultant: John Ripley (pslam@pslam.demon.co.uk) (PsLAM on #quake)

Multiskin by Dennis Noordsij (lnoordsi@inter.NL.net)

FLAG.BSP by Dario Casali (dario@casali.demon.co.uk)

Quality Assurance
        Drake Christensen <71251.433@compuserve.com>
        Pete Ripley (pete@pslam.demon.co.uk) (Pete on #quake)
        Simon Jago (72046.263@compuserve.com)
        Nick Metcalfe (nick@salokin.demon.co.uk) (salokin on #quake)
        Dario Casali (dario@casali.demon.co.uk)
        Kilroy (kilroy@kilroy.com)
        George (george.foot@merton.ox.ac.uk) (xiphos on #quake)

Webpage:

The Dm-Plus webpage is at http://www.demonic.demon.co.uk/dmplus.html
There is now a US mirror at http://www.lithium.com/~paragon/dmplus.html

Please stop by and see if there are any new versions frequently!

Thanks:

Thanks go to id for writing such an open-ended game.

LICENSE
-------

License for progs.dat:
----------------------

Please distribute this compiled progs.dat freely.

License for Source code:
------------------------

        You are welcome to modify this source code, and use it on YOUR
server, however, DO NOT DISTRIBUTE THIS SOURCE CODE, and DO NOT DISTRIBUTE
any work that has been created using any bits from the dmplus parts of 
this source code.

Please report ALL bugs to wfh20@cam.ac.uk or Paragon_ on irc

        -Will (Paragon_)
