Facepunch / garrysmod-requests

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

Add PreEntityDraw and PostEntityDraw callbacks #1035

Open Kefta opened 6 years ago

Kefta commented 6 years ago

These callbacks would be added with ENTITY:AddCallback, and called before and after the entity is rendered, respectively. This is an alternative that essentially bypasses the one RenderOverride per entity rule. Being able to block drawing from PreEntityDraw from returning true would be nice too.

Kefta commented 6 years ago

Would prevent RenderOverride overrides like this one: https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/chatindicator/cl_init.lua#L36-L43

VaasKahnGrim commented 4 years ago

Would be nice if we could get this added in now that its 2020, was gunna make a feature request aswell but luckily one already exists so bumping it up.