]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow knockback from weapons in side-scrolling mode
authorMario <zacjardine@y7mail.com>
Tue, 24 Mar 2015 14:03:35 +0000 (01:03 +1100)
committerMario <zacjardine@y7mail.com>
Tue, 24 Mar 2015 14:03:35 +0000 (01:03 +1100)
qcsrc/server/g_damage.qc

index b211b37426a22426e26fd9cc8868ee23f1ca8630..15e01950ee417bef9f9ae381086f1298d69558b1 100644 (file)
@@ -914,7 +914,7 @@ void Damage (entity targ, entity inflictor, entity attacker, float damage, float
        // apply push
        if (self.damageforcescale)
        if (vlen(force))
-       if (!self.viewloc)
+       //if (!self.viewloc)
        if (!IS_PLAYER(self) || time >= self.spawnshieldtime || self == attacker)
        {
                vector farce = damage_explosion_calcpush(self.damageforcescale * force, self.velocity, autocvar_g_balance_damagepush_speedfactor);