From: terencehill Date: Thu, 15 Dec 2011 18:34:37 +0000 (+0100) Subject: Allow the client to disable showing waypoints of health and armor when spectating X-Git-Tag: xonotic-v0.8.1~12^2~70 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b23c4689a86a2616aa0a5c89cb00b60ff56e59ad;p=xonotic%2Fxonotic-data.pk3dir.git Allow the client to disable showing waypoints of health and armor when spectating --- diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index 1044e8abf..a2f732f5b 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -1308,6 +1308,7 @@ seta g_waypointsprite_crosshairfadedistance 150 "distance in virtual pixels from seta g_waypointsprite_distancefadealpha 1 "alpha multiplier near distance" seta g_waypointsprite_distancefadescale 0.7 "scale multiplier near the distance" seta g_waypointsprite_distancefadedistancemultiplier 0.5 "distance in map sizes from distance where to stop fading" +seta g_waypointsprite_items_for_spectators 1 "show waypoints when spectating to indicate that some important items (mega health, large armor) are about to respawn" set g_waypointsprite_spam 0 "Debugging feature. Set to 10 and load courtfun in race mode to test." alias "g_waypointsprite_personal" "impulse 30" alias "g_waypointsprite_personal_p" "impulse 31" diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index a0908cc39..28f37d6f0 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -145,6 +145,7 @@ float autocvar_g_waypointsprite_edgeoffset_left; float autocvar_g_waypointsprite_edgeoffset_right; float autocvar_g_waypointsprite_edgeoffset_top; float autocvar_g_waypointsprite_fontsize; +float autocvar_g_waypointsprite_items_for_spectators; float autocvar_g_waypointsprite_minalpha; float autocvar_g_waypointsprite_minscale; float autocvar_g_waypointsprite_normdistance; diff --git a/qcsrc/client/waypointsprites.qc b/qcsrc/client/waypointsprites.qc index c8cac0df9..37e3d685b 100644 --- a/qcsrc/client/waypointsprites.qc +++ b/qcsrc/client/waypointsprites.qc @@ -415,6 +415,8 @@ void Draw_WaypointSprite() switch(self.rule) { case SPRITERULE_SPECTATOR: + if(!autocvar_g_waypointsprite_items_for_spectators) + return; case SPRITERULE_DEFAULT: if(self.team) {