Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Option to allow CLuaParticles to collide with more entities #2442

Open ZH-Hristov opened 3 months ago

ZH-Hristov commented 3 months ago

Details

It would be very nice if we could have CLuaParticles that collide with props and/or just ents in general. It would make CLuaParticle:SetCollideCallback much more useful as well, especially if a hitEntity argument is added to its callback.

I understand this could have performance implications, but any implementation of this in-engine would be way faster than trying to do it in Lua.

If accurate detection is unfeasible, I could settle for bounding boxes, or a way to add bounding boxes to a particle emitter through Lua, which the particles could use for collision detection.

An example of usage I can give is blood spurts that stain whatever they hit with a decal, ala SMOD. This is doable right now, but again, only with world brushes.