git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6392 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-04-29 15:51:10 +00:00
parent 0281461ddc
commit 0aecce709f
3 changed files with 23 additions and 1 deletions
+3 -1
View File
@@ -247,7 +247,9 @@ docargument [B] [triangle debug] [min 0/max 1/default 0];
docremark [Prints details while connecting triangles of 3d models.];
docident [debugargs] [Dump all command arguments to STDOUT];
docargument [...] [...] [] [1];
docident [echo] [];
docident [echo] [Outputs text to the console.];
docargument [L] [List of strings] [] [0];
docident [hudecho] [Outputs text to the console and heads up display.];
docargument [L] [List of strings] [] [0];
docident [exec] [Executes all commands in a specified config file.];
docargument [C] [the config file] [] [0];
+8
View File
@@ -853,6 +853,14 @@
</command>
<command name="echo">
<description>Outputs text to the console.</description>
<arguments>
<argument token="L" description="List of strings"/>
</arguments>
</command>
<command name="hudecho">
<description>Outputs text to the console and heads up display.</description>
<arguments>
<argument token="L" description="List of strings"/>
</arguments>
+12
View File
@@ -270,7 +270,19 @@ void echo(char *text)
while(s);
}
void hudecho(char *text)
{
const char *s = strtok(text, "\n");
do
{
hudoutf("%s", s ? s : "");
s = strtok(NULL, "\n");
}
while(s);
}
COMMAND(echo, ARG_CONC);
COMMAND(hudecho, ARG_CONC);
COMMANDN(say, toserver, ARG_CONC);
COMMANDN(me, toserverme, ARG_CONC);
COMMANDN(connect, connectserv, ARG_3STR);