]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable showing of your own name in hud_shownames by default (added cvar) -- it is...
authorSamual <samual@xonotic.org>
Tue, 30 Aug 2011 06:05:31 +0000 (02:05 -0400)
committerSamual <samual@xonotic.org>
Tue, 30 Aug 2011 06:05:31 +0000 (02:05 -0400)
defaultXonotic.cfg
qcsrc/client/autocvars.qh
qcsrc/client/shownames.qc

index e9d5b285bd05c74d083b9128b7d7b04d95d844e1..56aa6d39acb461fff67d93baf42bedb20afed807 100644 (file)
@@ -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"
index 2f2b80cc5971eb4ab07dc93f33e2edbf8515fdb7..bf425fc477921897eefd7cb7bfeaabb02d7feed8 100644 (file)
@@ -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;
index e3c6f3d4bda4575b2ee531d8e251c8d3953039fc..8e13b722dfa47cbbd26a8968ddeda5a0d794aebd 100644 (file)
@@ -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);