]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't give ammo for laser jumps
authorMario <mario.mario@y7mail.com>
Fri, 19 Apr 2013 07:40:03 +0000 (17:40 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 19 Apr 2013 07:40:03 +0000 (17:40 +1000)
qcsrc/server/mutators/mutator_vampire.qc

index baeadac1cd5a4eb1fe70da513e98425f1d2d137e..1aa293b39ea260efd53f3c7a80cf1325ea749d32 100644 (file)
@@ -2,12 +2,11 @@ MUTATOR_HOOKFUNCTION(vampire_PlayerDamage)
 {
        if(time < self.spawnshieldtime)
                return 0;
-       if(frag_attacker == frag_target)
-               return 0;
        if(g_minstagib)
        {
                // minstagib: each hit means +1 ammo
-               frag_attacker.ammo_cells += 2; // note: 1 cell was deducted for the shot
+               if(frag_attacker != frag_target)
+                       frag_attacker.ammo_cells += 2; // note: 1 cell was deducted for the shot
        }
        else
        {