r2414 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Apr 30 10:39:31 EDT 2007


Author: div0
Date: 2007-04-30 10:39:30 -0400 (Mon, 30 Apr 2007)
New Revision: 2414

Modified:
   trunk/data/qcsrc/server/keyhunt.qc
Log:
rotate them


Modified: trunk/data/qcsrc/server/keyhunt.qc
===================================================================
--- trunk/data/qcsrc/server/keyhunt.qc	2007-04-30 14:15:11 UTC (rev 2413)
+++ trunk/data/qcsrc/server/keyhunt.qc	2007-04-30 14:39:30 UTC (rev 2414)
@@ -103,7 +103,7 @@
 {
 	setattachment(key, key.owner, "");
 	setorigin(key, '0 0 0'); // fixed later in think
-	key.angles = '0 0 0';
+	key.angles = key.angles - '0 1 0' * key.owner.angles_y;
 	key.flags = 0;
 	key.solid = SOLID_NOT;
 	key.movetype = MOVETYPE_NONE;
@@ -186,6 +186,7 @@
 	key.nextthink = time;
 	key.items = IT_KEY1 | IT_KEY2;
 	key.cnt = angle;
+	key.angles = '0 360 0' * random();
 	setmodel(key, "models/keyhunt/key3.md3");
 	setsize(key, '0 0 -24', '0 0 25');
 
@@ -292,6 +293,8 @@
 
 void kh_Key_Think()
 {
+	self.angles_y = math_mod(self.angles_y + 0.05 * 135, 360);
+
 	if(self.owner)
 	{
 		makevectors('0 1 0' * (self.cnt + math_mod(time, 360) * 45));
@@ -336,7 +339,7 @@
 :not_winning
 	}
 
-	self.nextthink = time + 0.1;
+	self.nextthink = time + 0.05;
 }
 
 void kh_WinnerTeam(float teem)




More information about the nexuiz-commits mailing list