Open CGNick opened 11 years ago
If this would work someday, it should be done for all decal functions.
I want this too. My tool Map Retexturizer has decals application in place but the support for fully handling them needs to be done. It's very bad to not be able to detect what was placed... We have to clear the entire map at once if something is positioned wrongly and we can't copy the modifications if we want to.
Perhaps a way to render a decal manually would be good. Something like this in a render hook for example:
render.setMaterial(decalMat)
render.DrawDecal(targetEnt, pos, dirNormal, width, height, clr)
Could allow for some interesting animated decal use cases.
Since Gmod 13, there was a function, util.DecalEx, which really added some neat stuff to the default decals such as adding in your own materials, adjusting colour and size, however it needs something more. Can we have it return a type of object? I'm only asking of this, so we can modify it later on, once its created. Right now, once you create a decal you are stuck with it unless you "Clean up everything". Can we make it atleast return an object, kind of like the ClientsideModels? And adding a few functions such as changing the position, color and etc on this "Returned Entity" would be nice too.