Commit Graph

75 Commits

Author SHA1 Message Date
Sevii
ea967a3eb7 fix toolpreview 2024-12-22 16:08:47 +01:00
Sevii
435b4594be starfall getclipdata 2024-12-22 15:38:43 +01:00
deltamolfar
be435fc762
Update README.md (#47) 2024-12-22 13:41:48 +01:00
deltamolfar
4f39a02d61
e2function table entity:getClipData() (#46)
* e2function table entity:getClipData()

* Add description

* rename return vals + remove backwards compability vals
2024-12-20 04:16:45 +01:00
Sevii
2210a94498 workshop update script 2024-08-25 01:07:22 +02:00
Sevii
9ea8a8b4d0 dont log if 0 clipped entities on join 2024-08-25 00:44:02 +02:00
Redox
08228a37ed
Optimizations (#44)
* Reduce __index calls, improve localization usage

* Only add the think hook on physgun useage
2024-08-25 00:36:09 +02:00
Victor K
d82acfa24a
fix prediction of TOOL:LeftClick for modes 2 & 3 (#42)
- 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
2024-05-15 12:59:26 +02:00
Matt
b32f93c5ed
Fix blank constraint types causing dupes to not spawn (#39)
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.
2023-06-18 14:14:58 +02:00
Matt
1d5515dc4d
QoL improvements, replace deprecated control panel functions (#38)
* 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>
2023-06-04 17:56:23 +02:00
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
Victor K
e861312a43
2 hitplanes intersection clipping mode (#30) 2022-05-20 11:56:46 +02:00
Sevii
eab35fd471 fix #1 2021-10-19 20:51:36 +02:00
Sevii
7aac61650c fix constraints disappearing after dupe, fixed #25 2021-06-19 11:56:11 +02:00
Sevii
31abf4ed41 fix constraint duplication on adv dupe 2 spawn 2021-06-01 18:37:27 +02:00
Sevii
2fdae65f0e Fix crash related to constraints 2021-04-10 17:46:53 +02:00
Sevii
37cc56da48 wait for spawneffect to end before clipping, fixes #22 2021-02-17 11:18:42 +01:00
Sevii
a6294fefd7 lookup bind for tool info key, fixes #21 2021-02-17 10:52:44 +01:00
Sevii
846b7cfb03 restore damping, fixes #19 2020-11-20 13:31:36 +01:00
Sevii
f8f7ecdee6 remove redundant code 2020-10-19 12:48:41 +02:00
Sevii
5843dd659c apply physics clips after advdupe2 finished pasting, fixes #15 2020-10-19 12:45:51 +02:00
Sevii
a7098c6eb0 get rid of redundant code 2020-10-19 11:02:01 +02:00
Sevii
1eca06cf20 keepmass option, closes #16 2020-10-19 11:00:25 +02:00
Sevii
9cb8830f07 readd timer when reapplying constraints, fixes #14 2020-10-17 21:06:24 +02:00
Sevii
c6b9c42485 woops, fix typo, closes #13 2020-10-17 15:51:51 +02:00
TwistedTail
62610c5776
Optimized constraint rebuilding, fixes #11 (#12)
* 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>
2020-10-17 14:29:00 +02:00
Sevii
aa07932358 fix issue with RemoveClip when removing a physics clip 2020-10-17 12:50:12 +02:00
Sevii
f45c2e757e added post-event hooks, closes #10 2020-10-17 12:40:03 +02:00
Sevii
f4e9752f9c fix double chatprint 2020-10-17 12:21:55 +02:00
Sevii
996fabbc1b physicize tool, closes #9 2020-10-17 12:19:16 +02:00
Sevii
ce03d75420 optimize multi physics clipping, closes #7 2020-10-17 11:53:42 +02:00
TwistedTail
ec04c2f9e3
Improve backwards compatibility (#8)
* 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>
2020-10-17 10:45:12 +02:00
Sevii
f914228f27 steam workshop 2020-10-13 11:31:00 +02:00
Sevii
c88ab97bff check if point lies on clipplane when clipping physics, fixes #6 2020-10-12 15:02:10 +02:00
TwistedTail
8e3825b89e
Fixed physical clip duping (#5)
* 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>
2020-10-11 16:41:56 +02:00
TwistedTail
fa410f0190
Fixed client-side full update and hitbox (#4)
* 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>
2020-10-06 20:18:27 +02:00
Sevii
8471ebc2a9 remove print 2020-08-31 17:29:11 +02:00
Sevii
1d88788f57 fix preview not working in singleplayer, fixes #2 2020-08-31 17:28:23 +02:00
Sevii
6a8f5f40b3 fix physclip convar default and min 2020-07-18 19:14:40 +02:00
Sevii
0ed99310da fix clip preview not working on skybox 2020-07-05 21:52:22 +02:00
Sevii
8dab16e581 use static number instead of clipsleft 2020-06-26 18:04:08 +02:00
Sevii
19e246fa13 fixed some physclip crashes and sperical physclip lua error 2020-06-26 16:32:18 +02:00
Sevii
b9ced93769 improve compatability 2020-05-10 21:12:50 +02:00
Sevii
a70d6b877a sf and e2 libs 2020-05-06 02:06:52 +02:00
Sevii
58be86fa06 im big brain 2020-04-19 02:37:51 +02:00
Sevii
995cbc3074 fix compatability clip loading only 1 clip 2020-04-15 21:18:42 +02:00
Sevii
582467ebea updated readme 2020-04-15 15:49:38 +02:00
Sevii
b3b110e742 fix physics clip undo 2020-04-15 15:41:18 +02:00
Sevii
8343548558 Add undo 2020-04-15 15:34:39 +02:00
Sevii
4e4b8a8d15 fix reset hiding the entity if it had more than 1 clip 2020-04-15 15:23:58 +02:00