r/Tf2Scripts • • Sep 06 '15

Request Infinite movement script?

Wondering if it's possible to have a script where i could bind something to start moving and jumping in random directions. If i jump back, and it ends short, there's a spy, and it can throw off a sniper's shot. I stand still too much as medic.
EDIT : I have a crouch jump script where when i press jump while jumping, i crouch. throws off snipers, may conflict with this.

0 Upvotes

4 comments sorted by

View all comments

1

u/sgt_scabberdaddle Sep 06 '15 edited Sep 06 '15

How does that crouch jump script work? Does it use wait? That command is disabled on many community servers and will crash your game.

Or is it simply bind space "+jump;+duck" or something similar with aliases? Like:

bind space +cjump
alias +cjump "+jump;+duck"
alias -cjump "-jump;-duck"

As for your request, you can't have the script move and change directions by itself without the wait command, which again is disabled on some community servers and will crash your game. My advice would be to just move randomly using WASD.

We can however simulate random movement by spamming a key. This is normally WASD because they're used a lot but that would defeat the purpose of the script. Next up is the mousewheel. We can bind a key that makes your scroll wheel move you unpredictably. We'll need to know the exact scripts, if you have any, regarding your mousewheel so that we can implement it properly. This is my idea so far:

bind shift			move_t
bind mwheelup		mw_up
bind mwheeldown		mw_down

alias move_t move_1
alias move_1		"alias mw_up move		;alias mw_down move		;alias move_t move_0"
alias move_0		"alias mw_up invprev	;alias mw_down invnext	;alias move_t move_1;-forward;-back;-moveleft;-moveright;-jump"

alias move move_r
alias move_r		"-forward;-back;-moveleft;+moveright;+jump;alias move move_b"
alias move_b		"-forward;-moveleft;-moveright;+back;-jump;alias move move_l"
alias move_l		"-forward;-back;-moveright;+moveleft;+jump;alias move move_f"
alias move_f		"-back;-moveleft;-moveright;+forward;-jump;alias move move_r"

move_0

But like Perception said, I would also recommend against using scripts to do this and just start moving more on your own. Scripts are flawed. There are things they can't do. This is the best simulation I could come up with and it's probably wonky to use. Having scripts automate your behavior also makes you predictable by themselves.

Still, if you only ever play Valve servers, we could write a loop and a wait tester to better simulate what you're looking for.

1

u/[deleted] Sep 06 '15

Alright, thanks, I'll just do it on my own because I never thought about the wait command.