From: Mario Date: Sat, 13 Dec 2014 11:31:07 +0000 (+1100) Subject: Allow laser jumps right after spawning X-Git-Tag: xonotic-v0.8.0~70^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a2805673eaf0488aca7e58cd17066afc1c2080be;p=xonotic%2Fxonotic-data.pk3dir.git Allow laser jumps right after spawning --- diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 88138612b..7c4b01c2d 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -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)