hiimchris
21st November 2007, 09:44
Here is my script:
alias dev1 "developer 1"
alias dev0 "developer 0"
alias scoutcfg "exec Scout.cfg"
alias snipercfg "exec Sniper.cfg"
alias soldiercfg "exec Soldier.cfg"
alias demomancfg "exec Demoman.cfg"
alias mediccfg "exec Medic.cfg"
alias hwguycfg "exec HWguy.cfg"
alias pyrocfg "exec Pyro.cfg"
alias spycfg "exec Spy.cfg"
alias engineercfg "exec Engineer.cfg"
alias cleanupcfg "exec Cleanup.cfg"
bind "F1" "dev1; echo SCOUT CONFIG ACTIVATED; scoutcfg; wait 100; dev0"
bind "F2" "dev1; echo PYRO CONFIG ACTIVATED; pyrocfg; wait 100; dev0"
bind "F3" "dev1; echo SOLDIER CONFIG ACTIVATED; soldiercfg; wait 100; dev0"
bind "F4" "dev1; echo DEMOMAN CONFIG ACTIVATED; demomancfg; wait 100; dev0"
bind "F5" "dev1; echo HWGUY CONFIG ACTIVATED;hwguycfg; wait 100; dev0"
bind "F6" "dev1; echo SNIPER CONFIG ACTIVATED; snipercfg; wait 100; dev0"
bind "F7" "dev1; echo MEDIC CONFIG ACTIVATED; mediccfg; wait 100; dev0"
bind "F8" "dev1; echo SPY CONFIG ACTIVATED; spycfg; wait 100; dev0"
bind "F9" "dev1; echo ENGINEER CONFIG ACTIVATED; engineercfg; wait 100; dev0"
bind "f10" "dev1; echo CLEANUP CONFIG ACTIVATED; cleanupcfg; wait 100; dev0"
The purpose of this script is so that I will have more free buttons on my keyboard, as I play on a laptop. This script is used to execute different binds according to each respective class (aka im a spy one round, so i execute my spy config by pressing F8, and then im engineer next round, so i execute my engineer config by pressing f9).
I have already made the configs in my tf2/tf/cfg folder, and added my custom alias' and binds, there is no problem there, because when I execute manually the scripts load perfectly. The first thing I do when I enter the game is to exec userconfig.cfg, config.cfg, and autoexec.cfg in my console to apply any changes I have made.
As you can see by my script, I binded the F1-F10 keys to execute a different script with each key. The problem is that the echo IS working, but the script IS NOT executing my desired configurations (aka i am a sniper and i press F6, echo works but execution of script doesn't). It works perfectly when I type it in console manually, but when I use a bind to execute specific configurations, it never seems to work. Can someone please help me!:\
alias dev1 "developer 1"
alias dev0 "developer 0"
alias scoutcfg "exec Scout.cfg"
alias snipercfg "exec Sniper.cfg"
alias soldiercfg "exec Soldier.cfg"
alias demomancfg "exec Demoman.cfg"
alias mediccfg "exec Medic.cfg"
alias hwguycfg "exec HWguy.cfg"
alias pyrocfg "exec Pyro.cfg"
alias spycfg "exec Spy.cfg"
alias engineercfg "exec Engineer.cfg"
alias cleanupcfg "exec Cleanup.cfg"
bind "F1" "dev1; echo SCOUT CONFIG ACTIVATED; scoutcfg; wait 100; dev0"
bind "F2" "dev1; echo PYRO CONFIG ACTIVATED; pyrocfg; wait 100; dev0"
bind "F3" "dev1; echo SOLDIER CONFIG ACTIVATED; soldiercfg; wait 100; dev0"
bind "F4" "dev1; echo DEMOMAN CONFIG ACTIVATED; demomancfg; wait 100; dev0"
bind "F5" "dev1; echo HWGUY CONFIG ACTIVATED;hwguycfg; wait 100; dev0"
bind "F6" "dev1; echo SNIPER CONFIG ACTIVATED; snipercfg; wait 100; dev0"
bind "F7" "dev1; echo MEDIC CONFIG ACTIVATED; mediccfg; wait 100; dev0"
bind "F8" "dev1; echo SPY CONFIG ACTIVATED; spycfg; wait 100; dev0"
bind "F9" "dev1; echo ENGINEER CONFIG ACTIVATED; engineercfg; wait 100; dev0"
bind "f10" "dev1; echo CLEANUP CONFIG ACTIVATED; cleanupcfg; wait 100; dev0"
The purpose of this script is so that I will have more free buttons on my keyboard, as I play on a laptop. This script is used to execute different binds according to each respective class (aka im a spy one round, so i execute my spy config by pressing F8, and then im engineer next round, so i execute my engineer config by pressing f9).
I have already made the configs in my tf2/tf/cfg folder, and added my custom alias' and binds, there is no problem there, because when I execute manually the scripts load perfectly. The first thing I do when I enter the game is to exec userconfig.cfg, config.cfg, and autoexec.cfg in my console to apply any changes I have made.
As you can see by my script, I binded the F1-F10 keys to execute a different script with each key. The problem is that the echo IS working, but the script IS NOT executing my desired configurations (aka i am a sniper and i press F6, echo works but execution of script doesn't). It works perfectly when I type it in console manually, but when I use a bind to execute specific configurations, it never seems to work. Can someone please help me!:\