Garry's Mod

Garry's Mod

Not enough ratings
AntiBlock - A solution to pathway blocking
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
4.033 KB
28 Jun, 2022 @ 4:03pm
28 Jun, 2022 @ 6:01pm
2 Change Notes ( view )

Subscribe to download
AntiBlock - A solution to pathway blocking

Description
A simple addon that (somewhat) solves the issue of players blocking pathways and preventing other players from passing by. It's not perfect, but it is something.

Useful for co-op maps/gamemodes

Press the USE key to swap positions with the player you are looking at. You must be next to them for it to work.

Positions will not be swapped if:
- The swapper or swappee is stuck
- The swapper or swappee will get stuck after swapping positions

ConVars:
- sv_antiblock_enabled (0/1 | Default 1): Allows players to swap places with other players if they are blocking the way
- sv_antiblock_distance (30-100 | Default 45): The max distance from a target that using the antiblock will work

Highly recommended to be paired with this addon: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1155237733
(Marked as required as it was the best solution to some people getting stuck after swapping positions)

Inspired by the AntiBlock plugin made by wootguy for Sven Co-op
https://github.com/wootguy/AntiBlock
3 Comments
NNinja1255  [author] 4 Jul, 2022 @ 7:23pm 
@McStabbyTaco3000
I don't know, I mainly made this for players.
McStabbyTaco3000 4 Jul, 2022 @ 2:07pm 
Can you make this work with friendly NPCs as well?
Saw 4 Jul, 2022 @ 9:37am 
mmmmm that is hot