Anthr4x292

Untitled

Mar 20th, 2012
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local DLight = DynamicLight
  2.  
  3. CreateClientConVar("sec_showlights", 1, true, false)
  4.  
  5. function DynamicLight(index)
  6.     if GetConVar("sec_showlights"):GetBool() then
  7.         return DLight(index)
  8.     else
  9.         return {Pos = Vector(0, 0, 0), r = 0, g = 0, b = 0, Brightness = 0, Decay = 0, Size = 0, DieTime = 0}
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment