Author Topic: Script to disable moveforward();  (Read 3553 times)

I've seen people using this console command to phase through walls. Is there anyway to disable it entirely or make it admin only?

Moveforward is a client-side function meant for controlling your player. Sure you can make it admin-only, but then moving forward would be admin-only.

What about at least disabling moveforward(0.1);

Because they are either using 0.1 or 0.2 to glitch through walls.

You can't disable client sided things from the servers side.

Because they are either using 0.1 or 0.2 to glitch through walls.
Amazing, never heard of this.

Sure you can make a mod to prevent, and force the clients to download it using a clientCmd/serverCmd check, but then the clients can modify it so they can still use it.

So in short, no, you can't make it Admin only.
Just warn / ban the users abusing the glitch. It's really the only option.

Sure you can make a mod to prevent, and force the clients to download it using a clientCmd/serverCmd check, but then the clients can modify it so they can still use it.
I usually ban people accessing restricted areas instantly without warnings because the area has no way to get into it.

Although, me and a few other people have been trying to work on an anti-phase but it's never going to be accurate, ex: modter and teledoors are the worst to do checks on this. A dll may be the only way to prevent this.

Yes, there is a way.  %player.setMaxForwardSpeed(0);

Players can still move diagnolly forwards and to the side, though.

Yes, there is a way.  %player.setMaxForwardSpeed(0);

Players can still move diagnolly forwards and to the side, though.
The exploit can still happen with moveLeft, moveRight, and moveBackwards tho

The exploit can still happen with moveLeft, moveRight, and moveBackwards tho
Which is why you set the movement speed of all directions to 0, in which case you could just use that one player type that completely disables movement

However, i don't think that's what Tony wants, i think he just wants to disable the console commands, not stop people from moving normally

Could probably write a script to check if a player is in a brick and very gently and subtly push them out.

It will detect false positives like modter and teledoors.

What would be wrong with rewriting the function with an if variable to check if the argument was equal to 0.1 and not moving the player if it did? Like I figure there is something as this has likely been thought of before?

What would be wrong with rewriting the function with an if variable to check if the argument was equal to 0.1 and not moving the player if it did? Like I figure there is something as this has likely been thought of before?
Because a client could easily just remove the if check.
Assuming the client is smart enough to know how to open the console and type that, I'd believe he is smart enough to know how to remove one/two lines of code.

Could probably write a script to check if a player is in a brick and very gently and subtly push them out.