Garry's Mod

Garry's Mod

26 ratings
AntiPlayerStuck [Optimized]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
2.415 KB
15 Jul, 2024 @ 2:15pm
18 Jul, 2024 @ 9:58am
4 Change Notes ( view )

Subscribe to download
AntiPlayerStuck [Optimized]

Description
What's that?

A simple script meant to unstuck players who are stuck together.
This is a redesign of the AntiPlayerStuck script.
The features are the same, but the code has been fully rewritten.

Why should I use this script on my server rather than the original?

After a quick benchmark, it turns out that my detection function is almost 15 times faster than in the original script, and is executed at least 10 times less often, making it (very) faster.
By switching to this script, you'll be doing your server's CPU a favor.

A simple script of a few lines like the original AntiPlayerStuck can make the difference between a stable and a laggy server, and can even be the cause of crashes.
Be careful what you install, even if the addon you're using is on thousands of servers.

Bugs/Feature request

If you find a bug or want to see a feature added, you can write it in the comments section.

GitHub: https://github.com/NebulaProductions/antiplayerstuck-optimized

3 Comments
eues 13 Jun @ 11:30am 
great addon:steamhappy:
Timmy  [author] 23 Jan @ 12:05am 
@Kiddley alright, thanks for letting me know
Kiddley 12 Jan @ 3:56pm 
Howdy, I would like to incorporate your script into my gamemode, Deathrun Improved. It's got player collisions optionally on, and I'd like to ensure players don't get stuck inside each other as the mode incorporates teleporting. Of course, I will be crediting you and linking this addon, but I thought it'd be respectful to let you know.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3404456924