Forums » General
Alias and binds...
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.
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.
/alias rollstrafe "+Rollccw; +strafeleft"
/bind q Rollstrafe
something like that
/bind q Rollstrafe
something like that
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.
/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.
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?
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?
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.