Visual and Physical clipping for Garry's Mod
Go to file
shadowscion c610f0bfe7
GetRenderMesh check (#32)
* Update proper_clipping.lua

* Update proper_clipping.lua

* Update proper_clipping.lua

whitepace has ruined me
2022-07-26 22:08:43 +02:00
imgs steam workshop 2020-10-13 11:31:00 +02:00
lua GetRenderMesh check (#32) 2022-07-26 22:08:43 +02:00
.gitignore steam workshop 2020-10-13 11:31:00 +02:00
addon.jpg steam workshop 2020-10-13 11:31:00 +02:00
addon.json steam workshop 2020-10-13 11:31:00 +02:00
README.md added post-event hooks, closes #10 2020-10-17 12:40:03 +02:00

Proper Clipping


Proper Clipping is a visual and physical clipping tool for Garry's Mod with the ability to load in clips from older clipping tools A and B while also allowing them to load in clips from Proper Clipping.

Has StarfallEx and Expression2 functions

StarfallEx:

  • ENTITY.addClip
  • ENTITY.removeClips
  • ENTITY.removeClip
  • ENTITY.removeClipByIndex
  • ENTITY.clipExists
  • ENTITY.getClipIndex
  • ENTITY.physicsClipsLeft

Expression2:

  • ENTITY.addClip
  • ENTITY.removeClips
  • ENTITY.removeClip
  • ENTITY.removeClipByIndex
  • ENTITY.getClipIndex
  • ENTITY.physicsClipsLeft

Server Convars:

  • proper_clipping_max_physics
  • proper_clipping_max_visual_server

Client Convars:

  • proper_clipping_max_visual
  • proper_clipping_mode
  • proper_clipping_offset
  • proper_clipping_physics

Hooks:

  • [Shared] ProperClippingCanPhysicsClip(Entity ent, Player ply or nil) -> return false to disallow physics clips

  • [Shared] ProperClippingPhysicsClipped(Entity ent, table normals, table distances)

  • [Shared] ProperClippingPhysicsReset(Entity ent)

  • [Shared] ProperClippingClipAdded(Entity ent, Vector normal, number distance, boolean inside, boolean physics)

  • [Shared] ProperClippingClipsRemoved(Entity ent)

  • [Server] ProperClippingClipRemoved(Entity ent, number index)

  • [Server] ProperClippingClipsNetworked(Entity ent, Player ply or nil)

  • [Shared] CanTool(Player ply, TraceResult trace, "proper_clipping_physics") -> return false to disallow physics clips


Available on the Steam Workshop