Guest User

Untitled

a guest
Apr 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.17 KB | None | 0 0
  1. if ( CLIENT ) then
  2. function VCube:Render()
  3.     local Laser = Material( "cable/redlaser" )
  4.     render.SetMaterial( Laser )
  5.    
  6.         -- Top
  7.     render.DrawBeam( self.top.fl, self.top.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  8.     render.DrawBeam( self.top.bl, self.top.fl, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  9.     render.DrawBeam( self.top.bl, self.top.br, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  10.     render.DrawBeam( self.top.br, self.top.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  11.    
  12.     -- Top to bottom corners
  13.     render.DrawBeam( self.top.fl, self.bottom.fl, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  14.     render.DrawBeam( self.top.fr, self.bottom.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  15.     render.DrawBeam( self.top.bl, self.bottom.bl, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  16.     render.DrawBeam( self.top.br, self.bottom.br, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  17.    
  18.     -- Bottom
  19.     render.DrawBeam( self.bottom.fl, self.bottom.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  20.     render.DrawBeam( self.bottom.bl, self.bottom.fl, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  21.     render.DrawBeam( self.bottom.bl, self.bottom.br, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  22.     render.DrawBeam( self.bottom.br, self.bottom.fr, 5, 1, 1, Color( 0, 0, 255, 255 ) );
  23. end
  24. end
Add Comment
Please, Sign In to add comment