• halo.Add is breaking HUD elements
    5 replies, posted
Hey guys. I'm using halo.Add to add halos a table of entities, and it works, the halos are there. Here's the problem: I have a HUD element being drawn that is a health vial. It has a pool of health on the top that is drawn with a sin wave and base wavy material. When the Halos get added, my wavy health pool animation gets deleted, but the rest of the hud is there. Does anyone have any idea how halo.Add is interfering with my HUD element?
If you are using stencils in your HUD, you need to make sure to reset them back to default before drawing. Garry changed stencil stuff without putting it back to default for whatever reason.
Yeah, I'm actually debugging it now, and that's exactly what I can't figure out how to do. I noticed that halo.Add doesn't do that. Can you help me figure out how to reset the back to default?
[QUOTE=vexx21322;41782170]If you are using stencils in your HUD, you need to make sure to reset them back to default before drawing. Garry changed stencil stuff without putting it back to default for whatever reason.[/QUOTE] Make a pullrequest. (I'd do it but I don't understand that stuff)
Okay, I have no idea how stencils work. I added this line somewhere because I noticed that line in halo.Add was breaking my HUD stuff. [lua]render.SetStencilWriteMask( 6 )[/lua] And it magically fixed itself. Someone who knows stencils.. What did I do?
[QUOTE=Donkie;41782351]Make a pullrequest. (I'd do it but I don't understand that stuff)[/QUOTE] People have submitted reports and garry never changed it.
Sorry, you need to Log In to post a reply to this thread.