Upvote Upvoted 3 Downvote Downvoted
scripting help
posted in Q/A Help
1
#1
0 Frags +

im trying to figure out how to make a + command release instantly. i recall knowing how to do so long ago but it may have been in goldsrc engine

for example if we were talking about the command +jump, I would want to be able to press a key and have it apply +jump; -jump regardless of me holding down the key or not. I recall being able to do it with some alias voodoo but cant figure it out

god bless

im trying to figure out how to make a + command release instantly. i recall knowing how to do so long ago but it may have been in goldsrc engine

for example if we were talking about the command +jump, I would want to be able to press a key and have it apply +jump; -jump regardless of me holding down the key or not. I recall being able to do it with some alias voodoo but cant figure it out

god bless
2
#2
0 Frags +

I'm just guessing here. No idea if this will actually work.

bind "spacebar: "blah; unblah"

alias "blah" "+jump"
alias "unblah" "-jump"
I'm just guessing here. No idea if this will actually work.

[code]
bind "spacebar: "blah; unblah"

alias "blah" "+jump"
alias "unblah" "-jump"
[/code]
3
#3
0 Frags +
Not_MatlockI'm just guessing here. No idea if this will actually work.
bind "spacebar: "blah; unblah"

alias "blah" "+jump"
alias "unblah" "-jump"

Don't think this works as intended

Edit: Tested this out, it just doesn't jump. It calls both the aliases at the exact same time and therefore doesn't jump. If you put an echo or say or something in one (or both) of the aliases that part works fine.

[quote=Not_Matlock]I'm just guessing here. No idea if this will actually work.

[code]
bind "spacebar: "blah; unblah"

alias "blah" "+jump"
alias "unblah" "-jump"
[/code][/quote]

Don't think this works as intended

Edit: Tested this out, it just doesn't jump. It calls both the aliases at the exact same time and therefore doesn't jump. If you put an echo or say or something in one (or both) of the aliases that part works fine.
4
#4
0 Frags +

yeah im gonna guess this kind of stuff died when they killed waits or something oh well

yeah im gonna guess this kind of stuff died when they killed waits or something oh well
5
#5
0 Frags +

Close! Try this:

bind "space" "+blah"

alias "+blah" "+jump;"
alias "-blah" "-jump;"

watch your quotes too, sometimes they get fucky

Close! Try this:

[quote]
bind "space" "+blah"

alias "+blah" "+jump;"
alias "-blah" "-jump;"
[/quote]

watch your quotes too, sometimes they get fucky
6
#6
0 Frags +

I believe this is only possible for certain commands and needs 'wait' to make it work for all. /r/tf2scripts has some smart cookies who could tell you definitively.

I believe this is only possible for certain commands and needs 'wait' to make it work for all. /r/tf2scripts has some smart cookies who could tell you definitively.
7
#7
0 Frags +

not possible without the wait command.
i know there are ways using some third party program, but i don't know specifics/names. i'm talking about software that allows you to mess around with what your keys do (like sending the depress command after x ms of pressing it).

not possible without the wait command.
i know there are ways using some third party program, but i don't know specifics/names. i'm talking about software that allows you to mess around with what your keys do (like sending the depress command after x ms of pressing it).
8
#8
0 Frags +
couch_sitterClose! Try this:
bind "space" "+blah"

alias "+blah" "+jump;"
alias "-blah" "-jump;"

watch your quotes too, sometimes they get fucky

This doesn't work

[quote=couch_sitter]Close! Try this:

[quote]
bind "space" "+blah"

alias "+blah" "+jump;"
alias "-blah" "-jump;"
[/quote]

watch your quotes too, sometimes they get fucky[/quote]

This doesn't work
Please sign in through STEAM to post a comment.