r2900 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Nov 4 12:18:06 EST 2007


Author: m0rfar
Date: 2007-11-04 12:18:06 -0500 (Sun, 04 Nov 2007)
New Revision: 2900

Modified:
   trunk/data/qcsrc/server/t_teleporters.qc
Log:
Hide the players for a tic and not 0.2 sec in teleporters. I hope this does not break anything

Modified: trunk/data/qcsrc/server/t_teleporters.qc
===================================================================
--- trunk/data/qcsrc/server/t_teleporters.qc	2007-11-04 13:24:04 UTC (rev 2899)
+++ trunk/data/qcsrc/server/t_teleporters.qc	2007-11-04 17:18:06 UTC (rev 2900)
@@ -103,11 +103,11 @@
 					}
 	}
 
-	// hide myself for 0.2 seconds
+	// hide myself a tic
 	other.effects = other.effects | EF_NODRAW;
 	if (other.weaponentity) // misuse FL_FLY to avoid EF_NODRAW on viewmodel
 		other.weaponentity.flags = other.weaponentity.flags | FL_FLY;
-	other.teleport_time = time + 0.2;
+	other.teleport_time = time + cvar("sys_ticrate");
 
 	other.flags = other.flags - (other.flags & FL_ONGROUND);
 	// reset tracking of oldvelocity for impact damage (sudden velocity changes)




More information about the nexuiz-commits mailing list