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 /assets | |
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 'assets')
-rw-r--r-- | assets/ui/menudef.h | 1 | ||||
-rw-r--r-- | assets/ui/tremulous_common_hud.h | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/assets/ui/menudef.h b/assets/ui/menudef.h index f87fc34e..a5f77468 100644 --- a/assets/ui/menudef.h +++ b/assets/ui/menudef.h @@ -155,6 +155,7 @@ enum CG_PLAYER_CHARGE_BAR, CG_PLAYER_CROSSHAIR, CG_PLAYER_LOCATION, + CG_TEAMOVERLAY, CG_PLAYER_CREDITS_FRACTION, CG_KILLER, diff --git a/assets/ui/tremulous_common_hud.h b/assets/ui/tremulous_common_hud.h index 51e5d62f..a5f53356 100644 --- a/assets/ui/tremulous_common_hud.h +++ b/assets/ui/tremulous_common_hud.h @@ -149,6 +149,19 @@ itemDef background "ui/assets/forwardarrow.tga" } +//TEAM OVERLAY +itemDef +{ + name "teamoverlay" + rect BORDER 120 160 128 + style WINDOW_STYLE_EMPTY + visible MENU_TRUE + decoration + forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0.75 + textscale 1.0 + ownerdraw CG_TEAMOVERLAY +} + //SNAPSHOT itemDef { |