[nexuiz-commits] r7450 - in trunk/data: . qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 16 12:40:26 EDT 2009


Author: div0
Date: 2009-08-16 12:40:26 -0400 (Sun, 16 Aug 2009)
New Revision: 7450

Modified:
   trunk/data/defaultNexuiz.cfg
   trunk/data/qcsrc/server/cl_client.qc
   trunk/data/qcsrc/server/constants.qh
Log:
individual hitplot


Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg	2009-08-16 16:35:42 UTC (rev 7449)
+++ trunk/data/defaultNexuiz.cfg	2009-08-16 16:40:26 UTC (rev 7450)
@@ -26,7 +26,7 @@
 seta g_configversion 0	"Configuration file version (used to upgrade settings) 0: first run, or previous start was <2.4.1  Later, it's overridden by config.cfg, version ranges are defined in config_update.cfg"
 
 // default.cfg versioning (update using update-cvarcount.sh, run that every time after adding a new cvar)
-set cvar_check_default 78d0ce73981951ab9fe404a9607908c9
+set cvar_check_default 40fd98ae84e7814d9494ef3cef6fb162
 
 // Nexuiz version (formatted for machines)
 // used to determine if a client version is compatible
@@ -1609,6 +1609,9 @@
 set cl_effects_lightningarc_branchfactor_add 0.1
 
 set g_hitplots 0 "when set to 1, hitplots are stored by the server to provide a means of proving that a triggerbot was used"
+seta g_hitplots_individuals "" "the individuals, by IP, that should have their hitplots recorded"
+alias g_hitplots_add "qc_cmd rpn /g_hitplots_individuals g_hitplots_individuals $1 union def"
+alias g_hitplots_remove "qc_cmd rpn /g_hitplots_individuals g_hitplots_individuals $1 difference def"
 
 alias mute "prvm_edictset server $1 muted 1" // I am lazy and not making an actual command of this
 alias unmute "prvm_edictset server $1 muted 0" // dito

Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2009-08-16 16:35:42 UTC (rev 7449)
+++ trunk/data/qcsrc/server/cl_client.qc	2009-08-16 16:40:26 UTC (rev 7450)
@@ -1444,9 +1444,9 @@
 
 	SoundEntity_Attach(self);
 
-	if(cvar("g_hitplots"))
+	if(cvar("g_hitplots") || strstrofs(strcat(" ", cvar_string("g_hitplots_individuals"), " "), strcat(" ", self.netaddress, " "), 0) >= 0)
 	{
-		self.hitplotfh = fopen(strcat("hits-", matchid, "-", ftos(self.playerid), ".plot"), FILE_WRITE);
+		self.hitplotfh = fopen(strcat("hits-", matchid, "-", self.netaddress, "-", ftos(self.playerid), ".plot"), FILE_WRITE);
 		fputs(self.hitplotfh, strcat("#name ", self.netname, "\n"));
 	}
 	else

Modified: trunk/data/qcsrc/server/constants.qh
===================================================================
--- trunk/data/qcsrc/server/constants.qh	2009-08-16 16:35:42 UTC (rev 7449)
+++ trunk/data/qcsrc/server/constants.qh	2009-08-16 16:40:26 UTC (rev 7450)
@@ -1,4 +1,4 @@
-string CVAR_CHECK_DEFAULT = "78d0ce73981951ab9fe404a9607908c9";
+string CVAR_CHECK_DEFAULT = "40fd98ae84e7814d9494ef3cef6fb162";
 string CVAR_CHECK_WEAPONS = "a7ca57b891d66754b856e24e5c1745e3";
 
 float	FALSE					= 0;



More information about the nexuiz-commits mailing list