From cf4dd1f36cdc53bc114c22d3a86c945518566992 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 26 Dec 2017 20:18:18 +1000 Subject: [PATCH] To be extra safe, also make sure it isn't an electro orb from another player --- qcsrc/common/weapons/weapon/electro.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index 49bb16a44..05f306174 100644 --- a/qcsrc/common/weapons/weapon/electro.qc +++ b/qcsrc/common/weapons/weapon/electro.qc @@ -281,7 +281,7 @@ void W_Electro_Orb_Touch(entity this, entity toucher) PROJECTILE_TOUCH(this, toucher); if(toucher.takedamage == DAMAGE_AIM) { if(WEP_CVAR_SEC(electro, touchexplode)) { W_Electro_Explode(this, toucher); } } - else if(toucher.owner != this.owner) // don't stick to player's other projectiles! + else if(toucher.owner != this.owner && toucher.classname != this.classname) // don't stick to player's other projectiles! { //UpdateCSQCProjectile(this); spamsound(this, CH_SHOTS, SND_ELECTRO_BOUNCE, VOL_BASE, ATTEN_NORM); -- 2.39.2