From: Mario Date: Tue, 26 Dec 2017 10:16:10 +0000 (+1000) Subject: Fix electro orbs sticking to eachother in some cases X-Git-Tag: xonotic-v0.8.5~2409 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=239284f1e1d7f4fc6dbfe8d5a4add1f0ad190d46;p=xonotic%2Fxonotic-data.pk3dir.git Fix electro orbs sticking to eachother in some cases --- diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index 5aec7fef9..49bb16a44 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 + else if(toucher.owner != this.owner) // don't stick to player's other projectiles! { //UpdateCSQCProjectile(this); spamsound(this, CH_SHOTS, SND_ELECTRO_BOUNCE, VOL_BASE, ATTEN_NORM);