Hello I wanna create a class config for soldier (I don't have any current class configs) which binds mouse2 to jump and shoot. I've tried to make one for a little while now but I seem to be mentally challenged and can't figure it out. Also would like to make a script that changes interp from scout to soldier. Thanks.
EDIT: FIXED.
Hello I wanna create a class config for soldier (I don't have any current class configs) which binds mouse2 to jump and shoot. I've tried to make one for a little while now but I seem to be mentally challenged and can't figure it out. Also would like to make a script that changes interp from scout to soldier. Thanks.
EDIT: FIXED.
make a notepad file called soldier.cfg and put
"bind mouse2 +jump
cl_interp ###"
do the saME foR oTHer classes
make a notepad file called soldier.cfg and put
"bind mouse2 +jump
cl_interp ###"
do the saME foR oTHer classes
Woogiebugmake a notepad file called soldier.cfg and put
"bind mouse2 +jump
cl_interp ###"
do the saME foR oTHer classes
Wouldn't that just bind mouse2 to jump? And also I read something about having a reset file, do I need one and how do I set one up?
[quote=Woogiebug]make a notepad file called soldier.cfg and put
"bind mouse2 +jump
cl_interp ###"
do the saME foR oTHer classes[/quote]
Wouldn't that just bind mouse2 to jump? And also I read something about having a reset file, do I need one and how do I set one up?
make 9 cfg files
scout, soldier, pyro, demoman, heavyweapons, engineer, medic, sniper, spy should be their names
assuming you want a rocketjump script put this in soldier.cfg
alias +rjump "+jump; +duck; +attack"
alias -rjump "-jump; -duck; -attack"
bind mouse2 +rjump
then put this in all the other class cfgs
bind mouse2 +attack2
as for the interp changing then put different interps in the scout ans soldier cfgs and the default one for other class cfgs
make 9 cfg files
scout, soldier, pyro, demoman, heavyweapons, engineer, medic, sniper, spy should be their names
assuming you want a rocketjump script put this in soldier.cfg
alias +rjump "+jump; +duck; +attack"
alias -rjump "-jump; -duck; -attack"
bind mouse2 +rjump
then put this in all the other class cfgs
bind mouse2 +attack2
as for the interp changing then put different interps in the scout ans soldier cfgs and the default one for other class cfgs
spent 20 mins writing up a cfg for this guy just to reload the page to see ppl had already helped him :(
spent 20 mins writing up a cfg for this guy just to reload the page to see ppl had already helped him :(
Please do not use scripts to assist your rocket jumping.
Please do not use scripts to assist your rocket jumping.
moleWoogiebugmake a notepad file called soldier.cfg and put
"bind mouse2 +jump
cl_interp ###"
do the saME foR oTHer classes
And also I read something about having a reset file, do I need one and how do I set one up?
A reset file is a good idea if you have a function on one or two classes that you don't necessarily want on all your classes. For example, you may want to have your right click be bound to jump+shoot on soldier but just normal +attack2 on every other class. To create a reset file you will make a new config file and have it be executed by all your regular class configs.
Create a new file called reset.cfg. Put all your binds that you mess around with in there. For example it may contain
bind mouse1 +attack
bind mouse2 +attack2
bind space +jump
You will then add the line
exec reset
to all your other class config files (eg scout.cfg, pyro.cfg, etc). Basically the exec keyword runs the entire contents of the config after it.
moleWouldn't that just bind mouse2 to jump?
Yes it would. If you want to bind a key to do multiple things you simply separate what you want to do with semicolons. To jump and shoot you would do
bind mouse2 "+jump;+attack"
edit: welp I typed this out 20 minutes ago and forgot to hit post so ig u dont really need this anymore
[quote=mole][quote=Woogiebug]make a notepad file called soldier.cfg and put
"bind mouse2 +jump
cl_interp ###"
do the saME foR oTHer classes[/quote]
And also I read something about having a reset file, do I need one and how do I set one up?[/quote]
A reset file is a good idea if you have a function on one or two classes that you don't necessarily want on all your classes. For example, you may want to have your right click be bound to jump+shoot on soldier but just normal +attack2 on every other class. To create a reset file you will make a new config file and have it be executed by all your regular class configs.
Create a new file called reset.cfg. Put all your binds that you mess around with in there. For example it may contain
[code]bind mouse1 +attack
bind mouse2 +attack2
bind space +jump[/code]
You will then add the line
[code]exec reset[/code]
to all your other class config files (eg scout.cfg, pyro.cfg, etc). Basically the exec keyword runs the entire contents of the config after it.
[quote=mole]
Wouldn't that just bind mouse2 to jump? [/quote]
Yes it would. If you want to bind a key to do multiple things you simply separate what you want to do with semicolons. To jump and shoot you would do
bind mouse2 "+jump;+attack"
edit: welp I typed this out 20 minutes ago and forgot to hit post so ig u dont really need this anymore
https://www.reddit.com/r/tf2scripthelp/wiki/introduction
Picture step by step guide on how to set up your files so you don't mess it up (Lots of people still do).
https://www.reddit.com/r/tf2scripthelp/wiki/introduction
Picture step by step guide on how to set up your files so you don't mess it up (Lots of people still do).
2.5k hours player needs help rocket jumping
ok
2.5k hours player needs help rocket jumping
ok
just as a quick tip, also: copy all of the bind commands from config.cfg, in your cfg folder, and make a cfg out of them to exec in every class config. if you ever intend to script more heavily (not for rocket-jumping tho, that won't end well) this'll be much easier long-term than trying to remember what key you put on what class, because it'll just always go back to your default keys if you don't have any set up on that class
just as a quick tip, also: copy all of the bind commands from config.cfg, in your cfg folder, and make a cfg out of them to exec in every class config. if you ever intend to script more heavily (not for rocket-jumping tho, that won't end well) this'll be much easier long-term than trying to remember what key you put on what class, because it'll just always go back to your default keys if you don't have any set up on that class
m0nkeiPlease do not use scripts to assist your rocket jumping.
I was gonna bind mouse2 to both jump and shoot to make ctaps easier. I have probably spent a lot of time on jump maps so I certainly don't need help with basic rocket jumping. Ctap is one thing I haven't practiced, because very few jumps on jump maps are dependant on them, and they're not an absolute necessity in real games.
Hatim2.5k hours player needs help rocket jumping
ok
Maybe you can ctap just fine without a simple script, maybe I could learn to aswell, but I've been told by other players that a bind like the one I mentioned can help a lot. I know of prem players who use ctap binds. Don't act superior when you have no clue what I'm talking about.
Big thanks to deetr, camper, trash and kairu who actually helped with my problem!!
[quote=m0nkei]Please do not use scripts to assist your rocket jumping.[/quote]
I was gonna bind mouse2 to both jump and shoot to make ctaps easier. I have probably spent a lot of time on jump maps so I certainly don't need help with basic rocket jumping. Ctap is one thing I haven't practiced, because very few jumps on jump maps are dependant on them, and they're not an absolute necessity in real games.
[quote=Hatim]2.5k hours player needs help rocket jumping
ok[/quote]
Maybe you can ctap just fine without a simple script, maybe I could learn to aswell, but I've been told by other players that a bind like the one I mentioned can help a lot. I know of prem players who use ctap binds. Don't act superior when you have no clue what I'm talking about.
Big thanks to deetr, camper, trash and kairu who actually helped with my problem!!
I must have messed something up, when I press mouse2 it doesn't stop shooting.
I use
bind mouse2 "+jump;+attack"
which is the bind deetr posted.
EDIT: Fixed it. Found a script that I altered, probably a poor way of doing it but it works
alias +ctap "+jump;+attack"
alias -ctap "-jump;-attack"
bind mouse2 "+ctap"
I must have messed something up, when I press mouse2 it doesn't stop shooting.
I use
bind mouse2 "+jump;+attack"
which is the bind deetr posted.
EDIT: Fixed it. Found a script that I altered, probably a poor way of doing it but it works
alias +ctap "+jump;+attack"
alias -ctap "-jump;-attack"
bind mouse2 "+ctap"
moleI must have messed something up, when I press mouse2 it doesn't stop shooting.
I use
bind mouse2 "+jump;+attack"
which is the bind deetr posted.
Have you tried pressing mouse1 and your jump key at the same time instead?
[quote=mole]I must have messed something up, when I press mouse2 it doesn't stop shooting.
I use
bind mouse2 "+jump;+attack"
which is the bind deetr posted.[/quote]
Have you tried pressing mouse1 and your jump key at the same time instead?
TwistedmoleI must have messed something up, when I press mouse2 it doesn't stop shooting.
I use
bind mouse2 "+jump;+attack"
which is the bind deetr posted.
Have you tried pressing mouse1 and your jump key at the same time instead?
yes.
Now can you help me or did just come in here to say that my bind is dumb?
EDIT: Fixed it. Found a script that I altered, probably a poor way of doing it but it works
alias +ctap "+jump;+attack"
alias -ctap "-jump;-attack"
bind mouse2 "+ctap"
[quote=Twisted][quote=mole]I must have messed something up, when I press mouse2 it doesn't stop shooting.
I use
bind mouse2 "+jump;+attack"
which is the bind deetr posted.[/quote]
Have you tried pressing mouse1 and your jump key at the same time instead?[/quote]
yes.
Now can you help me or did just come in here to say that my bind is dumb?
EDIT: Fixed it. Found a script that I altered, probably a poor way of doing it but it works
alias +ctap "+jump;+attack"
alias -ctap "-jump;-attack"
bind mouse2 "+ctap"
@mole You didn't mention anything about ctapping in the initial post that's why I was skeptical about you trolling.
if you were actually looking for help then apologies.
@mole You didn't mention anything about ctapping in the initial post that's why I was skeptical about you trolling.
if you were actually looking for help then apologies.
When you are going to use +/- commands then you have to assign them to +/- aliases because otherwise they will just loop and break other scripts etc.
When you are going to use +/- commands then you have to assign them to +/- aliases because otherwise they will just loop and break other scripts etc.