r4784 - in trunk/data: . qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Oct 18 17:54:14 EDT 2008


Author: div0
Date: 2008-10-18 17:54:14 -0400 (Sat, 18 Oct 2008)
New Revision: 4784

Modified:
   trunk/data/defaultNexuiz.cfg
   trunk/data/qcsrc/server/ctf.qc
Log:
add reverse ctf


Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg	2008-10-18 21:37:22 UTC (rev 4783)
+++ trunk/data/defaultNexuiz.cfg	2008-10-18 21:54:14 UTC (rev 4784)
@@ -392,6 +392,7 @@
 set g_ctf_flagcarrier_selfforce 1
 set g_ctf_fullbrightflags 1
 set g_ctf_allow_drop 0 // dropping allows circumventing carrierkill score, so enable this with care!
+set g_ctf_reverse 0 // when 1, bases/flags are switched :P you have to capture your OWN flag by bringing it to the ENEMY's
 set g_balance_ctf_delay_collect 1.0
 set g_balance_ctf_damageforcescale 1
                                                

Modified: trunk/data/qcsrc/server/ctf.qc
===================================================================
--- trunk/data/qcsrc/server/ctf.qc	2008-10-18 21:37:22 UTC (rev 4783)
+++ trunk/data/qcsrc/server/ctf.qc	2008-10-18 21:54:14 UTC (rev 4784)
@@ -534,8 +534,16 @@
 	ctf_worldflaglist = self;
 
 	self.classname = "item_flag_team";
-	self.team = COLOR_TEAM1; // color 4 team (red)
-	self.items = IT_KEY2; // gold key (redish enough)
+	if(g_ctf_reverse)
+	{
+		self.team = COLOR_TEAM2; // color 13 team (blue)
+		self.items = IT_KEY1; // silver key (bluish enough)
+	}
+	else
+	{
+		self.team = COLOR_TEAM1; // color 4 team (red)
+		self.items = IT_KEY2; // gold key (redish enough)
+	}
 	self.netname = "^1RED^7 flag";
 	self.target = "###item###";
 	self.skin = 0;
@@ -618,8 +626,16 @@
 	ctf_worldflaglist = self;
 
 	self.classname = "item_flag_team";
-	self.team = COLOR_TEAM2; // color 13 team (blue)
-	self.items = IT_KEY1; // silver key (bluish enough)
+	if(g_ctf_reverse)
+	{
+		self.team = COLOR_TEAM1; // color 4 team (red)
+		self.items = IT_KEY2; // gold key (redish enough)
+	}
+	else
+	{
+		self.team = COLOR_TEAM2; // color 13 team (blue)
+		self.items = IT_KEY1; // silver key (bluish enough)
+	}
 	self.netname = "^4BLUE^7 flag";
 	self.target = "###item###";
 	self.skin = 0;




More information about the nexuiz-commits mailing list