r4858 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Oct 24 04:02:03 EDT 2008


Author: div0
Date: 2008-10-24 04:01:55 -0400 (Fri, 24 Oct 2008)
New Revision: 4858

Modified:
   trunk/data/qcsrc/server/cl_client.qc
   trunk/data/qcsrc/server/t_plats.qc
Log:
func_door fixes


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2008-10-24 07:57:55 UTC (rev 4857)
+++ trunk/data/qcsrc/server/cl_client.qc	2008-10-24 08:01:55 UTC (rev 4858)
@@ -439,6 +439,7 @@
 	self.spectatortime = time;
 	
 	self.classname = "observer";
+	self.iscreature = FALSE;
 	self.health = -666;
 	self.takedamage = DAMAGE_NO;
 	self.solid = SOLID_NOT;

Modified: trunk/data/qcsrc/server/t_plats.qc
===================================================================
--- trunk/data/qcsrc/server/t_plats.qc	2008-10-24 07:57:55 UTC (rev 4857)
+++ trunk/data/qcsrc/server/t_plats.qc	2008-10-24 08:01:55 UTC (rev 4858)
@@ -770,7 +770,7 @@
 
 void door_trigger_touch()
 {
-	if (other.health < 1)
+	if (other.health < 1 && !other.iscreature)
 		return;
 
 	if (time < self.attack_finished_single)
@@ -809,7 +809,7 @@
 */
 void door_touch()
 {
-	if not(other.iscreature)
+	if(other.classname != "player")
 		return;
 	if (self.owner.attack_finished_single > time)
 		return;




More information about the nexuiz-commits mailing list