From bc03a163f09d4628992ca55f06d262aec4bc94f1 Mon Sep 17 00:00:00 2001 From: Samual Date: Tue, 30 Aug 2011 02:05:31 -0400 Subject: [PATCH] Disable showing of your own name in hud_shownames by default (added cvar) -- it is considered a bug by some to see this when you die, and is pointless. --- defaultXonotic.cfg | 1 + qcsrc/client/autocvars.qh | 1 + qcsrc/client/shownames.qc | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index e9d5b285b..56aa6d39a 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -1525,6 +1525,7 @@ seta hud_contents_water_color "0.4 0.3 0.3" seta hud_shownames 1 "draw names and health/armor of nearby players" seta hud_shownames_enemies 2 "1 = draw names of enemies you point at (TODO), 2 = draw names of all enemies in view" +seta hud_shownames_self 0 "also include your own name to be shown when third person camera mode is on (chase_active/cl_eventchase)" seta hud_shownames_status 1 "1 = draw health/armor status of teammates" seta hud_shownames_statusbar_height 4 "height of status bar" seta hud_shownames_aspect 8 "aspect ratio of total drawing area per name" diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index 2f2b80cc5..bf425fc47 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -310,6 +310,7 @@ float autocvar_hud_showbinds; float autocvar_hud_showbinds_limit; float autocvar_hud_shownames; float autocvar_hud_shownames_enemies; +float autocvar_hud_shownames_self; float autocvar_hud_shownames_status; float autocvar_hud_shownames_statusbar_height; float autocvar_hud_shownames_aspect; diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index e3c6f3d4b..8e13b722d 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -10,7 +10,7 @@ void Draw_ShowNames(entity ent) if(!autocvar_hud_shownames) return; - if(ent.sv_entnum == player_localentnum && !autocvar_chase_active) + if((ent.sv_entnum == player_localentnum) && !(autocvar_hud_shownames_self && autocvar_chase_active)) return; makevectors(view_angles); -- 2.39.2