-
Notifications
You must be signed in to change notification settings - Fork 342
Add gmod_wire_customprop #3451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add gmod_wire_customprop #3451
Conversation
|
I'm in possession of a starfall which spawns an extremely crash-prone level 3 serpinski pyramid (it can crash the server merely by contacting another one of itself). It has 64 convexes but only 4 verts per convex. Looks kinda like this: It might be risky to allow a lot of convexes—the physics mesh isn't costly to build for those but it does cost more to simulate. Want some help stress-testing this weekend? |
Help is always appreciated :) |

Adds gmod_wire_customprop entity into the wiremod, an entity with custom physics mesh, which isn't spawnable by itself but by the E2/duplicator, and maybe in future, by something else.
It's essentially starfall's custom mesh prop with a few tweaks:
ENT:BuildPhysicsfunction, andself:PhysicsInitMultiConvexfunction in particular which seemingly takes more resources exponentially with the rise of verticies amount, I've decided (and tested by stressing/abusing different limits) to lower the verticies limit and raise convexes limit instead.Example of usage: (again, taken mostly from SF's example, not trying to credit myself for other's stuff)