r/tf2scripthelp • Bad Derpy Scripter. • Apr 22 '13

Answered A question about alias.

I want to make some derpy scripts,and i need to know,after typing alias "play" "" (for example) this,as most of you know makes the play command not work,and you can solve it by removing that line from your autoexec.cfg, but would alias "play" "play" make the command work again?
If not,any way of making it work again without having to edit autoexec,for automated scripts? Thanks in advance!

3 Upvotes

2 comments sorted by

2

u/TimePath Stylesheet May 19 '13 edited May 19 '13

Sorry for the late reply, we're still getting used to moderating the spam filter.

That aliasing will create an infinite loop, you might be able to use cmd for this.

Syntax:

cmd <command>

cmd ignores aliases, so you would do:

cmd play ""

Source:

Mart-Jan Reeuwijk ([email protected])
To: Half-Life dedicated Win32 server mailing list

no need to restart the game.

alias jpeg; // aliasing the jpeg command, which is used to make a screenshot.
cmd jpeg // this will still make a screenshot.

1

u/JosDW Bad Derpy Scripter. May 19 '13

Thanks a lot!