r4827 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 23 04:47:34 EDT 2008


Author: div0
Date: 2008-10-23 04:47:24 -0400 (Thu, 23 Oct 2008)
New Revision: 4827

Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
do not spawn near out-of-power nodes


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2008-10-23 06:39:27 UTC (rev 4826)
+++ trunk/data/qcsrc/server/cl_client.qc	2008-10-23 08:47:24 UTC (rev 4827)
@@ -33,6 +33,7 @@
 // Returns:
 //   -1 if a spawn can't be used
 //   otherwise, a weight of the spawnpoint
+.float islinked; // onslaught
 float Spawn_Score(entity spot, entity playerlist, float teamcheck)
 {
 	float shortest, thisdist;
@@ -59,6 +60,12 @@
 					return -1;
 				good = 1;
 			}
+			else if(ent.classname == "onslaught_controlpoint")
+			{
+				if(!ent.islinked)
+					return -1;
+				good = 1;
+			}
 			else if(ent.classname == "trigger_race_checkpoint")
 			{
 				if(self.classname == "player") // spectators may spawn everywhere




More information about the nexuiz-commits mailing list