sv_jumpstep 1 // step up stairs while jumping, makes it easier to reach ledges
set ekg 0 "Throw huge amounts of gibs"
-sv_shownames_cull_distance 1000 "distance after which to not send origin/health/armor of another player"
+sv_shownames_cull_distance 2500 "distance after which to not send origin/health/armor of another player"
cl_movement 1
cl_movement_track_canjump 0
set sv_motd ""
-seta cl_shownames 1 "show player names pointed to (0: never, 1: teamplay only, 2: always)"
-set sv_allow_shownames 1
-
set g_waypoints_for_items 1 "make waypoints out of items, values: 0 = never, 1 = unless the mapper prevents it by worldspawn.spawnflags & 1, 2 = always"
seta g_maplist_votable 6 "number of maps that are shown in the map voting at the end of a match"
seta hud_panel_physics_acceleration_max 1.5 "acceleration progressbar gets completely filled up by this value (in g)"
seta hud_panel_physics_acceleration_vertical 0 "include the acceleration on the Z-axis"
-seta hud_panel_shownames_sustain 0.5 "seconds that shownames will sustain after not aiming at a player anymore"
-
seta hud_showbinds 1 "what to show in the HUD to indicate certain keys to press: 0 display commands, 1 bound keys, 2 both"
seta hud_showbinds_limit 2 "maximum number of bound keys to show for a command. 0 for unlimited"
seta hud_shownames_height 15 "height of icons"
seta hud_shownames_aspect 8 "aspect ratio of total drawing area per name"
seta hud_shownames_fontsize 8 "font size"
+seta hud_shownames_mindistance 1000 "start fading alpha at this distance"
+seta hud_shownames_maxdistance 2000 "alpha is 0 at this distance"
+
// scoreboard
seta scoreboard_columns default
float autocvar_hud_shownames_height;
float autocvar_hud_shownames_aspect;
float autocvar_hud_shownames_fontsize;
+float autocvar_hud_shownames_mindistance;
+float autocvar_hud_shownames_maxdistance;
string autocvar_hud_skin;
float autocvar_loddebug;
float autocvar_menu_mouse_speed;
a = autocvar_hud_panel_fg_alpha;
if(self.alpha)
a *= self.alpha;
+ if(autocvar_hud_shownames_maxdistance)
+ {
+ float dist;
+ dist = vlen(self.origin - view_origin);
+
+ a *= ((autocvar_hud_shownames_maxdistance - autocvar_hud_shownames_mindistance) - max(0, dist - autocvar_hud_shownames_mindistance)) / (autocvar_hud_shownames_maxdistance - autocvar_hud_shownames_mindistance);
+ }
// draw the sprite image
vector o;