Forums » General

Alias and binds...

Jul 12, 2003 Dagger link
Meh. I've tried to figure out this alias stuff for a long time.
What I'd really want is to bind BOTH the rotate command and the strafe
command to one key, so I could move like an airplane (rotate when strafin').

How do you do this?
I tried to assign two commands to the same key, but only the command I last entered worked. I have Mac, so I edit the wgaf.txt file.
Jul 12, 2003 HumpyThePenguin link
/alias rollstrafe "+Rollccw; +strafeleft"
/bind q Rollstrafe

something like that
Jul 12, 2003 Leqiator link
that SHOULD work. But im not so sure...doesnt look perfectly right to me. Im gunna do what i would do in cs...altho it migth not work either :P i ususally have to test things.

/alias +rollstrafe "+rollccw; +strafeleft"
/alias -rollstrage "-rollccw; -strafeleft"
/bind q Rollstrafe.

Should work, but i honestly dont know mate :) Plus this would be dodgy for an airplane script.

Why?

Because this has no limit. You would basically keep rolling and going left...so it would be dodgy. Or would it =\. Imo, the best thing to do would be to rollccw and moveup. Thats what a real plane does - it doesnt sidestep, it rolls then points its nose upwards. So try.

/alias +rollstrafe "+rollccw; +strafeup"
/alias -rollstrafe "-rollccw; -strafeup"
/bind q Rollstrafe.
Jul 12, 2003 Dagger link
Nah. Doesn't work.
Anyways. I have some simple binds I'd like.

To toggle/untoggle autoaim. Would that be something like this?
alias toggleautoaim "set autoaim 1; bind F5 untoggleautoaim; echo "*** AutoAim online ***""
alias untoggleautoaim "set autoaim 1; bind F5 toggleautoaim; echo "*** AutoAim offline ***""

bind F5 toggleautoaim F5

Righ?
Jul 13, 2003 raybondo link
I think there's another thread about aliases but I'll look into whether the +commands work inside aliases. I'm too tired right now to deal with it.