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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Mar 27 10:56:06 EDT 2009


Author: div0
Date: 2009-03-27 10:56:06 -0400 (Fri, 27 Mar 2009)
New Revision: 6331

Modified:
   trunk/data/qcsrc/server/domination.qc
Log:
protect dom points for 0.3s


Modified: trunk/data/qcsrc/server/domination.qc
===================================================================
--- trunk/data/qcsrc/server/domination.qc	2009-03-27 12:51:25 UTC (rev 6330)
+++ trunk/data/qcsrc/server/domination.qc	2009-03-27 14:56:06 UTC (rev 6331)
@@ -19,6 +19,7 @@
 
 .float enemy_playerid;
 .entity sprite;
+.float captime;
 
 void() dom_controlpoint_setup;
 
@@ -111,6 +112,8 @@
 	}
 	WaypointSprite_UpdateTeamRadar(self.sprite, RADARICON_DOMPOINT, colormapPaletteColor(self.goalentity.team - 1, 0));
 	WaypointSprite_Ping(self.sprite);
+
+	self.captime = time;
 };
 
 void AnimateDomPoint()
@@ -176,6 +179,9 @@
 		return;
 	if (other.health < 1)
 		return;
+	
+	if(time < self.captime + 0.3)
+		return;
 
 	// only valid teams can claim it
 	head = find(world, classname, "dom_team");



More information about the nexuiz-commits mailing list