Raised This Month: $ Target: $400
 0% 

Player movement


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DotNetJunkie
Senior Member
Join Date: May 2005
Location: In front of my pc
Old 05-09-2005 , 02:49   Player movement
Reply With Quote #1

Is there a way to prevent players from moving by themselves via PreThink?

Thanks!
__________________
DotNetJunkie is offline
Send a message via ICQ to DotNetJunkie Send a message via AIM to DotNetJunkie Send a message via MSN to DotNetJunkie Send a message via Yahoo to DotNetJunkie
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 05-09-2005 , 12:37  
Reply With Quote #2

You can just set their maxspeed, you don't need to involve PreThink.
__________________
twistedeuphoria is offline
DotNetJunkie
Senior Member
Join Date: May 2005
Location: In front of my pc
Old 05-09-2005 , 12:44  
Reply With Quote #3

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.
__________________
DotNetJunkie is offline
Send a message via ICQ to DotNetJunkie Send a message via AIM to DotNetJunkie Send a message via MSN to DotNetJunkie Send a message via Yahoo to DotNetJunkie
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode