Garry's Mod

Garry's Mod

446 ratings
Anti-Noclip Field
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build
File Size
Posted
Updated
217.068 KB
31 Jul, 2013 @ 3:02pm
4 Jan, 2024 @ 3:07pm
38 Change Notes ( view )

Subscribe to download
Anti-Noclip Field

Description
About
This tool allows you to create anti-noclip fields.
Players in these fields are unable to noclip.

Requirement
No addtional requirements.

Recommended addons
  1. Wiremod[github.com] for Wiremod functionalities.
  2. PermaProps[github.com] for saving the fields permanently.

How to use
You spawn the an Anti-Noclip Field with the toolgun. You find this tool in the 'Construction' section of your tool menu.

The settings in the toolgun have tooltips, mouse over them to see them.
They may help you if you need to know something about an option.

Features
  • Blocks players noclip inside an anti-noclip area.
  • Built-in admin checks to prevent abuse.
  • Extended features for admins.
  • CPPI Support
  • PermaProps Support

If you an admin you can also disallow these actions:
  • Spawning objects
  • Tool use
  • Entity drive
  • Changing entity properties
  • Using physgun, gravitygun
  • Entering vehicles
  • Picking up props
  • Killing or damaging themselves
  • Killing or demaging others or props
  • Options to enable protection from outside

Additional Notes
If you try to disallow the above options as a non-admin it wont work.
Bypassing by duping, won't work either. (Please report exploits if you find them)

ConVars and ConCommands
  • sv_anti_noclip_field_adminonly 0/1 (Default: 0)
    • Disables this tool for non-admins.
  • sv_anti_noclip_field_maxsize 128-16384 (Default: 512)
    • Change the max size of the fields, it will also clamp already placed ones.
  • sv_anti_noclip_field_freeforall 0/1 (Default: 0)
    • Allows admin only features of the tool for everyone.
  • sv_anti_noclip_field_blocksuperadmin 0/1 (Default: 0)
    • Allows superadmins to be blocked.
  • sv_anti_noclip_field_rechecktime 0.01-5 (Default: 0.25)
    • Changes the interval of how often the field checks for players.
    • Increase for better server performance. Higher values are less accurate.

Credits
Code: Grocel

GitHub Version
https://github.com/Grocel/Anti-Noclip-Field

Commenting
Fell free to posts bug reports, requests or feedback.

However if you post bug reports, please include the error message and the steps to reproduce it. An undetailed report is invaild and can't be treated. If I ask for more information, please give them to me or the bug can't be fixed.

Please don't add me to just report a bug. Please use the comment section below. If you still think you need to add me, then ask me in the comment section or in my profile first. I explain only once. Crap and idiot comments will be deleted.
253 Comments
CyberNeo 21 Apr, 2022 @ 1:59pm 
is it possible to force equip Players inside the Field as a loop to prevent any Weapon Use? I ask because I want to use it for my DarkRP Server.
purposedfox 2 Mar, 2022 @ 5:35am 
parameters to spawn a field using Starfall?
adrenochrome 26 Nov, 2021 @ 11:52am 
total supreme addon
adrenochrome 26 Nov, 2021 @ 11:51am 
i have been looking for some addon that is perfect for almost all my points :D thanks alooooooooooooot :)
Grocel  [author] 25 Sep, 2021 @ 8:02am 
This might be a left over debug print. You can ignore it for now. I will patch it out in an update maybe.
NextKurome76TheSoldier 25 Sep, 2021 @ 7:07am 
idk if its this addon or a different one but something keeps printing
__ancf_owner = Player [1][NextKuromeThe76Soldier]
in console when i spawn a prop
gmodrozhtttt 2 Apr, 2021 @ 3:25pm 
the ultimate addon ! THANKS!
gmodrozhtttt 2 Apr, 2021 @ 3:21pm 
top 1 of 500+ addons in 15 years the best
Grocel  [author] 25 Aug, 2020 @ 9:11am 
Make sure to disable the "always be affected" option aswell.
Grocel  [author] 25 Aug, 2020 @ 9:09am 
It uses these function:
https://wiki.facepunch.com/gmod/Player:IsAdmin for Admin
https://wiki.facepunch.com/gmod/Player:IsSuperAdmin for SuperAdmin

These are the default functions in GMod and are used in any addon that needs to check for admin privileges. This addon (and many other addons) does not support custom ranks with admin like privileges, when these don't override the Player:IsAdmin() logic.