From a85a677ab302b0dec0cb716e5c071305825df666 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Wed, 14 Oct 2009 18:57:42 +0000 Subject: * (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) --- assets/ui/menudef.h | 1 + assets/ui/tremulous_common_hud.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) (limited to 'assets') 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 { -- cgit