• Stencil bug
    2 replies, posted
code: include("shared.lua") concommand.Add("closeallmenus",function() CloseDermaMenus() end) surface.CreateFont( "Ariallarge", {     font = "Adega Serif",     extended = false,     size = 500,     weight = 500,     blursize = 0,     scanlines = 0,     antialias = true,     underline = false,     italic = false,     strikeout = false,     symbol = false,     rotary = false,     shadow = false,     additive = false,     outline = false, } ) function ENT:Initialize() self.x = -1399 end function ENT:Draw()     self:DrawModel() local arright = self:GetAngles():Right() self.x = self.x + 1     if self.x > 500 then self.x = -1400 end render.ClearStencil() render.SetStencilEnable(true) render.SetStencilWriteMask(255) render.SetStencilTestMask(255) render.SetStencilReferenceValue(10) render.SetStencilFailOperation(STENCILOPERATION_KEEP) render.SetStencilZFailOperation(STENCILOPERATION_KEEP) render.SetStencilPassOperation(STENCILOPERATION_REPLACE) render.SetStencilCompareFunction(STENCILCOMPARISONFUNCTION_ALWAYS) cam.Start3D2D(self:GetPos()+Vector(0,0,0)+18*arright,self:GetAngles()+Angle(0,0,90), .02)     draw.RoundedBox(0,-495,-500,990,125, Color(100,100,100,1)) cam.End3D2D() render.SetStencilCompareFunction(STENCILCOMPARISONFUNCTION_EQUAL) cam.Start3D2D(self:GetPos()+Vector(0,0,0)+18*arright,self:GetAngles()+Angle(0,0,90), .02)     surface.SetFont("Ariallarge")     surface.SetTextColor(Color(255,255,255,255))     surface.SetTextPos(self.x,-490)     surface.DrawText("Please Help Me!!!!!!!!!") cam.End3D2D() render.ClearStencil() render.SetStencilEnable(false) end BUG: SEIZURE WARNING hl2_20190602_200610F.avi
https://wiki.garrysmod.com/page/halo/RenderedEntity
Thank you! for anyone in the future I just put if halo.RenderedEntity() == self then return end in ENT:Draw()
Sorry, you need to Log In to post a reply to this thread.