r5564 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Jan 16 03:15:23 EST 2009


Author: div0
Date: 2009-01-16 03:15:23 -0500 (Fri, 16 Jan 2009)
New Revision: 5564

Modified:
   trunk/data/qcsrc/server/w_electro.qc
Log:
update the csqc projectile when a func_rotating like entity is hit (csqc doesn't know these)



Modified: trunk/data/qcsrc/server/w_electro.qc
===================================================================
--- trunk/data/qcsrc/server/w_electro.qc	2009-01-16 08:12:06 UTC (rev 5563)
+++ trunk/data/qcsrc/server/w_electro.qc	2009-01-16 08:15:23 UTC (rev 5564)
@@ -42,8 +42,6 @@
 
 void W_Plasma_Touch (void)
 {
-	//UpdateCSQCProjectile(self);
-
 	PROJECTILE_TOUCH;
 	if (other.takedamage == DAMAGE_AIM) {
 		W_Plasma_Explode ();
@@ -51,6 +49,9 @@
 		sound (self, CHAN_PROJECTILE, "weapons/electro_bounce.wav", VOL_BASE, ATTN_NORM);
 		self.projectiledeathtype |= HITTYPE_BOUNCE;
 	}
+
+	if(trace_ent && trace_ent.solid > SOLID_TRIGGER) // CSQC doesn't know about these entities well enough
+		UpdateCSQCProjectile(self);
 }
 
 void W_Plasma_TouchExplode (void)




More information about the nexuiz-commits mailing list