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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Sep 8 10:40:33 EDT 2009


Author: div0
Date: 2009-09-08 10:40:33 -0400 (Tue, 08 Sep 2009)
New Revision: 7693

Modified:
   trunk/data/qcsrc/server/g_damage.qc
Log:
random weapon arena: switch gun after frag too


Modified: trunk/data/qcsrc/server/g_damage.qc
===================================================================
--- trunk/data/qcsrc/server/g_damage.qc	2009-09-08 13:10:40 UTC (rev 7692)
+++ trunk/data/qcsrc/server/g_damage.qc	2009-09-08 14:40:33 UTC (rev 7693)
@@ -122,6 +122,14 @@
 		if(cvar("g_arena_roundbased"))
 			return;
 
+	if(g_weaponarena_random)
+	{
+		// after a frag, choose another random weapon set
+		attacker.weapons = randombits(attacker.weapons, (inWarmupStage ? warmup_start_weapons : start_weapons));
+		if not(attacker.weapons & W_WeaponBit(attacker.weapon))
+			W_SwitchWeapon_Force(attacker, w_getbestweapon(attacker));
+	}
+
 	// FIXME fix the mess this is (we have REAL points now!)
 	if(g_runematch)
 	{



More information about the nexuiz-commits mailing list