From: Mircea Kitsune Date: Thu, 24 Jun 2010 14:32:50 +0000 (+0300) Subject: Sadly, we need to filter via button_attack2 too. If we don't the reticle also shows... X-Git-Tag: xonotic-v0.1.0preview~501^2~1^2~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8e2ee704fc2e83bee64448380ad359906715d8dd;p=xonotic%2Fxonotic-data.pk3dir.git Sadly, we need to filter via button_attack2 too. If we don't the reticle also shows when zooming with the zoom button other than the Nex alt fire. We need a different way to fade out I think. --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index ca0ffb561..0f76b60c2 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -559,7 +559,7 @@ void CSQC_UpdateView(float w, float h) precache_pic("textures/reticle_nex"); if(cvar("cl_reticle_nex")) - if(activeweapon == WEP_NEX && current_zoomfraction) + if(activeweapon == WEP_NEX && button_attack2) drawpic(reticle_pos, "textures/reticle_nex", reticle_size, '1 1 1', current_zoomfraction * cvar("cl_reticle_nex"), DRAWFLAG_NORMAL); // Draw the mouse cursor