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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Aug 6 09:37:54 EDT 2009


Author: div0
Date: 2009-08-06 09:37:54 -0400 (Thu, 06 Aug 2009)
New Revision: 7363

Modified:
   trunk/data/qcsrc/server/cl_player.qc
Log:
use the taunt animation for "cmd voice taunt"


Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc	2009-08-06 13:06:45 UTC (rev 7362)
+++ trunk/data/qcsrc/server/cl_player.qc	2009-08-06 13:37:54 UTC (rev 7363)
@@ -145,7 +145,7 @@
 	self.anim_pain1 = '9 1 2'; // 0.5 seconds
 	self.anim_pain2 = '10 1 2'; // 0.5 seconds
 	self.anim_shoot = '11 1 5'; // TODO: analyze models and set framerate
-	self.anim_taunt = '12 1 1'; // FIXME?  there is no code using this anim
+	self.anim_taunt = '12 1 0.33'; // FIXME?  there is no code using this anim
 	self.anim_run = '13 1 1';
 	self.anim_runbackwards = '14 1 1';
 	self.anim_strafeleft = '15 1 1';
@@ -1193,6 +1193,9 @@
 				}
 			break;
 		case VOICETYPE_TAUNT:
+			if(self.classname == "player")
+				if(self.deadflag == DEAD_NO)
+					setanim(self, self.anim_taunt, FALSE, TRUE, TRUE);
 			FOR_EACH_REALCLIENT(msg_entity)
 			{
 				if (msg_entity.cvar_cl_voice_directional >= 1)



More information about the nexuiz-commits mailing list