r3388 - in trunk/data: . qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Feb 18 09:21:47 EST 2008


Author: m0rfar
Date: 2008-02-18 09:21:46 -0500 (Mon, 18 Feb 2008)
New Revision: 3388

Modified:
   trunk/data/default.cfg
   trunk/data/qcsrc/server/mode_onslaught.qc
Log:
Added 'g_onslaught_gen_health' and 'g_onslaught_cp_health' cvars, to change generator and control point health.
Rasied generator health to 10000.

Modified: trunk/data/default.cfg
===================================================================
--- trunk/data/default.cfg	2008-02-16 23:48:11 UTC (rev 3387)
+++ trunk/data/default.cfg	2008-02-18 14:21:46 UTC (rev 3388)
@@ -408,6 +408,8 @@
 
 // onslaught
 set g_onslaught 0
+set g_onslaught_gen_health 10000
+set g_onslaught_cp_health 1000
 
 // assault
 set g_assault 0

Modified: trunk/data/qcsrc/server/mode_onslaught.qc
===================================================================
--- trunk/data/qcsrc/server/mode_onslaught.qc	2008-02-16 23:48:11 UTC (rev 3387)
+++ trunk/data/qcsrc/server/mode_onslaught.qc	2008-02-18 14:21:46 UTC (rev 3388)
@@ -551,7 +551,7 @@
 	self.colormap = 1024 + (self.team - 1) * 17;
 	self.solid = SOLID_BSP;
 	self.movetype = MOVETYPE_NONE;
-	self.lasthealth = self.max_health = self.health = 3000;
+	self.lasthealth = self.max_health = self.health = cvar("g_onslaught_gen_health");
 	setmodel(self, "models/onslaught/generator.md3");
 	//setsize(self, '-32 -32 -24', '32 32 64');
 	setorigin(self, self.origin);
@@ -688,7 +688,7 @@
 	// point if it successfully builds without being destroyed first)
 	self.goalentity = e = spawn();
 	e.owner = self;
-	e.max_health = 1000;
+	e.max_health = cvar("g_onslaught_cp_health");
 	e.health = e.max_health * 0.1;
 	e.alpha = e.health / e.max_health;
 	e.solid = SOLID_BBOX;




More information about the nexuiz-commits mailing list