Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Add Lua Bindings to CNavArea Block Attribute #2179

Closed T-Rizzle12 closed 1 year ago

T-Rizzle12 commented 1 year ago

Details

I have noticed that there is no lua binding to marking a CNavArea as block. Adding said binding will make it so addon creators don't have to override the CNavArea::IsBlocked or disconnect CNavAreas during gameplay, "which also destroys visibility data and encounter spots."

robotboy655 commented 1 year ago

Added missing enum for NAV_MESH_BLOCKED_PROPDOOR Added navmesh.GetBlockedAreas() Added CNavArea:MarkAsBlocked( teamID ) Added CNavArea:MarkAsUnblocked( teamID ) Added CNavArea:RemoveAttributes( flags ) Added CNavArea:AddAttributes( flags ) Disable default automatic navmesh unblocking