From: Mario Date: Tue, 24 Mar 2015 14:03:35 +0000 (+1100) Subject: Allow knockback from weapons in side-scrolling mode X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ab09fc9eb9406de37f7d540b08739f5ada352cc2;p=xonotic%2Fxonotic-data.pk3dir.git Allow knockback from weapons in side-scrolling mode --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index b211b3742..15e01950e 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -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);