]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hide damage effects on spectated players too, if we aren't using chase_active
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 5 Jan 2012 16:34:44 +0000 (18:34 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 5 Jan 2012 16:34:44 +0000 (18:34 +0200)
qcsrc/client/damage.qc

index 2ae5676d1c833b66a8f634f85286c1789eed83c1..12d1fcc7f045cf49cbeaf6d129043c9a4e935175 100644 (file)
@@ -254,7 +254,7 @@ void DamageEffect_Think()
                remove(self);
                return;
        }
-       if(self.owner.entnum == player_localentnum && !autocvar_chase_active)
+       if((self.owner.entnum == player_localentnum || self.owner.entnum == spectatee_status) && !autocvar_chase_active)
                return; // if we aren't using a third person camera, hide our own effects
 
        // now generate the particles