PDA

View Full Version : something similar to "alias" command in COD ?


imported_notorius
11-11-2003, 01:43 PM
Hi there,

in the good old MOH-Time i used the "alias" command to get a easier handling of commands.......i used r.g. the rcon clientkick 16 command as 'ckick16'.

I recently started to build a COD with the same possibilities, and i got the problem, that there is no alias command in COD, so i wasnt able to make a "Map-Restart say "team x join Axis, team y join Allies" with just only one command.

Is there something similar to the good old 'alias'-command.

ATM i have to make 2 steps to get the same result like in Moh with one command.

heres an example:

i made a rcon-script as a text-file, lets say it is called "rcon.cfg"
in the match a make a "exec rcon.cfg"

the rcon.cfg contains following lines:

set re "rcon map_restart"
set join "rcon say: Team X-Force join Allies, other team Axis please"

after the start of the script i have to do this in console:

/vstr re
/vstr join

and THIS in only ONE command !!

Possible ???

greets

notorius

Tighten
11-11-2003, 02:03 PM
COD does not use alias.

You can bind a key assuming you have already set the rcon password.

/bind F5 "toggleconsole; rcon map_restart"

/bind F6 "toggleconsole; rcon gametype sd; map mp_chateau"

/bind F7 “toggleconsole; rcon gametype tdm; map mp_rocket”bind

Or something similar.

maskedavenger
11-23-2003, 04:23 PM
I found this at this thread for ya:
http://www.codadmin.com/nuke/modules.php?name=Forums&file=viewtopic&t=127

Wolf, I understand what you're asking and at the moment CoD does not allow aliases. However you can use set along with vstr to do something similar.

For example, in mohaa you code write:
alias tdm "g_gametype 2; map dm/mohdm1"

and then simply type tdm at the console and go.

In CoD, you'd need:
set tdm "g_gametype tdm ; map mp_dawnville"

and use vstr tdm to start it.

You can get really fancy with this, but it's still doesn't compare to the flexibility of the alias command.