home *** CD-ROM | disk | FTP | other *** search
/ Quake 'em / QUAKEEM.BIN / quake / programs / jteam092 / team.txt < prev    next >
Encoding:
Text File  |  1996-08-17  |  10.6 KB  |  221 lines

  1.                       - The Complete Enhanced Teamplay -
  2.                                     v0.92
  3.  
  4.                                 A QuakeC Mod
  5.  
  6.                                      By
  7.                                 John Spickes
  8.  
  9. What's New:
  10.     8/17/96  v0.92 -- Teams are now persistent across level changes.  
  11.     This fixed some problems with players being fragged several
  12.     times when enterring the game or new levels.
  13.     Changed MOTD to use a new self.flags field instead of the
  14.     old .motd entity float.
  15.     
  16.         8/6/96 -- Added Ugly MOTD functionality, motd.qc.  Added strict
  17.         coop option.  (edit teamplay.qc to toggle)
  18.  
  19.         8/4/96 -- Fixed a bug that would allow players to gain 
  20.     infinite ammo by repeatedly dropping and picking up weapons in
  21.     coop play.  You now only get ammo from weapons when TEAM_DROP_ITEMS
  22.     is off.
  23.     
  24.         8/3/96  v0.91 -- Added dropping backpacks and weapons.
  25.  
  26.         7/31/96 v0.9 -- I've just completed coding of the TeamLock and
  27.         Static Team features.  Looks like we're just about ready for
  28.         first release.  This version is still a little quirky, but I think
  29.         it's workable enough for playtesting on team servers out there.
  30.  
  31. Description:
  32.         The Complete Enhanced Teamplay is a QuakeC mod which is intended
  33.         to provide a great deal of flexibility in teamplay settings.  I've
  34.         retained all of the original functionality of Quake v1.01 and my
  35.         previous Enhanced Teamplay, and added many more features.  My aim
  36.         is to have lots of useful teamplay options which the server can
  37.         select at will, while minimizing my modification to the original
  38.         QuakeC code.  The options included in this release are:
  39.  
  40.         * Players' health can be protected from friendly fire damage
  41.         * Players' armor can be protected from friendly fire damage
  42.         * Damage inflicted to teammates can be mirrored on the attacker
  43.         * Frags can be deducted for the killing of teammates
  44.         * Players can be killed for killing their teammates
  45.         * Players can be required to use only colors specified by the server
  46.         * Players can be prohibited from changing teams
  47.         * Players can be allowed to drop ammo and weapons
  48.  
  49.         All these options can be turned on and off individually.
  50.  
  51. Installation:
  52.         To run a server using this mod, you need the registered version of
  53.         Quake and the QuakeC compiler.  The compiler can be obtained from
  54.         ID Software or from www.stomped.com.  To install the mod, copy
  55.         the included source files over the originals from the qcc
  56.         distribution and compile.  See the instructions with the compiler
  57.         for more information on how to use modified qc code.
  58.  
  59. Teamplay feature use:
  60.         A lot of options can be configured with this mod.  The majority of
  61.         these options are configurable using the teamplay variable.
  62.         This mod uses the teamplay variable as a bitfield, with each bit
  63.         associated with a different teamplay option.  The bits are as follows:
  64.  
  65.         1       Health Protect
  66.                 Players receive no health damage from teammates' attacks.
  67.         2       Armor Protect
  68.                 Players receive no armor damage from teammates' attacks.
  69.         4       Damage to Attacker
  70.                 A player who attacks his teammate will receive the same
  71.                 damage the teammate would have received, had he not been
  72.                 protected.
  73.         8       Frag Penalty
  74.                 Any player who kills his teammate will be penalized frags.
  75.                 The number of frags to penalize is adjustable by a simple
  76.                 edit in the teamplay.qc file.
  77.         16      Death Penalty
  78.                 Any player who kills his teammate will burst apart in a
  79.                 bloody mess.
  80.         32      Team Color Lock
  81.                 Players will only be allowed to be certain colors.  Team
  82.                 colors can be specified for up to four teams in the
  83.                 teamplay.qc file.  Players who have illegal colors
  84.                 when they enter will be put into the team with the fewest
  85.                 members.  Any player who changes team (pants color) will
  86.                 be fragged and their frag count is reset to zero.
  87.         64      Static Teams
  88.                 Players will not be allowed to change teams.  
  89.     128    Drop Items
  90.         Players will be allowed to drop ammo and weapons.  
  91.         IMPULSE 20 will drop a backpack and IMPULSE 21 will 
  92.         drop the current weapon.  You can't drop the axe or
  93.         single-shotgun.
  94.         
  95.         Obviously, not all these options make sense together.  teamplay 9
  96.         doesn't really make sense, because you couldn't ever kill a
  97.         teammate, and thus you could never incur the one frag penalty.
  98.         To select multiple options, add the numbers of the options together.
  99.  
  100.         Examples:
  101.         teamplay 96     Team Color Lock, Static Teams
  102.                 This results in players being automatically assigned to
  103.                 teams and not allowed to change to other teams.
  104.         teamplay 3      Health Protect, Armor Protect
  105.                 You can't hurt your teammates' health OR armor.
  106.         teamplay 28     Mirror Damage, Frag Penalty, Death Penalty
  107.                 When you shoot your teammates, you take damage and so
  108.                 do they.  If you kill a teammate, you'll take a frag
  109.                 penalty and you'll be killed.
  110.         teamplay 120    Static Teams, Color Lock, Frag Penalty, Death Penalty
  111.  
  112.         In addition to the bitfield, you can also set teamplay to a negative
  113.         number.  When teamplay is negative, it indicates how many frags
  114.         players should be penalized for killing their teammates.  In this
  115.         mode of operation, the only effect of the teamplay setting is that
  116.         the number of frags indicated by teamplay is deducted from a player's
  117.         frag count when he kills a teammate.  This is equivalent to teamplay
  118.         8, except that the frag penalty is adjustable in-game.  
  119.  
  120.         Besides the teamplay setting, there are some other options that can
  121.         be modified by editing the source.  These options are constants at
  122.         the beginning of teamplay.qc and are marked so you can find them.
  123.         One option specifies the default frag penalty.  This is the number
  124.         of frags that will be deducted by the bit-field Frag Penalty setting.
  125.  
  126.         There are four constants in teamplay.qc which allow configuration of
  127.         the teamlock settings.  TEAM_COLOR1 thru TEAM_COLOR4 have values
  128.         indicating a legal team color, or -1.  A value of -1 indicates that
  129.         this team is not used.  Thus, the number of teams is adjustable
  130.         from 1 to 4.
  131.  
  132.         Example:
  133.  
  134.         float   TEAM_COLOR1 =   4;
  135.         float   TEAM_COLOR2 =   13;
  136.         float   TEAM_COLOR3 =   -1;
  137.         float   TEAM_COLOR4 =   -1;
  138.  
  139.         This setting indicates that there should be two teams.  Team 1's
  140.         color is red and team 2's color is blue.  Teams 3 & 4 are not used
  141.         and thus have a value of -1.
  142.  
  143.     You can also turn on and off strict coop.  This is an option I 
  144.     thought made cooperative play much more intense.  When the 
  145.     strict coop option is on, players will not be allowed to respawn 
  146.     in cooperative play.  Thus the normal cooperative infinite-life 
  147.     effect is defeated.  I don't recommend using this option unless 
  148.     you're running a listen server.  The server typically ends up 
  149.     restarting the level after all the players have been killed.
  150.     You can turn strict coop on and off by setting the variable
  151.     TEAM_STRICT_COOP in teamplay.qc.
  152.     
  153.         If you change any of the constant values, you must recompile before
  154.         your changes will take effect.
  155.  
  156. MOTD use:
  157.  
  158.     Most of the MOTD functionality resides in motd.qc.  If you want 
  159.     to change your MOTD, you can modify motd.qc.  It's a simple matter
  160.     of changing the print statements to say what you want.  The MOTD
  161.     will be automatically be displayed when players spawn regardless 
  162.     of the teamplay setting.
  163.  
  164. Known bugs/quirks:
  165.  
  166.         The Color Lock and Static Teams settings sometimes behave
  167.         unexpectedly when turned on in the middle of gameplay.  I've spent
  168.         quite a bit of time trying to make them do the correct things,
  169.         but they still work much better if you set them before the game
  170.         starts.  Thus it is recommended that you set your teamplay value
  171.         before you begin the team game.
  172.  
  173.         Because I have preserved all the old functionality, teamplay 1 still
  174.         has the same silly effects it had before.  Namely, it protects
  175.         players from their own rockets and grenades.  This is not a function
  176.         of the Health Protect bit, but rather of the original code by ID which
  177.         remains.  I decided to leave this because maybe someone wants to
  178.         play that way.  Since the self-protection is not related to the 1 bit
  179.         but to the teamplay 1 setting, other teamplay settings which use the
  180.         1 bit will not show this effect.  If you want a team game with only
  181.         health protect active, you could combine it with some option that
  182.         won't have any effect, such as Frag Penalty.  Since Health Protect
  183.         is on, you can never kill your teammates so you can't take the
  184.         frag penalty.  But you CAN hurt yourself, because teamplay is not 1.
  185.  
  186.     Players are sometimes fragged when they first enter the game.  This
  187.     doesn't really effect the game because they can just respawn and they
  188.     don't lose anything.
  189.  
  190.     Sometimes, the message "You cannot change teams" will be printed more
  191.     than once.  The static team functionality still works fine, though.
  192.     
  193. Future additions:  (hopefully)
  194.  
  195.         Team Frag Counter
  196.         Team Frag Counter triggers fraglimit
  197.         Combination with The Fiend's Pentagram to allow teams of humans
  198.             vs. Fiends and such
  199.  
  200. Bug reports, comments, suggestions:
  201.  
  202.         If you find bugs in this software or have comments or suggestions,
  203.         please send me an email.  My address is below.
  204.  
  205.                       THE COMPLETE ENHANCED TEAMPLAY
  206.  
  207.  
  208.                               Programming by
  209.                           John Spickes aka Guru
  210.                           jspickes@eng.umd.edu                               
  211.  
  212. Thanks to the following netizens:
  213.  
  214.     * Dennis Noordsij (lnoordsi@inter.NL.net), who gave me the
  215.             idea for TeamLock.
  216.     * Vhold who wrote the original code to drop backpacks.
  217.     * Griffin, who helped me figure out how to retain teams across
  218.         levels.
  219.  
  220. $Id: team.txt 1.11 1996/08/17 16:28:21 jspickes Exp $
  221.