AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Is there any way to tell if a user is stuck in an object? (https://forums.alliedmods.net/showthread.php?t=46575)

aceofspades 10-29-2006 06:42

Is there any way to tell if a user is stuck in an object?
 
I was wondering if it is possible to tell if a user is stuck in an object. A lot of people seem to get stuck in chairs and things and require teleporting away, but there are many people who exploit this and say they are stuck when they arnt, just so they can get teleported (probably to a better place).

Is it also possible to tell where the object that they are stuck in is, as in is it their feet that is stuck in the sofa.

Thanks for any help,

James

API 10-29-2006 08:13

Re: Is there any way to tell if a user is stuck in an object?
 
Set a players velocity, check in 0.3 seconds, if their origin is the same, they are stuck.

aceofspades 10-29-2006 08:28

Re: Is there any way to tell if a user is stuck in an object?
 
But does a player still have a velocity if they are attempting to move but are stuck in an object?

API 10-29-2006 08:31

Re: Is there any way to tell if a user is stuck in an object?
 
Well thats not the point. If you set their velocity manually, and if they are stuck, they STILL won't move. If they do have a different origin, they are stuck.

aceofspades 10-29-2006 08:45

Re: Is there any way to tell if a user is stuck in an object?
 
Ah right, i see what you mean now. Thanks :D


All times are GMT -4. The time now is 21:20.

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