From 13f870832e9fb5479884ecae8a0bf6791794a14b Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 3 Nov 2024 08:41:29 +1000 Subject: [PATCH] Give the electro orb some transparency to be less obstrusive --- qcsrc/common/weapons/weapon/electro.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2