]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
make the delay configurable
authorFruitieX <fruitiex@gmail.com>
Sat, 2 Apr 2011 21:18:15 +0000 (00:18 +0300)
committerFruitieX <fruitiex@gmail.com>
Sat, 2 Apr 2011 21:18:15 +0000 (00:18 +0300)
defaultXonotic.cfg
qcsrc/client/Main.qc
qcsrc/client/autocvars.qh

index e9e50c5c171659d2d9a022d28a7e41dbdc698ced..03234e1989244b5d7264dd8b051f0f86c4318f87 100644 (file)
@@ -1438,6 +1438,8 @@ seta hud_panel_engineinfo_framecounter_exponentialmovingaverage 1 "use an averag
 seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_new_weight 0.1 "weight of latest data point"
 seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_instantupdate_change_threshold 0.5 "threshold for fps change when to update instantly, to make big fps changes update faster"
 
+seta hud_panel_shownames_sustain 0.5 "seconds that shownames will sustain after not aiming at a player anymore"
+
 seta hud_showbinds 1   "the way to show the keys to press in HUD messages: 0 displays commands, 1 bound keys, 2 both"
 seta hud_showbinds_limit 2     "maximum number of bound keys to show for a command. 0 for unlimited"
 
index d208640326061a8b1e4f5fef9dda2f6975cac897..7d84aa1617bca94558d3cadf9df6b8931611d462 100644 (file)
@@ -1336,7 +1336,7 @@ void Net_ShowNames()
     shownames_netname = strzone(ReadString());
     shownames_health = ReadByte();
     shownames_armor = ReadByte();
-    shownames_time = time + 0.25;
+    shownames_time = time + autocvar_hud_panel_shownames_sustain;
 }
 
 // CSQC_Parse_TempEntity : Handles all temporary entity network data in the CSQC layer.
index 42528ef1d103a07a514f6e6a573292913f333a69..762472fcce568617cf3a06925f2f8a5cf5a64ab3 100644 (file)
@@ -238,6 +238,7 @@ float autocvar_hud_panel_radar_scale;
 float autocvar_hud_panel_radar_zoommode;
 float autocvar_hud_panel_score;
 float autocvar_hud_panel_shownames;
+float autocvar_hud_panel_shownames_sustain;
 float autocvar_hud_panel_timer;
 float autocvar_hud_panel_timer_increment;
 float autocvar_hud_panel_vote;