From: Mario Date: Fri, 19 Apr 2013 07:40:03 +0000 (+1000) Subject: Don't give ammo for laser jumps X-Git-Tag: xonotic-v0.7.0~55^2~3^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d4cdb8e85aa010fb6f4fc8092d7cedef86ef7fc2;p=xonotic%2Fxonotic-data.pk3dir.git Don't give ammo for laser jumps --- diff --git a/qcsrc/server/mutators/mutator_vampire.qc b/qcsrc/server/mutators/mutator_vampire.qc index baeadac1c..1aa293b39 100644 --- a/qcsrc/server/mutators/mutator_vampire.qc +++ b/qcsrc/server/mutators/mutator_vampire.qc @@ -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 {