r5296 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Dec 24 09:42:58 EST 2008


Author: div0
Date: 2008-12-24 09:42:58 -0500 (Wed, 24 Dec 2008)
New Revision: 5296

Modified:
   trunk/data/qcsrc/server/w_common.qc
Log:
hopefulyl fix decals of ballistic bullets


Modified: trunk/data/qcsrc/server/w_common.qc
===================================================================
--- trunk/data/qcsrc/server/w_common.qc	2008-12-24 14:00:02 UTC (rev 5295)
+++ trunk/data/qcsrc/server/w_common.qc	2008-12-24 14:42:58 UTC (rev 5296)
@@ -116,14 +116,12 @@
 .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_LeaveSolid_think()
 {
-	vector org2;
-
 	setorigin(self, self.W_BallisticBullet_LeaveSolid_origin);
 	self.velocity = self.W_BallisticBullet_LeaveSolid_velocity;
 
@@ -170,11 +166,10 @@
 	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




More information about the nexuiz-commits mailing list