]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make the reticle fade in based on zoom speed. Fix some silly typos as well. Imo this...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Jun 2010 18:40:56 +0000 (21:40 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Jun 2010 18:40:56 +0000 (21:40 +0300)
defaultXonotic.cfg
qcsrc/client/View.qc

index 600a4a4e9b656ff83e10a11d7983672320f7b15b..c8e9e815064fabe8d9143f8e84faf3160b2d0d1a 100644 (file)
@@ -206,7 +206,7 @@ seta crosshair_fireball_color_green 1.0     "crosshair color green component to disp
 seta crosshair_fireball_color_blue 0.2 "crosshair color blue component to display when wielding the fireball"
 seta crosshair_fireball_color_alpha 1  "crosshair alpha value to display when wielding the fireball"
 seta crosshair_fireball_size 1 "crosshair size when wielding the fireball"
 seta crosshair_fireball_color_blue 0.2 "crosshair color blue component to display when wielding the fireball"
 seta crosshair_fireball_color_alpha 1  "crosshair alpha value to display when wielding the fireball"
 seta crosshair_fireball_size 1 "crosshair size when wielding the fireball"
-seta cl_recticle_nex 1 "draw aiming recticle for the nex weapon's zoom, 0 disables and values between 0 and 1 change alpha"
+seta cl_reticle_nex 1 "draw aiming recticle for the nex weapon's zoom, 0 disables and values between 0 and 1 change alpha"
 fov 90
 seta cl_velocityzoom 0 "velocity based zooming of fov, negative values zoom out"
 seta cl_velocityzoomtime 0.3   "time value for averaging speed values"
 fov 90
 seta cl_velocityzoom 0 "velocity based zooming of fov, negative values zoom out"
 seta cl_velocityzoomtime 0.3   "time value for averaging speed values"
index 2826bbc4298525cdaecc1acddec1c8e5aed19df1..86e96d2f54807480563d0ddda5f17c19504dd128 100644 (file)
@@ -355,7 +355,8 @@ void CSQC_UpdateView(float w, float h)
        float fov;
        float f, i, j;
        vector v, vo;
        float fov;
        float f, i, j;
        vector v, vo;
-       vector recticle_pos, recticle_size;
+
+       vector reticle_pos, reticle_size;
 
        WaypointSprite_Load();
 
 
        WaypointSprite_Load();
 
@@ -579,14 +580,14 @@ void CSQC_UpdateView(float w, float h)
        self = e;
 
        // draw the aiming reticle for weapons that use it (eg. Nex)
        self = e;
 
        // draw the aiming reticle for weapons that use it (eg. Nex)
-       recticle_pos_x = 0;
-       recticle_pos_y = 0;
-       recticle_size_x = vid_conwidth;
-       recticle_size_y = vid_conheight;
+       reticle_pos_x = 0;
+       reticle_pos_y = 0;
+       reticle_size_x = vid_conwidth;
+       reticle_size_y = vid_conheight;
 
 
-       if(cvar("cl_recticle_nex"))
+       if(cvar("cl_reticle_nex"))
        if(button_attack2 && activeweapon == WEP_NEX)
        if(button_attack2 && activeweapon == WEP_NEX)
-               drawpic(recticle_pos, "textures/reticle_nex", recticle_size, '1 1 1', cvar("cl_recticle_nex"), DRAWFLAG_NORMAL);
+               drawpic(reticle_pos, "textures/reticle_nex", reticle_size, '1 1 1', current_zoomfraction * cvar("cl_reticle_nex"), DRAWFLAG_NORMAL);
 
        // draw radar
        if(
 
        // draw radar
        if(