From a1b020a7f9a8a424b794f0f48da5355285680ed9 Mon Sep 17 00:00:00 2001 From: div0 Date: Wed, 24 Dec 2008 14:42:58 +0000 Subject: [PATCH] hopefulyl fix decals of ballistic bullets git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5296 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/w_common.qc | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/data/qcsrc/server/w_common.qc b/data/qcsrc/server/w_common.qc index 73a513b94..2d2705830 100644 --- a/data/qcsrc/server/w_common.qc +++ b/data/qcsrc/server/w_common.qc @@ -116,14 +116,12 @@ void FireRailgunBullet (vector start, vector end, float bdamage, float bforce, f .float dmg_radius; void W_BallisticBullet_Hit (void) { - vector org2; float f; - org2 = self.origin - 6 * normalize(self.velocity); if (DEATH_ISWEAPON(self.projectiledeathtype, WEP_SHOTGUN)) - pointparticles(particleeffectnum("shotgun_impact"), org2, normalize(self.velocity) * 1000, 1); + pointparticles(particleeffectnum("shotgun_impact"), self.origin, normalize(self.velocity) * 1000, 1); else - pointparticles(particleeffectnum("machinegun_impact"), org2, normalize(self.velocity) * 1000, 1); + pointparticles(particleeffectnum("machinegun_impact"), self.origin, normalize(self.velocity) * 1000, 1); if(other && other != self.enemy) { @@ -158,8 +156,6 @@ void W_BallisticBullet_Hit (void) void W_BallisticBullet_LeaveSolid_think() { - vector org2; - setorigin(self, self.W_BallisticBullet_LeaveSolid_origin); self.velocity = self.W_BallisticBullet_LeaveSolid_velocity; @@ -170,11 +166,10 @@ void W_BallisticBullet_LeaveSolid_think() self.flags &~= FL_ONGROUND; self.effects &~= EF_NODRAW; - org2 = self.origin + 6 * normalize(self.velocity); if (DEATH_ISWEAPON(self.projectiledeathtype, WEP_SHOTGUN)) - pointparticles(particleeffectnum("shotgun_impact"), org2, normalize(self.velocity) * 1000, 1); + pointparticles(particleeffectnum("shotgun_impact"), self.origin, normalize(self.velocity) * 1000, 1); else - pointparticles(particleeffectnum("machinegun_impact"), org2, normalize(self.velocity) * 1000, 1); + pointparticles(particleeffectnum("machinegun_impact"), self.origin, normalize(self.velocity) * 1000, 1); } // a fake logarithm function -- 2.39.2