Upvote Upvoted 2 Downvote Downvoted
Random trashcan script and Null movement script
posted in Q/A Help
1
#1
0 Frags +

hey, I recently installed a 'trashcan' script just for fun, and it randomly shoots out a phrase I input into the script when pressing a key. it cycles through the phrases whenever I press a movement key, and then shoots out a random one when i press the key i mapped it to. anyway, i also use a null-movement cancel script, and I found it doesn't work when using the trashcan script. anyone know how to get both of them to work at the same time?

for reference, here is the site i generated the script on http://ralphorama.github.io/tf2-chatterbox/

also calm down im not spamming lenny faces, or racist remarks in my script its just there for jokes

thanks

forgot to add: im aware the site says that the two won't work together, im just wondering if anyone knows a work around

hey, I recently installed a 'trashcan' script just for fun, and it randomly shoots out a phrase I input into the script when pressing a key. it cycles through the phrases whenever I press a movement key, and then shoots out a random one when i press the key i mapped it to. anyway, i also use a null-movement cancel script, and I found it doesn't work when using the trashcan script. anyone know how to get both of them to work at the same time?

for reference, here is the site i generated the script on http://ralphorama.github.io/tf2-chatterbox/

also calm down im not spamming lenny faces, or racist remarks in my script its just there for jokes

thanks

forgot to add: im aware the site says that the two won't work together, im just wondering if anyone knows a work around
2
#2
1 Frags +

idk what you have tried, but i feel like this would work

alias "bind0" "say test; alias bind bind1"
alias "bind1" "say ; alias bind bind0"

alias "bind" "bind0" 

bind w +mfwd;+bind
bind s +mback;+bind
bind a +mleft;+bind
bind d +mright;+bind

alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""
idk what you have tried, but i feel like this would work
[code]
alias "bind0" "say test; alias bind bind1"
alias "bind1" "say ; alias bind bind0"

alias "bind" "bind0"


bind w +mfwd;+bind
bind s +mback;+bind
bind a +mleft;+bind
bind d +mright;+bind

alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""
[/code]
3
#3
1 Frags +

What is likely happening is the binds for your movement keys are being overwritten by the trashcan script. The solution would normally be to find what your movement keys are bound to by the null movement script then replace the +forward, +back, +left, and +right in the binds in the trashcan script with their corresponding null movement script alias.
For some reason this didn't work for me when I had the same issue (could be some script issue or could just be my own stupidity) so I just ended up binding my forward/back and weapon switching keys to the trashcan script binds and used the null movement script binds for left and right. The easiest way to do this is to just find the binds for left and right in the null movement script and copy paste them to the very end of your autoexec. If you actually want the null-cancelling movement for forward and back this obviously doesn't work but I never really pressed W and S at the same time ever.

What is likely happening is the binds for your movement keys are being overwritten by the trashcan script. The solution would normally be to find what your movement keys are bound to by the null movement script then replace the +forward, +back, +left, and +right in the binds in the trashcan script with their corresponding null movement script alias.
For some reason this didn't work for me when I had the same issue (could be some script issue or could just be my own stupidity) so I just ended up binding my forward/back and weapon switching keys to the trashcan script binds and used the null movement script binds for left and right. The easiest way to do this is to just find the binds for left and right in the null movement script and copy paste them to the very end of your autoexec. If you actually want the null-cancelling movement for forward and back this obviously doesn't work but I never really pressed W and S at the same time ever.
4
#4
1 Frags +

It is already bound like that and it doesnt seem to work, here's the exact example
alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""
bind w "+forward; obt_cycle"
bind s "+back; obt_cycle"
bind a "+moveleft; obt_cycle"
bind d "+moveright; obt_cycle"

Rybkaidk what you have tried, but i feel like this would work
alias "bind0" "say test; alias bind bind1"
alias "bind1" "say ; alias bind bind0"

alias "bind" "bind0" 

bind w +mfwd;+bind
bind s +mback;+bind
bind a +mleft;+bind
bind d +mright;+bind

alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""
It is already bound like that and it doesnt seem to work, here's the exact example
alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""
bind w "+forward; obt_cycle"
bind s "+back; obt_cycle"
bind a "+moveleft; obt_cycle"
bind d "+moveright; obt_cycle"



[quote=Rybka]idk what you have tried, but i feel like this would work
[code]
alias "bind0" "say test; alias bind bind1"
alias "bind1" "say ; alias bind bind0"

alias "bind" "bind0"


bind w +mfwd;+bind
bind s +mback;+bind
bind a +mleft;+bind
bind d +mright;+bind

alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""
[/code][/quote]
5
#5
2 Frags +

Your WASD binds need to call the +mfwd aliases, not the default +forward.

Your WASD binds need to call the +mfwd aliases, not the default +forward.
Please sign in through STEAM to post a comment.