Module dpmod: Change committed

havoc at icculus.org havoc at icculus.org
Sun Jun 8 03:56:41 EDT 2003


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : dpmod
Commit time: 2003-06-08 07:56:41 UTC

Log message:

added a test for KRIMZON_SV_PARSECLIENTCOMMAND

Modified files:
     qc/impulse_main.qc

------=MIME.20f3e540bfb9a2386ab5a8b814bfa51c
Content-Type: text/plain; name="dpmod.20030608.075641.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20030608.075641.havoc.diff"
Content-Transfer-Encoding: 8bit

Index: dpmod/qc/impulse_main.qc
diff -u dpmod/qc/impulse_main.qc:1.6 dpmod/qc/impulse_main.qc:1.7
--- dpmod/qc/impulse_main.qc:1.6	Wed Apr  9 23:22:35 2003
+++ dpmod/qc/impulse_main.qc	Sun Jun  8 03:56:31 2003
@@ -83,7 +83,31 @@
 	fclose(file);
 };
 
-
+//KRIMZON_SV_PARSECLIENTCOMMAND test
+void SV_ParseClientCommand (string s)
+{
+	local float args;
+	local string c;
+	args = tokenize(s);
+	c = argv(0);
+	     if (c == "say") clientcommand(self, s);
+	else if (c == "say_team") clientcommand(self, s);
+	else if (c == "name") clientcommand(self, s);
+	else if (c == "color") clientcommand(self, s);
+	else if (c == "tell") clientcommand(self, s);
+	else if (c == "kill") clientcommand(self, s);
+	else if (c == "status") clientcommand(self, s);
+	else if (c == "pause") clientcommand(self, s);
+	else if (c == "kick") clientcommand(self, s);
+	else if (c == "ping") clientcommand(self, s);
+	else if (c == "ban") clientcommand(self, s);
+	else if (c == "pmodel") clientcommand(self, s);
+	else if (c == "god") clientcommand(self, s);
+	else if (c == "fly") clientcommand(self, s);
+	else if (c == "noclip") clientcommand(self, s);
+	else if (c == "notarget") clientcommand(self, s);
+	else if (c == "give") clientcommand(self, s);
+}
 
 .float isadmin, adminnumber, admindigits, adminattempts;
 


More information about the twilight-commits mailing list