halflife icon indicating copy to clipboard operation
halflife copied to clipboard

(cs) alias console output [feature request]

Open MaximilianKohler opened this issue 13 years ago • 7 comments

When you type "sensitivity" + enter in console it will tell you what sensitivity is set to. Can this be extended to aliases? Where alias "asdf" is set to "sensitivity 1", then if you type "alias asdf" + enter in console it will tell you what the alias is set to?

MaximilianKohler avatar Apr 14 '13 02:04 MaximilianKohler

it's a good idea, but what if you want to lock a command / cvar by aliasing it ?

ghost avatar Apr 16 '13 17:04 ghost

How would this effect that?

If you wanted to lock the shield it would be "alias shield shield1", then when you type "alias shield" in console it would tell you "alias shield is set to shield1" or w/e.

MaximilianKohler avatar Apr 16 '13 18:04 MaximilianKohler

aliasing a command or cvar without any other argument locks it, so it wouldn't be possible anymore and would break scripts / plugins that rely on it

ghost avatar Apr 16 '13 20:04 ghost

I'd recommend not "alias", but "aliased", to show to what command is set to.

MPNumB avatar Apr 17 '13 06:04 MPNumB

Just type alias and you'll get a list of all the current aliases in your game.

cansheslap avatar Apr 21 '13 12:04 cansheslap

Just type alias and you'll get a list of all the current aliases in your game.

Oh wow.. I didn't know you could do that ._.

MaximilianKohler avatar Apr 22 '13 10:04 MaximilianKohler

Use alias as @cansheslap suggests.

alfred-valve avatar Apr 25 '13 17:04 alfred-valve