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

Hello, knowing that many of you understand scripting much better than I do, I was wondering if you could help me out. My dilemma is that on many servers I enjoy playing at (primarily pubs) have an unreasonably short window in which you can get up to get something to drink or use the restroom without being kicked. My question is, is it possible to have a script that say, moves my mouse in small increments every 10 or 20 seconds to the left then right when it's toggled? Would it also be possible to bind said command to a key? Thanks, any help would be appreciated. Oh, and please excuse me for the lack of a better title.

Hello, knowing that many of you understand scripting much better than I do, I was wondering if you could help me out. My dilemma is that on many servers I enjoy playing at (primarily pubs) have an unreasonably short window in which you can get up to get something to drink or use the restroom without being kicked. My question is, is it possible to have a script that say, moves my mouse in small increments every 10 or 20 seconds to the left then right when it's toggled? Would it also be possible to bind said command to a key? Thanks, any help would be appreciated. Oh, and please excuse me for the lack of a better title.
2
#2
0 Frags +

I believe any script that moves you (or your mouse or whatever) after a certain amount of time would require either a macro or the wait command. With my deathadder and razer synapse 2.0 i could set up a macro to do this, but with in-tf2 commands you'd need the wait command which has been disabled on most servers/ maybe even broken for years. the way id do this is bind a key to +moveright or +moveleft, and then sit in spawn up against a wall. You'll be constantly moving against the wall so I believe the plugin to kick afks wouldn't register you as afk, not sure though. Have you considered the plugin simply kicks people who stay in spawn for a while? If so, then there's not much you can do.

I believe any script that moves you (or your mouse or whatever) after a certain amount of time would require either a macro or the wait command. With my deathadder and razer synapse 2.0 i could set up a macro to do this, but with in-tf2 commands you'd need the wait command which has been disabled on most servers/ maybe even broken for years. the way id do this is bind a key to +moveright or +moveleft, and then sit in spawn up against a wall. You'll be constantly moving against the wall so I believe the plugin to kick afks wouldn't register you as afk, not sure though. Have you considered the plugin simply kicks people who stay in spawn for a while? If so, then there's not much you can do.
3
#3
0 Frags +

You would need the server to allow the wait command to have a small chunk of code that can move you left and right, or pan your view in the cardinal directions...

bind <key> +left; wait 100; -left; wait 1000; +right; wait 100; -right;

This would move you left for 100 frames, then stop for 1000, then move you right for 100 frames each time you pressed <key>

You would need the server to allow the wait command to have a small chunk of code that can move you left and right, or pan your view in the cardinal directions...

bind <key> +left; wait 100; -left; wait 1000; +right; wait 100; -right;

This would move you left for 100 frames, then stop for 1000, then move you right for 100 frames each time you pressed <key>
4
#4
0 Frags +

in the same vane as hanbrolo, typing +right or +left in console will make you spin around in circles without moving. If the plugin looks for actual feet moving though, +moveright/+moveleft would be a better bet. Anything without the wait command will look weird to other people.

in the same vane as hanbrolo, typing +right or +left in console will make you spin around in circles without moving. If the plugin looks for actual feet moving though, +moveright/+moveleft would be a better bet. Anything without the wait command will look weird to other people.
5
#5
0 Frags +

The wait command was removed from the game.

[s]The wait command was removed from the game.[/s]
6
#6
0 Frags +

@Hanbrolo
I'm almost 100 percent sure that it is not spawn specific, it will only kick you due to inactivity.

@Kaeyel
So, Hanbrolo said that the wait command has been broken for some time, this leads me to believe that the general consensus is that as of now, this would not work whatsoever?

Is it then possible to have a program outside of Tf2 that would do what I'm describing?

@Hanbrolo
I'm almost 100 percent sure that it is not spawn specific, it will only kick you due to inactivity.

@Kaeyel
So, Hanbrolo said that the wait command has been broken for some time, this leads me to believe that the general consensus is that as of now, this would not work whatsoever?

Is it then possible to have a program outside of Tf2 that would do what I'm describing?
7
#7
0 Frags +
Whoopee_Cushionin the same vane as hanbrolo, typing +right or +left in console will make you spin around in circles without moving. If the plugin looks for actual feet moving though, +moveright/+moveleft would be a better bet. Anything without the wait command will look weird to other people.

Okay, I'll try doing this.

hooliThe wait command was removed from the game.

Ok, thanks.

[quote=Whoopee_Cushion]in the same vane as hanbrolo, typing +right or +left in console will make you spin around in circles without moving. If the plugin looks for actual feet moving though, +moveright/+moveleft would be a better bet. Anything without the wait command will look weird to other people.[/quote]

Okay, I'll try doing this.

[quote=hooli]The wait command was removed from the game.[/quote]

Ok, thanks.
8
#8
0 Frags +

If it's the SM plugin ([SM] Warning: you will be moved to spectate in 30 seconds if you do not move) then all you need to do is type +right (or +left) in console. It just checks for mouse movement.

If it's the SM plugin ([SM] Warning: you will be moved to spectate in 30 seconds if you do not move) then all you need to do is type +right (or +left) in console. It just checks for mouse movement.
Please sign in through STEAM to post a comment.