- Fixes incorrect clientside preview for mode 2 "2 Hitplanes intersection", caused by repetitive assignment of self.plane when left click is predicted
- Disables toolgun animation for mode 3 "Pitch and Yaw", as left click is unused for this mode
Fixes #34
Not sure what causes this to happen but I've been sent a few dupes where the constraint type is simply an empty string, which ends up causing an error not allowing them to fully spawn.
* Add "Classic Visclip" mode for people used to old visclip
* QoL improvements, rename "Classic" mode to "Pitch and Yaw"
* Add reset button to zero out sliders
* Fix undo checkbox not working
GetConVar -> GetClientBool
* Don't show preview on brush based entities
* Add new convars to readme
* Fix nil value error on undo while looking at entity
* styling
---------
Co-authored-by: Sevii <sevii@sevii.dev>
* Optimized constraint rebuilding
- Optimized constraint rebuilding to only affect the constraints of the entity that was physically modified.
- Added a small check for invalid entities on the `ProperClipping.ClippedPhysics` table.
* camelCase, don't trim whitespaces
Co-authored-by: Sevii <sevii@sevii.dev>
* Improve backwards compatibility
- Renamed distance field on ClipData to `dist`.
- Added legacy distance `d` field for addons that still rely on the OBBCenter clip position method.
* fix whitespaces
Co-authored-by: Sevii <sevii@sevii.dev>
* Fixed physical clip duping
- Fixed physical clip creation on newly clipped entities.
- Fixed max physical clip limit not being announced to the player at all.
- Fixed clip removal not being processed properly on the client-side after being networked.
* improve forward compatibility, fix whitespaces
Co-authored-by: Sevii <sevii@sevii.dev>
* Fixed client-side full update and hitbox
- Fixed entities losing their client-side physics object in cases where the server "thinks" it's being closed, ie near crash or manually calling `cl_fullupdate`.
- Clips will now store their physical state on the client-side.
- Fixed client-side hit-box not reflecting the actual physical object hit-box.
- Fixed PlayerInitialSpawn synchronization. Players were never receiving the existing clips due to the CreateMove hook not existing on the serverside.
* use SetupMove to fix clip synchronization instead
* don't trim whitespaces
Co-authored-by: Sevii <sevii@sevii.dev>