two commands at once?
when you type
command1 & command2
It do command1 and after it command2.
I have two commands but i want to bind them.And i dont want to press button A and after it B.I want to press A and execute two commands at once.Thank you.
I think
hey and i want to bind sv_cheats 1 when its set to 0 and sv_cheats 0 when its set to 1.How?Thanks!
Bosf wrote:
yeah thanks but command ; command works toohey and i want to bind
sv_cheats 1 when its set to 0 and sv_cheats 0 when its set to 1.How?Thanks!
i don't know if this works exactly the same, but its how i did it in quake and so far pretty much all the aliasing and binding has been the same for me
alias chON "sv_cheats 1;wait;bind k chOFF"
alias chOFF "sv_cheats 0;wait; bind k chON"
bind k chON
and just change "k" with whatever key you want to use it as
i use it for turn off hud too.
] alias "hudOFF" "cl_drawhud 0 ; crosshair 0 ; impulse 200 ;bind "tab" "hudON" "
] alias "hudON" "cl_drawhud 1 ; crosshair 1 ; impulse 200 ; bind "tab" "hudOFF" "
] bind "tab" "hudOFF"
LOL
I never want to do it again.
where its saved?
Bosf wrote:
thanks for alias command.it works bit before i set it-MADNESS!
i use it for turn off hud too.] alias "hudOFF" "cl_drawhud 0;crosshair 0;impulse 200;bind "tab" "hudON" "
] alias "hudON" "cl_drawhud 1;crosshair 1;impulse 200;bind "tab" "hudOFF" "
] bind "tab" "hudOFF"LOL
I never want to do it again.
where its saved?
ok in your
C:\Program Files\steam\SteamApps\STEAMID\portal\portal\cfg
directory make a new text file and name it whatever example hudcon.cfg and make sure it saves as a simple ascii-text file. in that file put your commands; example:
alias hudOFF "cl_drawhud 0;crosshair 0;impulse 200;bind tab hudON"
alias hudON "cl_drawhud 1;crosshair 1;impulse 200;bind tab hudOFF"
bind tab hudOFF
then save it
then in the game. type
exec hudcon
and it should help you autotype also
Bosf wrote:
hey but when i ran portal once that alias was not found.Unkown command hudOFF.Waht should i do now?
follow my instructions.. make a config file in your /portal/cfg directory name it whatever you want (suggest hudcon.cfg) and put all your aliases and binding in there and then when you get in the game just run the config file (use: "exec hudcon") and then everything should be aliased and bound.
bind key command
After you launch portal once again its not bound.
when you type
bind "key" "command"
It will be bind all the time.
when i type
alias key command
after i launch portal once again its- not aliased.
when i type
alias "key" "command"
after i launch portal once again its- not aliased???Can some comand fix it at all?
Bosf wrote:
i dont want to type it again anda again...When you type
bind key command
After you launch portal once again its not bound.
when you type
bind "key" "command"
It will be bind all the time.
when i type
alias key command
after i launch portal once again its- not aliased.
when i type
alias "key" "command"
after i launch portal once again its- not aliased???Can some comand fix it at all?
ok i already told you. and for the 3rd time. goto your portal/portal/cfg directory (should be something like this)
C:\Program Files\steam\SteamApps\STEAMID\portal\portal\cfg
and ### in that directory make a new text file and name it whatever (example; hudcon.cfg) and make sure it saves as a simple ascii-text file. ### in that file put your commands; example:
alias hudOFF "cl_drawhud 0;crosshair 0;impulse 200;bind tab hudON"
alias hudON "cl_drawhud 1;crosshair 1;impulse 200;bind tab hudOFF"
bind tab hudOFF
then save it
then in the game. type
exec hudcon
and it should help you autotype also
Bosf wrote:
I KNOW THAT! But i dont want to type exec hud again.
then rename the file to
autoexec.cfg **
and it "should" excecute when you start the game...
but really whats so hard about typing exec hudcon ? lol that way you have have multiple bindings set up to the same/different keys and just exec whatever config you need to fit your situation
but if thats all you want. then just renamewhatever config you have your hud setup stuff in to autoexec.cfg
) and i do it.Okay stop fraps and run once again.Then i want some scene without portalgun.Recording-i press tab-nothing matters.Its annyoning.