diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-14 18:57:42 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:50 +0000 |
commit | a85a677ab302b0dec0cb716e5c071305825df666 (patch) | |
tree | 2242121b83be2c3385789058beb39b0b68387176 /src/game/g_local.h | |
parent | 17db07ae8addfb0952875e3af929ca83a08ba481 (diff) |
* (bug 2991) Add teamoverlay, an optional hud display showing names, health, class/equipment, and locations of teammates
- Disable with cg_drawTeamOverlay 0 or remove it from your hud
- Control number of teammates to show with cg_teamOverlayMaxPlayers
- When teamoverlay is enabled, show health of teammates next to their name when the crosshair is over them
- Servers who dislike gameplay effects or want to save on bandwidth use can use g_allowTeamOverlay 0 to disable the feature for players
- Special thanks to Risujin for bring this idea and the original patch to Tremulous
* Cache teaminfo on the server and send only when needed (Undeference)
* Increase frequency of sending updated teaminfo (Undeference)
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r-- | src/game/g_local.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h index c9d06285..f8c141ec 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -339,6 +339,8 @@ typedef struct int adminLevel; char voice[ MAX_VOICE_NAME_LEN ]; qboolean useUnlagged; + // keep track of other players' info for tinfo + char cinfo[ MAX_CLIENTS ][ 16 ]; } clientPersistant_t; #define MAX_UNLAGGED_MARKERS 10 @@ -1133,6 +1135,7 @@ extern vmCvar_t g_dretchPunt; extern vmCvar_t g_privateMessages; extern vmCvar_t g_specChat; extern vmCvar_t g_publicAdminMessages; +extern vmCvar_t g_allowTeamOverlay; void trap_Print( const char *fmt ); void trap_Error( const char *fmt ); |