From e26efaa23fd52b6b9ca8ba5990d5ea758578da92 Mon Sep 17 00:00:00 2001 From: div0 Date: Tue, 8 Sep 2009 13:06:03 +0000 Subject: [PATCH] hopefully fix sound origins for explosions (#521) git-svn-id: svn://svn.icculus.org/nexuiz/trunk@7690 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/client/damage.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/client/damage.qc b/data/qcsrc/client/damage.qc index 092ea5738..9ae1ff0e4 100644 --- a/data/qcsrc/client/damage.qc +++ b/data/qcsrc/client/damage.qc @@ -75,8 +75,6 @@ void Ent_DamageInfo() self = oldself; - setorigin(self, org); // for sound() calls - // TODO spawn particle effects and sounds based on hittype if(!DEATH_ISSPECIAL(hittype)) @@ -97,6 +95,8 @@ void Ent_DamageInfo() else backoff = -1 * normalize(force); + setorigin(self, org + backoff * 2); // for sound() calls + switch(hitwep) { case WEP_LASER: -- 2.39.2