]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow laser jumps right after spawning
authorMario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 11:31:07 +0000 (22:31 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 13 Dec 2014 11:31:07 +0000 (22:31 +1100)
qcsrc/server/g_damage.qc

index 88138612b46a47bf9b802fb9e4b755df5851e935..7c4b01c2d45ebae7b4b224bb561b9b764bf1aaab 100644 (file)
@@ -910,7 +910,7 @@ void Damage (entity targ, entity inflictor, entity attacker, float damage, float
        // apply push
        if (self.damageforcescale)
        if (vlen(force))
-       if (!IS_PLAYER(self) || time >= self.spawnshieldtime)
+       if (!IS_PLAYER(self) || time >= self.spawnshieldtime || self == attacker)
        {
                vector farce = damage_explosion_calcpush(self.damageforcescale * force, self.velocity, autocvar_g_balance_damagepush_speedfactor);
                if(self.movetype == MOVETYPE_PHYSICS)