Player movement
Is there a way to prevent players from moving by themselves via PreThink?
Thanks! |
You can just set their maxspeed, you don't need to involve PreThink.
|
I forgot to mention, I am scripting for The Specialists and the movement speed
is variable, that is the more weapons you have the slower you move PLUS I am also dealing with Harbu's plugins which have a cuff mod that messes with the max speed. My intention was to add "/restrain" command to the RP plugin but I think I may have found the solution anyway, I simply blocked the keys I wanted via PreThink from copying the cuff code and I have a task that detects if the given player is restrained, and if so it simply sets their origin to what their origin was when they were restrained. Simpler than I thought it was but if you have a more efficient way then please shoot away! P.S. I'm a speed freak with my code, I panic over every little thing, I guess thats what you get from programming nothing but DirectX for 2 or 3 years strait among other things. |
| All times are GMT -4. The time now is 16:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.