]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't weaken the ring visuals when outside of it, it's already hard enough to spot...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 24 Jan 2022 16:33:11 +0000 (17:33 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 24 Jan 2022 16:33:11 +0000 (17:33 +0100)
qcsrc/common/gamemodes/gamemode/br/cl_ring.qc

index 17a8791c7a65298781b6cdb619cd297d4bb51b11..d678f32084ece98d4210abde028d4caf34d3f5c0 100644 (file)
@@ -22,13 +22,14 @@ void ring_draw(entity this)
         this.scale = this.alpha = 0;
         this.velocity = '0 0 0';
         this.draw = func_null;
+        IL_REMOVE(g_drawables, this);
         return;
     }
 
     this.scale = current_radius / RING_MODEL_RADIUS;
     this.alpha = max((1 - min(max(current_radius - vlen((csqcplayer.origin + csqcplayer.view_ofs) - this.origin), 0) / this.br_ring_fadedistance, 1)) * this.br_ring_alpha, 0.01);
     if(vlen((csqcplayer.origin + csqcplayer.view_ofs) - this.origin) > current_radius)
-        this.alpha = max(this.alpha / 4, 0.01); // let's weaken the ring visuals a bit, everything is already ring colored
+        this.alpha = max(this.alpha, 0.01);
 }
 
 void ring_draw2d(entity this)