Visual and Physical clipping for Garry's Mod
Go to file
2024-12-22 16:08:47 +01:00
imgs steam workshop 2020-10-13 11:31:00 +02:00
lua fix toolpreview 2024-12-22 16:08:47 +01: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 workshop update script 2024-08-25 01:07:22 +02:00
README.md starfall getclipdata 2024-12-22 15:38:43 +01:00
update_workshop.sh workshop update script 2024-08-25 01:07:22 +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
  • ENTITY.getClipData

Expression2:

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

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
  • proper_clipping_pitch
  • proper_clipping_yaw
  • proper_clipping_undo

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