if(hud_panel_radar_rotation == 0)
{
// max-min distance must fit the radar in any rotation
- bigsize = vlen_minnorm2d(teamradar_size2d) * scale2d / (1.05 * vlen2d(mi_max - mi_min));
+ bigsize = vlen_minnorm2d(teamradar_size2d) * scale2d / (1.05 * vlen2d(mi_scale));
}
else
{
f * bigsize
+ (1 - f) * normalsize;
teamradar_origin3d_in_texcoord = teamradar_3dcoord_to_texcoord(
- f * (mi_min + mi_max) * 0.5
+ f * mi_center
+ (1 - f) * view_origin);
color1 = GetPlayerColor(player_localentnum-1);
void WaypointSprite_Load()
{
- waypointsprite_fadedistance = vlen(mi_max - mi_min);
+ waypointsprite_fadedistance = vlen(mi_scale);
waypointsprite_normdistance = cvar("g_waypointsprite_normdistance");
waypointsprite_minscale = cvar("g_waypointsprite_minscale");
waypointsprite_minalpha = cvar("g_waypointsprite_minalpha");
waypointsprite_crosshairfadedistance = cvar("g_waypointsprite_crosshairfadedistance");
waypointsprite_distancefadealpha = cvar_or("g_waypointsprite_distancefadealpha", 1);
waypointsprite_distancefadescale = cvar_or("g_waypointsprite_distancefadescale", 1);
- waypointsprite_distancefadedistance = vlen(mi_max - mi_min) * cvar_or("g_waypointsprite_distancefadedistancemultiplier", 1);
+ waypointsprite_distancefadedistance = waypointsprite_fadedistance * cvar_or("g_waypointsprite_distancefadedistancemultiplier", 1);
waypointsprite_alpha = cvar_or("g_waypointsprite_alpha", 1) * (1 - autocvar__menu_alpha);
if(!waypointsprite_initialized)