r5155 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Dec 2 15:08:26 EST 2008


Author: div0
Date: 2008-12-02 15:08:25 -0500 (Tue, 02 Dec 2008)
New Revision: 5155

Modified:
   trunk/data/qcsrc/server/gamecommand.qc
   trunk/data/qcsrc/server/t_plats.qc
Log:
add "sv_cmd find"; fix doors with DOOR_DONT_LINK


Modified: trunk/data/qcsrc/server/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/server/gamecommand.qc	2008-12-02 19:50:16 UTC (rev 5154)
+++ trunk/data/qcsrc/server/gamecommand.qc	2008-12-02 20:08:25 UTC (rev 5155)
@@ -473,6 +473,8 @@
 		print("  effectindexdump\n");
 		print("  radarmap [--force] [--quit | --loop] [sharpness]\n");
 		print("  bbox\n");
+		print("  cvar_changes\n");
+		print("  find classname\n");
 		GameCommand_Vote("help", world);
 		GameCommand_Ban("help");
 		GameCommand_Generic("help");
@@ -671,6 +673,12 @@
 		print(cvar_changes);
 		return;
 	}
+	if (argv(0) == "find") if(argc == 2)
+	{
+		for(client = world; (client = find(client, classname, argv(1))); )
+			print(etos(client), "\n");
+		return;
+	}
 
 	print("Invalid command. For a list of supported commands, try sv_cmd help.\n");
 }

Modified: trunk/data/qcsrc/server/t_plats.qc
===================================================================
--- trunk/data/qcsrc/server/t_plats.qc	2008-12-02 19:50:16 UTC (rev 5154)
+++ trunk/data/qcsrc/server/t_plats.qc	2008-12-02 20:08:25 UTC (rev 5155)
@@ -887,6 +887,16 @@
 	if (self.spawnflags & 4)
 	{
 		self.owner = self.enemy = self;
+
+		if (self.health)
+			return;
+		IFTARGETED
+			return;
+		if (self.items)
+			return;
+
+		self.trigger_field = spawn_field(self.mins, self.maxs);
+
 		return;		// don't want to link this door
 	}
 




More information about the nexuiz-commits mailing list