r1953 - in trunk/data: . qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Nov 30 04:58:24 EST 2006


Author: div0
Date: 2006-11-30 04:58:24 -0500 (Thu, 30 Nov 2006)
New Revision: 1953

Modified:
   trunk/data/default.cfg
   trunk/data/qcsrc/server/w_nex.qc
Log:
new settings:
set g_balance_minstagib_nex_refire 1.0
set g_balance_minstagib_nex_animtime 0.3
to allow different settings for Minstagib and regular gameplay


Modified: trunk/data/default.cfg
===================================================================
--- trunk/data/default.cfg	2006-11-29 12:04:52 UTC (rev 1952)
+++ trunk/data/default.cfg	2006-11-30 09:58:24 UTC (rev 1953)
@@ -494,6 +494,8 @@
 set g_balance_nex_damage 140
 set g_balance_nex_refire 1.5
 set g_balance_nex_animtime 0.3
+set g_balance_minstagib_nex_refire 1.0
+set g_balance_minstagib_nex_animtime 0.3
 set g_balance_nex_ammo 5
 set g_balance_nex_respawntime_modifier 1
 

Modified: trunk/data/qcsrc/server/w_nex.qc
===================================================================
--- trunk/data/qcsrc/server/w_nex.qc	2006-11-29 12:04:52 UTC (rev 1952)
+++ trunk/data/qcsrc/server/w_nex.qc	2006-11-30 09:58:24 UTC (rev 1953)
@@ -143,10 +143,23 @@
 	else if (req == WR_THINK)
 	{
 		if (self.button0)
-		if (weapon_prepareattack(0, cvar("g_balance_nex_refire")))
 		{
-			W_Nex_Attack();
-			weapon_thinkf(WFRAME_FIRE1, cvar("g_balance_nex_animtime"), w_ready);
+			if(cvar("g_minstagib"))
+			{
+				if (weapon_prepareattack(0, cvar("g_balance_minstagib_nex_refire")))
+				{
+					W_Nex_Attack();
+					weapon_thinkf(WFRAME_FIRE1, cvar("g_balance_minstagib_nex_animtime"), w_ready);
+				}
+			}
+			else
+			{
+				if (weapon_prepareattack(0, cvar("g_balance_nex_refire")))
+				{
+					W_Nex_Attack();
+					weapon_thinkf(WFRAME_FIRE1, cvar("g_balance_nex_animtime"), w_ready);
+				}
+			}
 		}
 	}
 	else if (req == WR_SETUP)




More information about the nexuiz-commits mailing list