Upvote Upvoted 0 Downvote Downvoted
Help with bhop toggle bind
posted in Q/A Help
1
#1
Stream Highlights
0 Frags +

I'm trying to make a bind where I can toggle between mousewheeldown +jump and switching weapons. This is what I have so far:

https://i.imgur.com/6ysSW8f.png

But whenever I try to use it in-game it says "Unknown command: bhopon"

I'm trying to make a bind where I can toggle between mousewheeldown +jump and switching weapons. This is what I have so far: [img]https://i.imgur.com/6ysSW8f.png[/img] But whenever I try to use it in-game it says "Unknown command: bhopon"
2
#2
refresh.tf
2 Frags +

alias "bhopon" "bind mwheeldown +jump; bind mouse3 bhopoff"

-> " <- is missing at the end

same for bhopoff, u gotta close it. bhop off even ends on a dot???

alias "bhopon" "bind mwheeldown +jump; bind mouse3 bhopoff"

-> " <- is missing at the end

same for bhopoff, u gotta close it. bhop off even ends on a dot???
3
#3
2 Frags +

alias "bhopon" "bind "mwheeldown" "+jump"; bind "mouse3" "bhopoff""
alias "bhopoff" "bind "mwheeldown" "lastinv"; bind "mouse3" "bhopon""
bind "mouse3" "bhopon"
bhopon

alias "bhopon" "bind "mwheeldown" "+jump"; bind "mouse3" "bhopoff""
alias "bhopoff" "bind "mwheeldown" "lastinv"; bind "mouse3" "bhopon""
bind "mouse3" "bhopon"
bhopon
4
#4
Stream Highlights
0 Frags +
mikematalias "bhopon" "bind "mwheeldown" "+jump"; bind "mouse3" "bhopoff""
alias "bhopoff" "bind "mwheeldown" "lastinv"; bind "mouse3" "bhopon""
bind "mouse3" "bhopon"
bhopon

This script is still giving me "unknown command: bhopon"

[quote=mikemat]alias "bhopon" "bind "mwheeldown" "+jump"; bind "mouse3" "bhopoff""
alias "bhopoff" "bind "mwheeldown" "lastinv"; bind "mouse3" "bhopon""
bind "mouse3" "bhopon"
bhopon[/quote] This script is still giving me "unknown command: bhopon"
5
#5
1 Frags +

remove the speech marks before bind i think is the problem

no never mind

remove the speech marks before bind i think is the problem

no never mind
6
#6
2 Frags +

Try:

alias bhopon "bind mwheeldown +jump; bind mouse3 bhopoff"
alias bhopoff "bind mwheeldown invnext; bind mouse3 bhopon"
bhopon
Try:
[code]alias bhopon "bind mwheeldown +jump; bind mouse3 bhopoff"
alias bhopoff "bind mwheeldown invnext; bind mouse3 bhopon"
bhopon[/code]
7
#7
Stream Highlights
0 Frags +

Okay so if I enter the commands individually into the console while I'm ingame it works but when I place it into my autoconfig or create another config file and run it while ingame it doesn't work. Is my version of tf2 just cursed?

Okay so if I enter the commands individually into the console while I'm ingame it works but when I place it into my autoconfig or create another config file and run it while ingame it doesn't work. Is my version of tf2 just cursed?
8
#8
0 Frags +

I've had

alias "bhop" "bind "mwheeldown" "+jump";bind 5 "normalhop""
alias "normalhop" "bind mwheeldown melee;bind 5 "bhop""

in my autoexec forever, with

bind "5" "bhop"

in the relevant class config and it works just fine.

I've had

[code]alias "bhop" "bind "mwheeldown" "+jump";bind 5 "normalhop""
alias "normalhop" "bind mwheeldown melee;bind 5 "bhop""[/code]

in my autoexec forever, with

[code]bind "5" "bhop"[/code]

in the relevant class config and it works just fine.
9
#9
Stream Highlights
1 Frags +

sorry for necro but im gonna post the solution in case anybody else has this issue in the future. the way i got it to work was to copy and paste each line of the script individually when i put it into my autoexec instead of copy and pasting a whole block of text into notepad.

sorry for necro but im gonna post the solution in case anybody else has this issue in the future. the way i got it to work was to copy and paste each line of the script individually when i put it into my autoexec instead of copy and pasting a whole block of text into notepad.
10
#10
3 Frags +

solution found but I'll just give this tip to people who might still read this.
When there's a lot of quotation marks, split it into more aliases to make it easier on the eyes. Makes it easier to find bugs and helps with editing things later on

alias "bhop" "bind "mwheeldown" "+jump";bind 5 "normalhop""
alias "normalhop" "bind mwheeldown melee;bind 5 "bhop""

can be

alias bindjump "bind mwheeldown +jump"
alias bindmelee "bind mwheeldown slot3"

alias bhop "bindjump; bind 5 normalhop"
alias normalhop "bindmelee; bind 5 bhop"
solution found but I'll just give this tip to people who might still read this.
When there's a lot of quotation marks, split it into more aliases to make it easier on the eyes. Makes it easier to find bugs and helps with editing things later on

[quote]alias "bhop" "bind "mwheeldown" "+jump";bind 5 "normalhop""
alias "normalhop" "bind mwheeldown melee;bind 5 "bhop""[/quote]
can be
[quote]
alias bindjump "bind mwheeldown +jump"
alias bindmelee "bind mwheeldown slot3"

alias bhop "bindjump; bind 5 normalhop"
alias normalhop "bindmelee; bind 5 bhop"[/quote]
Please sign in through STEAM to post a comment.