r4681 - in trunk/data: . qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 9 04:00:23 EDT 2008


Author: div0
Date: 2008-10-09 04:00:18 -0400 (Thu, 09 Oct 2008)
New Revision: 4681

Modified:
   trunk/data/defaultNexuiz.cfg
   trunk/data/qcsrc/server/ctf.qc
Log:
g_ctf_fullbrightflags
g_balance_ctf_damageforcescale


Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg	2008-10-09 06:31:51 UTC (rev 4680)
+++ trunk/data/defaultNexuiz.cfg	2008-10-09 08:00:18 UTC (rev 4681)
@@ -389,6 +389,8 @@
 set g_ctf_flag_returntime 30
 set g_ctf_flagcarrier_selfdamage 1
 set g_ctf_flagcarrier_selfforce 1
+set g_ctf_fullbrightflags 1
+set g_balance_ctf_damageforcescale 1
                                                
 exec ctfscoring-nex242.cfg
 

Modified: trunk/data/qcsrc/server/ctf.qc
===================================================================
--- trunk/data/qcsrc/server/ctf.qc	2008-10-09 06:31:51 UTC (rev 4680)
+++ trunk/data/qcsrc/server/ctf.qc	2008-10-09 08:00:18 UTC (rev 4681)
@@ -79,6 +79,7 @@
 void RegenFlag(entity e)
 {
 	setattachment(e, world, "");
+	e.damageforcescale = 0;
 	e.movetype = MOVETYPE_NONE;
 	if(!self.noalign)
 		e.movetype = MOVETYPE_TOSS;
@@ -141,6 +142,7 @@
 	LogCTF("dropped", p.team, p);
 
 	setattachment(e, world, "");
+	e.damageforcescale = cvar("g_balance_ctf_damageforcescale");
 
 	if (p.flagcarried == e)
 		p.flagcarried = world;
@@ -407,6 +409,7 @@
 			self.movetype = MOVETYPE_NONE;	// flag must have MOVETYPE_NONE here, otherwise it will drop through the floor...
 			setorigin(self, FLAG_CARRY_POS);
 			setattachment(self, other, "");
+			self.damageforcescale = 0;
 			WaypointSprite_AttachCarrier("flagcarrier", other);
 			WaypointSprite_UpdateTeamRadar(other.waypointsprite_attachedforcarrier, RADARICON_FLAGCARRIER, '1 1 0');
 		}
@@ -539,7 +542,8 @@
 	precache_sound (self.noise1);
 	precache_sound (self.noise2);
 	precache_sound (self.noise3);
-	setsize(self, '-16 -16 -37', '16 16 37');
+	//setsize(self, '-16 -16 -37', '16 16 37');
+	setsize(self, PL_MIN, PL_MAX);
 	setorigin(self, self.origin + '0 0 37');
 	self.nextthink = time + 0.2; // start after doors etc
 	self.think = place_flag;
@@ -549,7 +553,9 @@
 	//if(!self.glow_size)
 	//	self.glow_size = 50;
 
-	self.effects = self.effects | EF_FULLBRIGHT | EF_LOWPRECISION;
+	self.effects = self.effects | EF_LOWPRECISION;
+	if(cvar("g_ctf_fullbrightflags"))
+		self.effects |= EF_FULLBRIGHT;
 	if(!self.noalign)
 		droptofloor();
 
@@ -622,7 +628,8 @@
 	precache_sound (self.noise1);
 	precache_sound (self.noise2);
 	precache_sound (self.noise3);
-	setsize(self, '-16 -16 -37', '16 16 37');
+	//setsize(self, '-16 -16 -37', '16 16 37');
+	setsize(self, PL_MIN, PL_MAX);
 	setorigin(self, self.origin + '0 0 37');
 	self.nextthink = time + 0.2; // start after doors etc
 	self.think = place_flag;
@@ -632,7 +639,9 @@
 	//if(!self.glow_size)
 	//	self.glow_size = 50;
 
-	self.effects = self.effects | EF_FULLBRIGHT | EF_LOWPRECISION;
+	self.effects = self.effects | EF_LOWPRECISION;
+	if(cvar("g_ctf_fullbrightflags"))
+		self.effects |= EF_FULLBRIGHT;
 	if(!self.noalign)
 		droptofloor();
 




More information about the nexuiz-commits mailing list