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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Jun 8 03:32:05 EDT 2009


Author: div0
Date: 2009-06-08 03:32:04 -0400 (Mon, 08 Jun 2009)
New Revision: 6912

Modified:
   trunk/data/qcsrc/server/w_tuba.qc
Log:
only spawn tuba in developer or cheats mode


Modified: trunk/data/qcsrc/server/w_tuba.qc
===================================================================
--- trunk/data/qcsrc/server/w_tuba.qc	2009-06-08 07:28:49 UTC (rev 6911)
+++ trunk/data/qcsrc/server/w_tuba.qc	2009-06-08 07:32:04 UTC (rev 6912)
@@ -77,6 +77,12 @@
 
 void spawnfunc_weapon_tuba (void)
 {
+	if(!sv_cheats && !cvar("developer"))
+	{
+		print("The @!#%'n Tuba awaits you... not.\n");
+		remove(self);
+		return;
+	}
 	weapon_defaultspawnfunc(WEP_TUBA);
 }
 



More information about the nexuiz-commits mailing list