From: Mario Date: Sat, 2 Nov 2024 22:41:29 +0000 (+1000) Subject: Give the electro orb some transparency to be less obstrusive X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=13f870832e9fb5479884ecae8a0bf6791794a14b;p=xonotic%2Fxonotic-data.pk3dir.git Give the electro orb some transparency to be less obstrusive --- diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index a77f2a159..cf67708f4 100644 --- a/qcsrc/common/weapons/weapon/electro.qc +++ b/qcsrc/common/weapons/weapon/electro.qc @@ -12,8 +12,8 @@ void electro_orb_draw(entity this) if(dt <= 0) return; - this.alpha = bound(0, (this.ltime - time) * 4, 1); - this.scale = (WEP_CVAR(WEP_ELECTRO, combo_radius) * 0.05) * this.alpha; + float myscale = bound(0, (this.ltime - time) * 4, 1); + this.scale = (WEP_CVAR(WEP_ELECTRO, combo_radius) * 0.05) * myscale; this.angles = this.angles + dt * this.avelocity; } @@ -31,6 +31,7 @@ void electro_orb_setup(entity e) e.solid = SOLID_NOT; e.avelocity = '7 0 11'; e.drawmask = MASK_NORMAL; + e.alpha = 0.7; } #endif