Upvote Upvoted 0 Downvote Downvoted
Class specific script
posted in Customization
1
#1
-2 Frags +

Hey again,
So I've picked up this script, but it seems everytime I change class from where it is, I can't jump anymore, the space bar in unbinded. How could I prevent that?

alias +crouchjump "+jump; +duck"
alias -crouchjump "-duck; -jump"
bind "space" "+crouchjump"
echo "Crouch Jump Loaded Properly."

Thanks

Hey again,
So I've picked up this script, but it seems everytime I change class from where it is, I can't jump anymore, the space bar in unbinded. How could I prevent that?
[code]
alias +crouchjump "+jump; +duck"
alias -crouchjump "-duck; -jump"
bind "space" "+crouchjump"
echo "Crouch Jump Loaded Properly."
[/code]
Thanks
2
#2
3 Frags +

if you want this for specific classes put it in whatever cfg's you want. For example you'd put it in your scout.cfg config, maybe engie.cfg whatever, but for every other class you don't want the crouch jump script you have to put bind "space" "+jump" in the class specific configs. If you'd like it for every class just put it in your autoexec.

if you want this for specific classes put it in whatever cfg's you want. For example you'd put it in your scout.cfg config, maybe engie.cfg whatever, but for every other class you don't want the crouch jump script you have to put bind "space" "+jump" in the class specific configs. If you'd like it for every class just put it in your autoexec.
3
#3
-2 Frags +

Thanks for the answer :)
The problem is that I want this to execute only for sniper, but when I play any other classes, I either do the crouch jump (which I don't want to) or simply can't jump.
I've added "space" "+jump" in every class cfg except for sniper, and yet, it still doesn't work.
Any ideas?

Thanks for the answer :)
The problem is that I want this to execute only for sniper, but when I play any other classes, I either do the crouch jump (which I don't want to) or simply can't jump.
I've added "space" "+jump" in every class cfg except for sniper, and yet, it still doesn't work.
Any ideas?
4
#4
0 Frags +

you put the other configs wrong. File names or contents are broken

you put the other configs wrong. File names or contents are broken
5
#5
0 Frags +

Sorry I didn't catch that.

Sorry I didn't catch that.
6
#6
10 Frags +

Dont use crouch jump

Dont use crouch jump
7
#7
0 Frags +

The config names should all be demoman, engineer, heavyweapons, medic, pyro, scout, sniper, soldier, spy. Maybe try putting unbind space before each config you dont want the crouch jump in and then follow that with the script you'd like.

The config names should all be demoman, engineer, heavyweapons, medic, pyro, scout, sniper, soldier, spy. Maybe try putting unbind space before each config you dont want the crouch jump in and then follow that with the script you'd like.
8
#8
0 Frags +

I've tried that... Still can't get anything working :(

Actually, it works for every class except spy, probably because I have scripts in there already

I've tried that... Still can't get anything working :(

Actually, it works for every class except spy, probably because I have scripts in there already
9
#9
0 Frags +
NoCourtesy...probably because I have scripts in there already

This. Open spy.cfg and Ctrl+F for "space" there you'll find the conflict.

[quote=NoCourtesy]...probably because I have scripts in there already[/quote]
This. Open spy.cfg and Ctrl+F for "space" there you'll find the conflict.
10
#10
0 Frags +

Aside from ctapping, is there another downside to using a script like this? #6

Aside from ctapping, is there another downside to using a script like this? #6
11
#11
0 Frags +

I'm surprised no ones said it yet. Even if you put a script in one class .cfg, it will "leak" to the rest if you don't write up counterbinds for each of the other class .cfg's.

So for that crouch jump script you would have to rebind jump and duck keys just to ensure nothing leaks:

bind "space" "+jump"
bind "CTRL" "+duck"

Put that in every other class's .cfg's and you should be set.

I'm surprised no ones said it yet. Even if you put a script in one class .cfg, it will "leak" to the rest if you don't write up counterbinds for each of the other class .cfg's.

So for that crouch jump script you would have to rebind jump and duck keys just to ensure nothing leaks:

[code]bind "space" "+jump"
bind "CTRL" "+duck"[/code]

Put that in every other class's .cfg's and you should be set.
12
#12
0 Frags +
SevinI'm surprised no ones said it yet. Even if you put a script in one class .cfg, it will "leak" to the rest if you don't write up counterbinds for each of the other class .cfg's.

So for that crouch jump script you would have to rebind jump and duck keys just to ensure nothing leaks:
bind "space" "+jump"
bind "CTRL" "+duck"

Put that in every other class's .cfg's and you should be set.

See post #2...

[quote=Sevin]I'm surprised no ones said it yet. Even if you put a script in one class .cfg, it will "leak" to the rest if you don't write up counterbinds for each of the other class .cfg's.

So for that crouch jump script you would have to rebind jump and duck keys just to ensure nothing leaks:

[code]bind "space" "+jump"
bind "CTRL" "+duck"[/code]

Put that in every other class's .cfg's and you should be set.[/quote]
See post #2...
13
#13
0 Frags +
KAMOSevinI'm surprised no ones said it yet. Even if you put a script in one class .cfg, it will "leak" to the rest if you don't write up counterbinds for each of the other class .cfg's.

So for that crouch jump script you would have to rebind jump and duck keys just to ensure nothing leaks:
bind "space" "+jump"
bind "CTRL" "+duck"

Put that in every other class's .cfg's and you should be set.
See post #2...

I swear I'm literate.

[quote=KAMO][quote=Sevin]I'm surprised no ones said it yet. Even if you put a script in one class .cfg, it will "leak" to the rest if you don't write up counterbinds for each of the other class .cfg's.

So for that crouch jump script you would have to rebind jump and duck keys just to ensure nothing leaks:

[code]bind "space" "+jump"
bind "CTRL" "+duck"[/code]

Put that in every other class's .cfg's and you should be set.[/quote]
See post #2...[/quote]

I swear I'm literate.
14
#14
0 Frags +

protip: make a new cfg file that removes all of your class-specific binds.

for example, if you use a crouch+jump script for scout, your scout cfg should look like this.

exec reset.cfg
alias +crouchjump "+jump; +duck"
alias -crouchjump "-duck; -jump"
bind "space" "+crouchjump"

reset.cfg should look like this

bind space +jump

if you add any more class-specific binds, you won't have to edit anything else except reset.cfg.

protip: make a new cfg file that removes all of your class-specific binds.

for example, if you use a crouch+jump script for scout, your scout cfg should look like this.

[code]exec reset.cfg
alias +crouchjump "+jump; +duck"
alias -crouchjump "-duck; -jump"
bind "space" "+crouchjump"[/code]

reset.cfg should look like this
[code]bind space +jump
[/code]

if you add any more class-specific binds, you won't have to edit anything else except reset.cfg.
15
#15
-1 Frags +

At first, I read +/-duck as "dick".

At first, I read +/-duck as "dick".
Please sign in through STEAM to post a comment.