r4683 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 9 04:55:10 EDT 2008


Author: div0
Date: 2008-10-09 04:54:48 -0400 (Thu, 09 Oct 2008)
New Revision: 4683

Modified:
   trunk/data/qcsrc/server/w_common.qc
Log:
fix shotgun effect


Modified: trunk/data/qcsrc/server/w_common.qc
===================================================================
--- trunk/data/qcsrc/server/w_common.qc	2008-10-09 08:05:17 UTC (rev 4682)
+++ trunk/data/qcsrc/server/w_common.qc	2008-10-09 08:54:48 UTC (rev 4683)
@@ -141,7 +141,7 @@
 	{
 		if (trace_ent.solid == SOLID_BSP && !(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT))
 		{
-			if (dtype == WEP_SHOTGUN)
+			if (dtype < DEATH_SPECIAL_START && (dtype & DEATH_WEAPONMASK) == WEP_SHOTGUN)
 				pointparticles(particleeffectnum("shotgun_impact"), trace_endpos, trace_plane_normal * 1000, 1);
 			else
 				pointparticles(particleeffectnum("machinegun_impact"), trace_endpos, trace_plane_normal * 1000, 1);




More information about the nexuiz-commits mailing list