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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Sep 14 08:04:01 EDT 2009


Author: lordhavoc
Date: 2009-09-14 08:03:53 -0400 (Mon, 14 Sep 2009)
New Revision: 7782

Modified:
   trunk/data/qcsrc/server/g_damage.qc
Log:
use different number of radius damage traces depending on whether target
is a player or not


Modified: trunk/data/qcsrc/server/g_damage.qc
===================================================================
--- trunk/data/qcsrc/server/g_damage.qc	2009-09-14 11:59:27 UTC (rev 7781)
+++ trunk/data/qcsrc/server/g_damage.qc	2009-09-14 12:03:53 UTC (rev 7782)
@@ -1079,7 +1079,10 @@
 						// test line of sight to multiple positions on box,
 						// and do damage if any of them hit
 						hits = 0;
-						total = ceil(bound(1, finaldmg*0.2, 20));
+						if (targ.classname == "player")
+							total = ceil(bound(1, finaldmg, 50));
+						else
+							total = ceil(bound(1, finaldmg/10, 5));
 						hitloc = nearest;
 						c = 0;
 						while (c < total)



More information about the nexuiz-commits mailing list