r5339 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Dec 28 17:56:13 EST 2008


Author: div0
Date: 2008-12-28 17:56:13 -0500 (Sun, 28 Dec 2008)
New Revision: 5339

Modified:
   trunk/data/qcsrc/server/t_items.qc
Log:
always add MF_ROTATE for pickup weapons; makes all weapon models rotate, regardless of their flags
(this is so one can use zym files renamed to md3 as model files, to save space, as md3s are HUGE)


Modified: trunk/data/qcsrc/server/t_items.qc
===================================================================
--- trunk/data/qcsrc/server/t_items.qc	2008-12-28 21:12:43 UTC (rev 5338)
+++ trunk/data/qcsrc/server/t_items.qc	2008-12-28 22:56:13 UTC (rev 5339)
@@ -495,6 +495,8 @@
 		setsize (self, '-16 -16 0', '16 16 48');
 	else
 		setsize (self, '-16 -16 0', '16 16 32');
+	if(itemflags & FL_WEAPON)
+		self.modelflags |= MF_ROTATE;
 
 	if (self.classname != "droppedweapon") // if dropped, colormap is already set up nicely
 	if (itemflags & FL_WEAPON)




More information about the nexuiz-commits mailing list