Fixed! (I enjoy talking to myself obviously) So I played around with the wait command with my soldier.cfg and scout.cfg, got it working properly FINALLY and then I deleted the wait command and now the shit is working as normal. I am pretty sure I broke TF2 and it was pissed off at me. The only thing I can think of is maybe when I enabled fast weapon switch that allowed for the quick pressing of mouse1/2/3 and then the +attack command immediately after. So if anyone else has issues with this, please try to enable fast weapon switch in advanced menu?
UPDATE:
Ok so after MUCH testing, If I make the aliases have a wait command like this:
// scattergun
alias "+scatter" "slot1;wait;+attack;"
alias "-scatter" "-attack;"
// pistol
alias "+pistol" "slot2;wait 5;+attack;"
alias "-pistol" "-attack;"
// bat
alias "+bat" "slot3;wait 5;+attack;"
alias "-bat" "-attack"
Everything works, EXCEPT there is an obvious pause between shots (few seconds) If I take away the wait command it absolutely does not shoot. Has anyone had this happen to them?
I can not get any scripts for soldier and scout to work properly. I have it set up mouse1 >slot1 attack, mouse2 slot2 attack, mouse3 slot3 attack. It changes weapons just fine but the +attack -attack is broken. These are straight up copy and pastes from different sites and I have tried every combination possible. Things I have done:
-Steam cloud is off
-i have deleted tf/cfg folder and tf/custom/mycustomstuff/cfg
-i have also deleted steam/userdata/#######/440/remote/cfg
-verified game files/reinstalled all deleted files back to default
-After above step, still didnt work.
Deleted entire tf folder and redownloaded game. still happening
So here is my script:
//Rocket Launcher
alias +scat "slot1;+attack;-attack;sensitivity 2.3;r_drawviewmodel 0;cl_crosshair_file crosshair5;cl_crosshair_scale 23;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;"
alias -scat "-attack"
alias scat "bind MOUSE1 +scat"
scat
//Shotgun
alias +pist "slot2;+attack;-attack;sensitivity 2.0;r_drawviewmodel 1;cl_crosshair_file crosshair4;cl_crosshair_scale 23;cl_crosshair_red 128;cl_crosshair_green 0;cl_crosshair_blue 200;"
alias -pist "-attack"
bind "MOUSE2" "+pist"
//Melee
alias +melee "slot3;+attack;+attack2;-attack2;r_drawviewmodel 0;cl_crosshair_file crosshair7;cl_crosshair_scale 23;cl_crosshair_red 255;cl_crosshair_green 0;cl_crosshair_blue 35;""
alias -melee "-attack;-attack2;"
bind "MOUSE3" "+melee"
I have done it many other ways also, example:
// scattergun
alias "+scatter" "slot1;+attack;"
alias "-scatter" "-attack"
// pistol
alias "+pistol" "slot2;+attack;"
alias "-pistol" "-attack"
// bat
alias "+bat" "slot3;+attack;"
alias "-bat" "-attack"
bind "mouse1" "+scatter"
bind "mouse2" "+pistol"
bind "mouse3" "+bat"
All of them basically do the same thing, they switch weapons with corresponding mouse buttons but do not attack. I have had no problems with binds in the past and re-downloaded tf2 again after a few months and now I can not get it back to how it was. Any help would be appreciated.
Fixed! (I enjoy talking to myself obviously) So I played around with the wait command with my soldier.cfg and scout.cfg, got it working properly FINALLY and then I deleted the wait command and now the shit is working as normal. I am pretty sure I broke TF2 and it was pissed off at me. The only thing I can think of is maybe when I enabled fast weapon switch that allowed for the quick pressing of mouse1/2/3 and then the +attack command immediately after. So if anyone else has issues with this, please try to enable fast weapon switch in advanced menu?
UPDATE:
Ok so after MUCH testing, If I make the aliases have a wait command like this:
[code]// scattergun
alias "+scatter" "slot1;wait;+attack;"
alias "-scatter" "-attack;"
// pistol
alias "+pistol" "slot2;wait 5;+attack;"
alias "-pistol" "-attack;"
// bat
alias "+bat" "slot3;wait 5;+attack;"
alias "-bat" "-attack"[/code]
Everything works, EXCEPT there is an obvious pause between shots (few seconds) If I take away the wait command it absolutely does not shoot. Has anyone had this happen to them?
I can not get any scripts for soldier and scout to work properly. I have it set up mouse1 >slot1 attack, mouse2 slot2 attack, mouse3 slot3 attack. It changes weapons just fine but the +attack -attack is broken. These are straight up copy and pastes from different sites and I have tried every combination possible. Things I have done:
-Steam cloud is off
-i have deleted tf/cfg folder and tf/custom/mycustomstuff/cfg
-i have also deleted steam/userdata/#######/440/remote/cfg
-verified game files/reinstalled all deleted files back to default
-After above step, still didnt work.
Deleted entire tf folder and redownloaded game. still happening
So here is my script:
[code]//Rocket Launcher
alias +scat "slot1;+attack;-attack;sensitivity 2.3;r_drawviewmodel 0;cl_crosshair_file crosshair5;cl_crosshair_scale 23;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;"
alias -scat "-attack"
alias scat "bind MOUSE1 +scat"
scat
//Shotgun
alias +pist "slot2;+attack;-attack;sensitivity 2.0;r_drawviewmodel 1;cl_crosshair_file crosshair4;cl_crosshair_scale 23;cl_crosshair_red 128;cl_crosshair_green 0;cl_crosshair_blue 200;"
alias -pist "-attack"
bind "MOUSE2" "+pist"
//Melee
alias +melee "slot3;+attack;+attack2;-attack2;r_drawviewmodel 0;cl_crosshair_file crosshair7;cl_crosshair_scale 23;cl_crosshair_red 255;cl_crosshair_green 0;cl_crosshair_blue 35;""
alias -melee "-attack;-attack2;"
bind "MOUSE3" "+melee"[/code]
I have done it many other ways also, example:
[code]// scattergun
alias "+scatter" "slot1;+attack;"
alias "-scatter" "-attack"
// pistol
alias "+pistol" "slot2;+attack;"
alias "-pistol" "-attack"
// bat
alias "+bat" "slot3;+attack;"
alias "-bat" "-attack"
bind "mouse1" "+scatter"
bind "mouse2" "+pistol"
bind "mouse3" "+bat"
[/code]
All of them basically do the same thing, they switch weapons with corresponding mouse buttons but do not attack. I have had no problems with binds in the past and re-downloaded tf2 again after a few months and now I can not get it back to how it was. Any help would be appreciated.
I found some mistakes in the first script I posted, here is what I have it changed to now. but still not working.
//Rocket Launcher
alias +scat "slot1;+attack;sensitivity 2.3;r_drawviewmodel 0;cl_crosshair_file crosshair5;cl_crosshair_scale 23;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;"
alias -scat "-attack"
bind MOUSE1 "+scat"
//Shotgun
alias +pist "slot2;+attack;sensitivity 2.0;r_drawviewmodel 1;cl_crosshair_file crosshair4;cl_crosshair_scale 23;cl_crosshair_red 128;cl_crosshair_green 0;cl_crosshair_blue 200;"
alias -pist "-attack"
bind "MOUSE2" "+pist"
//Melee
alias +melee "slot3;+attack;+attack2;r_drawviewmodel 0;cl_crosshair_file crosshair7;cl_crosshair_scale 23;cl_crosshair_red 255;cl_crosshair_green 0;cl_crosshair_blue 35;""
alias -melee "-attack;-attack2;"
bind "MOUSE3" "+melee"
I found some mistakes in the first script I posted, here is what I have it changed to now. but still not working.
[code]//Rocket Launcher
alias +scat "slot1;+attack;sensitivity 2.3;r_drawviewmodel 0;cl_crosshair_file crosshair5;cl_crosshair_scale 23;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;"
alias -scat "-attack"
bind MOUSE1 "+scat"
//Shotgun
alias +pist "slot2;+attack;sensitivity 2.0;r_drawviewmodel 1;cl_crosshair_file crosshair4;cl_crosshair_scale 23;cl_crosshair_red 128;cl_crosshair_green 0;cl_crosshair_blue 200;"
alias -pist "-attack"
bind "MOUSE2" "+pist"
//Melee
alias +melee "slot3;+attack;+attack2;r_drawviewmodel 0;cl_crosshair_file crosshair7;cl_crosshair_scale 23;cl_crosshair_red 255;cl_crosshair_green 0;cl_crosshair_blue 35;""
alias -melee "-attack;-attack2;"
bind "MOUSE3" "+melee"[/code]
This is straight from my solly cfg and it works fine.
// Rocket Launcher
alias "+rockets" "slot1;+attack"
alias "-rockets" "-attack;+reload"
// Shotgun
alias "+shotty" "slot2;+attack"
alias "-shotty" "-attack;+reload;"
// Equalizer
alias "+pick" "slot3;+attack;r_drawviewmodel 1"
alias "-pick" "-attack"
bind "mouse1" "+rockets"
bind "mouse2" "+shotty"
bind "mouse3" "+pick"
This is straight from my solly cfg and it works fine.
// Rocket Launcher
alias "+rockets" "slot1;+attack"
alias "-rockets" "-attack;+reload"
// Shotgun
alias "+shotty" "slot2;+attack"
alias "-shotty" "-attack;+reload;"
// Equalizer
alias "+pick" "slot3;+attack;r_drawviewmodel 1"
alias "-pick" "-attack"
bind "mouse1" "+rockets"
bind "mouse2" "+shotty"
bind "mouse3" "+pick"
Thanks for posting but no dice. Thats basically W0lvey's scout script. Thats what I have used for years and now suddenly I can not get it to work. It has got to be some kind of cache thing, even though I have taken many steps to get rid of old settings. I do not know what else to do.
Thanks for posting but no dice. Thats basically W0lvey's scout script. Thats what I have used for years and now suddenly I can not get it to work. It has got to be some kind of cache thing, even though I have taken many steps to get rid of old settings. I do not know what else to do.
Has anyone ever had this problem before?
From my limited understanding of scripting, the alias simply names actions and then you bind a key to that alias. They perform commands left to right and top to bottom. Does it still read from the config file? In the above script posted by Kermit, Mouse1 switches to primary and if I click again it simply makes the "click" sound when scrolling through weapons. For some reason it is not registering the +attack and only the slot#.
I have now made a clear.cfg and put unbindall within that and in my soldier.cfg I have exec clear and next line I have exec autoexec. In autoexec.cfg I have null script, and crouch jump script. They work just fine. I also made an alias.cfg and placed in all of the above aliases from kermit and in soldier.cfg I have underneath exec autoexec, exec alias and below that the binds for the aliases. This shit is driving me absolutley nuts as I am not an idiot and this simple thing is really getting me. As I said, I believe it is a cache thing. Is it possible a pc in my house that has my account on it is still saving the data and stopping me from getting this how I want it?
Has anyone ever had this problem before?
From my limited understanding of scripting, the alias simply names actions and then you bind a key to that alias. They perform commands left to right and top to bottom. Does it still read from the config file? In the above script posted by Kermit, Mouse1 switches to primary and if I click again it simply makes the "click" sound when scrolling through weapons. For some reason it is not registering the +attack and only the slot#.
I have now made a clear.cfg and put unbindall within that and in my soldier.cfg I have exec clear and next line I have exec autoexec. In autoexec.cfg I have null script, and crouch jump script. They work just fine. I also made an alias.cfg and placed in all of the above aliases from kermit and in soldier.cfg I have underneath exec autoexec, exec alias and below that the binds for the aliases. This shit is driving me absolutley nuts as I am not an idiot and this simple thing is really getting me. As I said, I believe it is a cache thing. Is it possible a pc in my house that has my account on it is still saving the data and stopping me from getting this how I want it?
I have no idea but whatever it is you're probably going to look back on it and feel really stupid. Remember that when scripting and coding TF2 will do exactly the commands you tell it to. TF2 runs config.cfg and then autoexec.cfg at startup to set your default binds and then should run the class configs when you switch to a class.
DraGuLaI have now made a clear.cfg and put unbindall within that and in my soldier.cfg I have exec clear and next line I have exec autoexec.
That seems a really silly way to troubleshoot but it does mean the problem could be in your autoexec with a particular setting. Don't run the autoexec and try your soldier config again after unbind all.
If you really want help troubleshooting you should really post all your configs somewhere after removing any personal settings like passwords for servers.
Oh i see you fixed it nm congrats.
[s]I have no idea but whatever it is you're probably going to look back on it and feel really stupid. Remember that when scripting and coding TF2 will do exactly the commands you tell it to. TF2 runs config.cfg and then autoexec.cfg at startup to set your default binds and then should run the class configs when you switch to a class.
[quote=DraGuLa]I have now made a clear.cfg and put unbindall within that and in my soldier.cfg I have exec clear and next line I have exec autoexec.[/quote]
That seems a really silly way to troubleshoot but it does mean the problem could be in your autoexec with a particular setting. Don't run the autoexec and try your soldier config again after unbind all.
If you really want help troubleshooting you should really post all your configs somewhere after removing any personal settings like passwords for servers.[/s]
Oh i see you fixed it nm congrats.
Little late to the party shun. You can sit there and say all you like about "scripting does exactly what you tell it to do" but I am telling you I used the EXACT script I started with and it is now working after 4 hours of hell. It was either my class.cfg files were not updating the config or adding the wait times and reloading it changed something I was not aware of or enabling fast weapon switch. Here is my current soldier config:
// scattergun
alias "+scatter" "slot1;+attack;"
alias "-scatter" "-attack;"
bind "MOUSE1" "+scatter"
// pistol
alias "+pistol" "slot2;+attack;"
alias "-pistol" "-attack;"
bind "MOUSE2" "+pistol"
// bat
alias "+bat" "slot3;+attack;"
alias "-bat" "-attack;"
bind "MOUSE3" "+bat"
//JEERS!
alias "jeersm8" "voicemenu 2 3"
//NEEDADISPENSAHEEYA
alias "dispenser" "voicemenu 1 4"
This EXACT script was not working no matter how many times I tried or how many ways I organized it (space here, quote there) I can not explain it.
Little late to the party shun. You can sit there and say all you like about "scripting does exactly what you tell it to do" but I am telling you I used the EXACT script I started with and it is now working after 4 hours of hell. It was either my class.cfg files were not updating the config or adding the wait times and reloading it changed something I was not aware of or enabling fast weapon switch. Here is my current soldier config:
[code]// scattergun
alias "+scatter" "slot1;+attack;"
alias "-scatter" "-attack;"
bind "MOUSE1" "+scatter"
// pistol
alias "+pistol" "slot2;+attack;"
alias "-pistol" "-attack;"
bind "MOUSE2" "+pistol"
// bat
alias "+bat" "slot3;+attack;"
alias "-bat" "-attack;"
bind "MOUSE3" "+bat"
//JEERS!
alias "jeersm8" "voicemenu 2 3"
//NEEDADISPENSAHEEYA
alias "dispenser" "voicemenu 1 4"[/code]
This EXACT script was not working no matter how many times I tried or how many ways I organized it (space here, quote there) I can not explain it.
I bet you it was enabling fast weapon switch. Think about how non-fast weapon switch works, it shows the item you choose and then you have to press a button again to select it. So your aliases then would just select the item to use but not attack. slot1;+attack;+attack might have worked in that case.
I bet you it was enabling fast weapon switch. Think about how non-fast weapon switch works, it shows the item you choose and then you have to press a button again to select it. So your aliases then would just select the item to use but not attack. slot1;+attack;+attack might have worked in that case.