r5608 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jan 19 02:00:57 EST 2009


Author: div0
Date: 2009-01-19 02:00:57 -0500 (Mon, 19 Jan 2009)
New Revision: 5608

Modified:
   trunk/data/qcsrc/client/gibs.qc
Log:
fix cl_gentle


Modified: trunk/data/qcsrc/client/gibs.qc
===================================================================
--- trunk/data/qcsrc/client/gibs.qc	2009-01-19 06:17:57 UTC (rev 5607)
+++ trunk/data/qcsrc/client/gibs.qc	2009-01-19 07:00:57 UTC (rev 5608)
@@ -74,7 +74,7 @@
 
 void Ent_GibSplash()
 {
-	float amount, type, isgentle;
+	float amount, type;
 	vector org, vel, mi, ma;
 
 	float c, gibfactor, randomvalue;
@@ -90,7 +90,6 @@
 
 	if(cvar("cl_gentle"))
 		type |= 0x80; // set gentle bit
-	isgentle = (type & 0x80 || cvar("cl_gentle"));
 
 	gibfactor = 1 - cvar("cl_nogibs");
 	if(gibfactor <= 0)
@@ -143,7 +142,7 @@
 			}
 			break;
 		case 0x02:
-			pointparticles(particleeffectnum("blood"), org, vel, amount);
+			pointparticles(particleeffectnum("blood"), org, vel, amount * 16);
 			break;
 		case 0x03:
 			if(random() < amount)
@@ -153,7 +152,7 @@
 			pointparticles(particleeffectnum("damage_dissolve"), org, vel, amount);
 			break;
 		case 0x82:
-			pointparticles(particleeffectnum("damage_hit"), org, vel, amount);
+			pointparticles(particleeffectnum("damage_hit"), org, vel, amount * 16);
 			break;
 		case 0x83:
 			// no gibs in gentle mode, sorry




More information about the nexuiz-commits mailing list