Detect stuck player
Hello, I need to detect when someone is stuck/buggy into something like a grenade or wall, as I do that?
Thanks. |
Re: Detect stuck player
Code:
stock IsPlayerStuck(client){ |
Re: Detect stuck player
I would be interested in testing this out. What I do is move the player slightly and then check their location. If their location is the same they are stuck.
Also does the IsStuckInEnt() stock return stuck is a player is stuck in the map or only objects on the map? Ah I see you would just use 0 to compare the ent. |
Re: Detect stuck player
Quote:
|
Re: Detect stuck player
They are pushed up as well and the check for the change is fast enough where it works. I have always been surprised that it works so well but it has for over a year.
Previously I had some code that would do like this and try to figure out it a player would get stuck before moving them but it always would not move them when they could be or got them stuck anyways. Another issue I see with these stocks is what if you wanted to not include player collisions b/c your using no block. I will still give these a test down the road to see how they work out. It would be ideal to be able to check locations before going to them. |
All times are GMT -4. The time now is 13:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.