Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( CLIENT ) then
- function VCube:Render()
- local Laser = Material( "cable/redlaser" )
- render.SetMaterial( Laser )
- -- Top
- render.DrawBeam( self.top.fl, self.top.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.top.bl, self.top.fl, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.top.bl, self.top.br, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.top.br, self.top.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- -- Top to bottom corners
- render.DrawBeam( self.top.fl, self.bottom.fl, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.top.fr, self.bottom.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.top.bl, self.bottom.bl, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.top.br, self.bottom.br, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- -- Bottom
- render.DrawBeam( self.bottom.fl, self.bottom.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.bottom.bl, self.bottom.fl, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.bottom.bl, self.bottom.br, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- render.DrawBeam( self.bottom.br, self.bottom.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
- end
- end
Add Comment
Please, Sign In to add comment