[nexuiz-commits] r7496 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 22 14:23:26 EDT 2009


Author: fruitiex
Date: 2009-08-22 14:23:26 -0400 (Sat, 22 Aug 2009)
New Revision: 7496

Modified:
   trunk/data/qcsrc/server/mode_onslaught.qc
Log:
generator gib spawn origin fix, should fix unstuck entity messages when generator is shot with the crylink


Modified: trunk/data/qcsrc/server/mode_onslaught.qc
===================================================================
--- trunk/data/qcsrc/server/mode_onslaught.qc	2009-08-22 18:18:38 UTC (rev 7495)
+++ trunk/data/qcsrc/server/mode_onslaught.qc	2009-08-22 18:23:26 UTC (rev 7496)
@@ -716,11 +716,11 @@
 		sound(self, CHAN_TRIGGER, "weapons/rocket_impact.wav", VOL_BASE, ATTN_NORM);
 		i = random();
 		if(i < 0.3)
-			ons_throwgib(hitloc, (force * -1) + '0 0 40', "models/onslaught/gen_gib1.md3", 7, 1, 1);
+			ons_throwgib(hitloc + '0 0 20', force * -1, "models/onslaught/gen_gib1.md3", 7, 1, 1);
 		else if(i > 0.7)
-			ons_throwgib(hitloc, (force * -1)+ '0 0 40', "models/onslaught/gen_gib2.md3", 6, 1, 1);
+			ons_throwgib(hitloc + '0 0 20', force * -1, "models/onslaught/gen_gib2.md3", 6, 1, 1);
 		else
-			ons_throwgib(hitloc, (force * -1)+ '0 0 40', "models/onslaught/gen_gib3.md3", 5, 1, 1);
+			ons_throwgib(hitloc + '0 0 20', force * -1, "models/onslaught/gen_gib3.md3", 5, 1, 1);
 	}
 	else
 	{
@@ -737,7 +737,7 @@
 	//throw some gibs on damage
 	if(random() < damage/200+0.2)
 		if(random() < 0.5)
-			ons_throwgib(hitloc, randomvec()*360, "models/onslaught/gen_gib1.md3", 1, 1, 0);
+			ons_throwgib(hitloc + '0 0 20', randomvec()*360, "models/onslaught/gen_gib1.md3", 1, 1, 0);
 };
 
 // update links after a delay



More information about the nexuiz-commits mailing list