Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

g_team.h

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 //
00023 
00024 #ifdef MISSIONPACK
00025 
00026 #define CTF_CAPTURE_BONUS       100     // what you get for capture
00027 #define CTF_TEAM_BONUS          25      // what your team gets for capture
00028 #define CTF_RECOVERY_BONUS      10      // what you get for recovery
00029 #define CTF_FLAG_BONUS          10      // what you get for picking up enemy flag
00030 #define CTF_FRAG_CARRIER_BONUS  20      // what you get for fragging enemy flag carrier
00031 #define CTF_FLAG_RETURN_TIME    40000   // seconds until auto return
00032 
00033 #define CTF_CARRIER_DANGER_PROTECT_BONUS    5   // bonus for fraggin someone who has recently hurt your flag carrier
00034 #define CTF_CARRIER_PROTECT_BONUS           2   // bonus for fraggin someone while either you or your target are near your flag carrier
00035 #define CTF_FLAG_DEFENSE_BONUS              10  // bonus for fraggin someone while either you or your target are near your flag
00036 #define CTF_RETURN_FLAG_ASSIST_BONUS        10  // awarded for returning a flag that causes a capture to happen almost immediately
00037 #define CTF_FRAG_CARRIER_ASSIST_BONUS       10  // award for fragging a flag carrier if a capture happens almost immediately
00038 
00039 #else
00040 
00041 #define CTF_CAPTURE_BONUS       5       // what you get for capture
00042 #define CTF_TEAM_BONUS          0       // what your team gets for capture
00043 #define CTF_RECOVERY_BONUS      1       // what you get for recovery
00044 #define CTF_FLAG_BONUS          0       // what you get for picking up enemy flag
00045 #define CTF_FRAG_CARRIER_BONUS  2       // what you get for fragging enemy flag carrier
00046 #define CTF_FLAG_RETURN_TIME    40000   // seconds until auto return
00047 
00048 #define CTF_CARRIER_DANGER_PROTECT_BONUS    2   // bonus for fraggin someone who has recently hurt your flag carrier
00049 #define CTF_CARRIER_PROTECT_BONUS           1   // bonus for fraggin someone while either you or your target are near your flag carrier
00050 #define CTF_FLAG_DEFENSE_BONUS              1   // bonus for fraggin someone while either you or your target are near your flag
00051 #define CTF_RETURN_FLAG_ASSIST_BONUS        1   // awarded for returning a flag that causes a capture to happen almost immediately
00052 #define CTF_FRAG_CARRIER_ASSIST_BONUS       2   // award for fragging a flag carrier if a capture happens almost immediately
00053 
00054 #endif
00055 
00056 #define CTF_TARGET_PROTECT_RADIUS           1000    // the radius around an object being defended where a target will be worth extra frags
00057 #define CTF_ATTACKER_PROTECT_RADIUS         1000    // the radius around an object being defended where an attacker will get extra frags when making kills
00058 
00059 #define CTF_CARRIER_DANGER_PROTECT_TIMEOUT  8000
00060 #define CTF_FRAG_CARRIER_ASSIST_TIMEOUT     10000
00061 #define CTF_RETURN_FLAG_ASSIST_TIMEOUT      10000
00062 
00063 #define CTF_GRAPPLE_SPEED                   750 // speed of grapple in flight
00064 #define CTF_GRAPPLE_PULL_SPEED              750 // speed player is pulled at
00065 
00066 #define OVERLOAD_ATTACK_BASE_SOUND_TIME     20000
00067 
00068 // Prototypes
00069 
00070 int OtherTeam(int team);
00071 const char *TeamName(int team);
00072 const char *OtherTeamName(int team);
00073 const char *TeamColorString(int team);
00074 void AddTeamScore(vec3_t origin, int team, int score);
00075 
00076 void Team_DroppedFlagThink(gentity_t *ent);
00077 void Team_FragBonuses(gentity_t *targ, gentity_t *inflictor, gentity_t *attacker);
00078 void Team_CheckHurtCarrier(gentity_t *targ, gentity_t *attacker);
00079 void Team_InitGame(void);
00080 void Team_ReturnFlag(int team);
00081 void Team_FreeEntity(gentity_t *ent);
00082 gentity_t *SelectCTFSpawnPoint ( team_t team, int teamstate, vec3_t origin, vec3_t angles );
00083 gentity_t *Team_GetLocation(gentity_t *ent);
00084 qboolean Team_GetLocationMsg(gentity_t *ent, char *loc, int loclen);
00085 void TeamplayInfoMessage( gentity_t *ent );
00086 void CheckTeamStatus(void);
00087 
00088 int Pickup_Team( gentity_t *ent, gentity_t *other );

Generated on Thu Aug 25 12:37:33 2005 for Quake III Arena by  doxygen 1.3.9.1