Advertisement
VXP

Untitled

VXP
Jan 30th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. local lighttable = {
  2.     "a",
  3.     "b",
  4.     "c",
  5.     "d",
  6.     "e",
  7.     "f",
  8.     "g",
  9.     "h",
  10.     "i",
  11.     "j",
  12.     "k",
  13.     "l",
  14.     "m",
  15.     "n",
  16.     "o",
  17.     "p",
  18.     "q",
  19.     "r",
  20.     "s",
  21.     "t",
  22.     "u",
  23.     "v",
  24.     "w",
  25.     "x",
  26.     "y",
  27.     "z",
  28. }
  29. local LS_MAP = 0
  30. local lightnum = 1
  31. local function setLightStyle( lightChar )
  32.     if SERVER then
  33.         MsgN( "SERVER: "..lightChar )
  34.     --  engine.LightStyle( LS_MAP, lightChar )
  35.         for i=0,63 do
  36.             engine.LightStyle( i, lightChar )
  37.         end
  38.         ents.FindByClass( "light_environment" )[1]:SetKeyValue( "FadeToPattern", lightChar )
  39.     end
  40.     if CLIENT then
  41.         timer.Simple( 0.1, function()
  42.         --  MsgN( "CLIENT: Redownloading all lightmaps..." )
  43.             render.RedownloadAllLightmaps()
  44.         end )
  45.     end
  46. end
  47. --[[
  48. timer.Create( "LightTimer", 1, #lighttable, function()
  49.     MsgN( "One iteration" )
  50.     setLightStyle( lighttable[lightnum] )
  51.     lightnum = lightnum + 1
  52. end )
  53. ]]
  54. --
  55. local char = "m"
  56. setLightStyle( char )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement