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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Aug 26 10:05:22 EDT 2009


Author: div0
Date: 2009-08-26 10:05:22 -0400 (Wed, 26 Aug 2009)
New Revision: 7533

Modified:
   trunk/data/qcsrc/server/ctf.qc
Log:
make CTF flag cap shockwave clientside too


Modified: trunk/data/qcsrc/server/ctf.qc
===================================================================
--- trunk/data/qcsrc/server/ctf.qc	2009-08-26 14:02:55 UTC (rev 7532)
+++ trunk/data/qcsrc/server/ctf.qc	2009-08-26 14:05:22 UTC (rev 7533)
@@ -407,36 +407,9 @@
 		DropFlag(self, e, world);
 };
 
-void flag_cap_ring_think()
-{
-	self.nextthink = time + 0.05;
-	if(self.count > 24)
-	{
-		self.think = SUB_Remove;
-		return;
-	}
-
-	self.scale = self.count / 30;
-
-	self.frame = self.count;
-
-	self.count += 1;
-	self.alpha = self.alpha-0.04;
-};
-
 void flag_cap_ring_spawn(vector org)
 {
-	entity e;
-	e = spawn();
-	setmodel(e, "models/ctf/shockwavetransring.md3");
-	org_z=org_z-15;
-	setorigin(e, org);
-
-	e.count = 1;
-	e.alpha = 0.9;
-	
-	e.think = flag_cap_ring_think;
-	e.nextthink = time;
+	shockwave_spawn("models/ctf/shockwavetransring.md3", org, -0.8, 0, 1);
 };
 
 void FlagTouch()



More information about the nexuiz-commits mailing list