]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Always disable self damage from the blaster in instagib
authorMario <mario@smbclan.net>
Sat, 26 Mar 2016 16:07:27 +0000 (02:07 +1000)
committerMario <mario@smbclan.net>
Sat, 26 Mar 2016 16:07:27 +0000 (02:07 +1000)
qcsrc/common/mutators/mutator/instagib/instagib.qc

index f0cbf6afcd604ee3b0a9698027ac90792cf32776..f8f2e5a7dfb41ec821f611b8f8573a784e97d01c 100644 (file)
@@ -302,7 +302,7 @@ MUTATOR_HOOKFUNCTION(mutator_instagib, PlayerDamage_Calculate)
                {
                        if(frag_deathtype & HITTYPE_SECONDARY)
                        {
-                               if(!autocvar_g_instagib_blaster_keepdamage)
+                               if(!autocvar_g_instagib_blaster_keepdamage || frag_attacker == frag_target)
                                        frag_damage = frag_mirrordamage = 0;
 
                                if(frag_target != frag_attacker)