From: Samual Date: Sun, 6 Nov 2011 17:40:17 +0000 (-0500) Subject: Add commented out template for new gamecommand functions X-Git-Tag: xonotic-v0.6.0~188^2~28^2~247 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5d20d5006d54d5fe3c4ce0056cbeaa377ed5b00a;p=xonotic%2Fxonotic-data.pk3dir.git Add commented out template for new gamecommand functions --- diff --git a/qcsrc/server/gamecommand.qc b/qcsrc/server/gamecommand.qc index afb8af6da..c0dd934fa 100644 --- a/qcsrc/server/gamecommand.qc +++ b/qcsrc/server/gamecommand.qc @@ -1964,6 +1964,34 @@ void GameCommand_warp(float request, float argc) } } +/* +void GameCommand_(float request) +{ + switch(request) + { + case GC_REQUEST_HELP: + { + sprint(self, " ^2blah^7: foobar\n"); + return; + } + + case GC_REQUEST_COMMAND: + { + + return; + } + + default: + case GC_REQUEST_USAGE: + { + sprint(self, "\nUsage:^3 cmd \n"); + sprint(self, " No arguments required.\n"); + return; + } + } +} +*/ + // =========================== // Macro system for commands