home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 September / GSSH0904CD2.iso / Doom3 / Mods / VariLight / VariLight.exe / VariLight.pk4 / materials / lights.mtr
Text File  |  2004-08-30  |  44KB  |  2,634 lines

  1. table xianjittertable { { 0.9, 0.95, 0.92, 0.99, 0.85 } }
  2. table xianjittertable_hi { { 0.9, 0.95, 0.92, 0.99, 0.85 } }
  3. table xianjittertable_low { { 0.05, 0.2, 0.1, 0.15, 0.09 } }
  4. table xray02table { { 1, .8, .8, 1, 1, .8, .8, .9, 1, .8, 1, .9, .8, 1, 1, 1, .9, .7, .8, 1, .8, 1, .8 } }
  5. table senescrollightable { { -1, -0.9, -0.8, -0.7, -0.6, -0.5, -0.4, -0.3, -0.2, -0.1, 0 } }
  6. table senescrollightableA { { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 } }
  7. table sargetable1 { { 1, 1, .2, 0, 0, 0, .2 } }
  8. table sargetable2 { { 0, .2, 1, 1, .2, 0, 0 } }
  9. table sargetable3 { { 0, 0, 0, .2, 1, 1, .2 } }
  10. table firetable { { .3, .2, .8, .1, .2, .3, .1, .5, .1, 1, .2, .3, .3, .2, .1, .1, .7 } }
  11. table firetable2 { { .7, .9, 1, .8, 1, .9, .7, .5, 1, 1, .7, .5, 1, 1, .5, 1, .8 } }
  12. table strobetable { { 0, 0, 0, 0, 1, 1 } }
  13. table blinktable { { 0, 1 } }
  14. table blinksnaptable { snap { 0, 1 } }
  15. table flashtable { { 0, 0, 0, 0, .5, 0, .5, 0, 0, 0, 0, 0, .5, 0, .5, 0, .5, .5, 0, 0, 0, .5, 0, 1, 0, 1, 0, 0, 0, 0, .5 } }
  16. table neontable1 { { .3, 0, 0, 0, 0, .3, 0, 0, 0, 0, .3, 0, 0, .1, .075, .15, .22, .3, .3, .45, .52, .6, .67, .75, .82, .9, .95, 1, 0, 0, 0, .3, 0, 0, 0, 0, 0, 0, 0, .3, 0, 0, 0, 0, 0, 0, 0, 0, 1, .6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, .3, 0, 0, 0, 0 } }
  17. table neontable2 { snap { 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1 } }
  18. table blinktable2 { snap { 0, 0, 0, 1 } }
  19. table blinktable3 { { 1, 1, 1, 1, 1, 1, 0 } }
  20. table blinktable4 { { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 } }
  21. table blasttable { { 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 0, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, .6, .9, .3, .5, 0, .2, 0, 0, 0, 0, 0, 2, 2, 1 } }
  22. table stormtable { snap { 1, 1, .3, 1, .1, .3, .1, .1, .4, 1, 1, 2, 1, 1, 2, 1, .1, .1, .1, 1, .1, .3, 5, .2, .2, 1, .5, 1, .1, 1, .2, .6, 1, 1, .2, 1, 1, 1, 1, .1, .6, 1, .1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 0.4, 2, 2, 2, .2, .1, 1, 1, 1, .5, 0, 1, 1, 1, 1, 1, .1, .1, 2, 1, 1, 1, 1, 1, 1, 1, .1, 2, 1, 1, 1, 1, 1, 1, 1, 1, .1, 4, 1, 1 } }
  23. table flickerblink { { 0, .3, .1, .5, .3, .8, .9, .5, .2, .1, .7, .4, 1, .2, .5, 0, .2, .7, .5 } }
  24. table acceleratorfade { { .1, .2 } }
  25. table acceleratorflashtable2 { clamp { 4, 2, 1, 1, 1, 1, 1, 1, 1, .1, .1, .1, .1  } }
  26. table bathroomtable { { .7, 1, .6, .8, .6, .6, .6, .7, .8, 1, 1, .9, .7, .8, 1, .7, .7, .8, .6, .7, .7, .8, .6, .9, .7, .9, 1 } }
  27. table bathroom2table { { .9, 1, 1.6, .8, 2, 1, 1.5, 1.7, .8, 1, 1.2, .9, .9, .8, 1.3, .8, .9, .8, 1.6, .7, 1.7, .9, 1.1, .9, .8, .9, 1 } }
  28. table firelightrot { { 13, 16, 123, 256, 90, 12, 190, 160, 1, 59, 280, 150, 15, 280 } }
  29. table delta1randtable { { 1, 0, 1, 1, 0, .5, .2 } }
  30. table speaker_1 { { 1, 1 } }
  31. table blinktable5 { snap { 0, 0, 0, 1, 0, 1, 0, 0, 0 } }
  32. table guiLightTable { { 1, 1, 0.6 } }
  33. table storm2table { snap { 1, .1, 1, 0, .7, .1, .1, .1, .1, .1, .1, .1, 0, 1, 0, 1, .1, .1, .1, .1, .1, .1, .1, .1, 1, .1, .1, .1, .1, .1, .1, .1, 1, 0, 1, 1, .1, .1, .1, .1, .1, .1, .1, .1, .1, 1, 0, .7, .1, .1, .1, .1, .1, .1, .1, .1, .1, .1, .1, .1, .1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0, 0.1, 0, 0.1, 0.1, 0, 0.1, 0, 0, 0.1, 0, 0 } }
  34.  
  35. table meattable { snap {  0, .1, 0, 0, 0, 1, .5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 , 0, .3, 0, .3, 0, .7, 0, 0, 0,.1,.1,.1,.1,0,0,0, 0, .3, 0, .3, 0, 1,1, 0, .3, 0, .7 } }
  36.  
  37. lights/meatlight
  38. {    
  39.  
  40.     {
  41.         forceHighQuality        
  42.         map    lights/stormy2.tga
  43.         colored
  44.         rotate    time * .1
  45.         zeroClamp
  46.         rgb        meattable[ time * .2 ]
  47.     }
  48.  
  49. }
  50.  
  51. lights/squareblast
  52. {    
  53.     {
  54.         forceHighQuality
  55.         map lights/squareblast
  56.         colored
  57.         zeroclamp
  58.         
  59.     }
  60. }
  61.  
  62.  
  63. lights/biground1_strobe
  64.  
  65. {
  66.     {
  67.         forceHighQuality
  68.         map        lights/biground1.tga
  69.         red         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm0
  70.         green         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm1
  71.         blue         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm2
  72.         zeroclamp
  73.     }
  74. }
  75.  
  76.  
  77. lights/bfg_flare
  78. {
  79.     {
  80.         forceHighQuality
  81.         map    lights/roundfire.tga
  82.         red     ( firetable2 [Parm4 + (time / 6) ]) * Parm0
  83.         green     ( firetable2 [Parm4 + (time / 6) ]) * Parm1
  84.         blue     ( firetable2 [Parm4 + (time / 6) ]) * Parm2
  85.         rotate    firelightrot [ time * parm3 ]
  86.         zeroClamp
  87.     }
  88.     //{
  89.     //    map    lights/roundfire.tga
  90.     //    red     ( firetable2 [Parm4 + (time / 3) ]) * Parm0
  91.     //    green     ( firetable2 [Parm4 + (time / 3) ]) * Parm1
  92.     //    blue     ( firetable2 [Parm4 + (time / 3) ]) * Parm2
  93.     //    rotate    firelightrot [ time * (2 * parm3) ]
  94.     //    zeroClamp
  95.     //}
  96. }
  97.  
  98.  
  99. lights/barrelexplode
  100. {
  101.     {
  102.         forceHighQuality
  103.         map    lights/spot01.tga
  104.         red        1
  105.         green    0.75
  106.         blue    0.51
  107.         zeroClamp
  108.     }
  109. }
  110.  
  111. lights/redglow
  112. {    
  113.     {
  114.         forceHighQuality
  115.         map    lights/squarelight
  116.         red     bathroomtable [ time * .02 ] * Parm0
  117.         green     bathroomtable [ time * .02 ] * Parm1
  118.         blue     bathroomtable [ time * .02 ] * Parm2
  119.         //colored
  120.         //
  121.         zeroClamp
  122.     }
  123. }
  124.  
  125. lights/roundfire2
  126. {
  127.     {
  128.         forceHighQuality
  129.         map    lights/roundfire.tga
  130.         red     ( firetable2 [Parm4 + (time / 6) ]) * Parm0
  131.         green     ( firetable2 [Parm4 + (time / 6) ]) * Parm1
  132.         blue     ( firetable2 [Parm4 + (time / 6) ]) * Parm2
  133.         rotate    firelightrot [ time * (2 * parm3) ]
  134.         zeroClamp
  135.     }
  136. }
  137.  
  138. lights/popanimlight
  139. {
  140.  
  141.     
  142.     {
  143.         forceHighQuality
  144.         map textures/particles/rocketstripsmall.tga
  145.         red 1
  146.         blue 0
  147.         green .5
  148.  
  149.         scale 1 / 32 , 1
  150.         scroll table32[ time * 1.6 ] , 0
  151.         //rotate    ( time * -.2 )
  152.         zeroclamp
  153.     }
  154.  
  155.  
  156. }
  157.  
  158.  
  159. lights/dropship
  160. {    
  161.     {
  162.         forceHighQuality
  163.         map lights/dropship
  164.         colored
  165.         zeroclamp
  166.         
  167.     }
  168. }
  169.  
  170. lights/falloff_exp1
  171. {    
  172.     {
  173.         forceHighQuality
  174.         map lights/falloff_exp1
  175.         colored
  176.         zeroclamp
  177.         
  178.     }
  179. }
  180.  
  181. lights/falloff_exp2
  182. {    
  183.     {
  184.         forceHighQuality
  185.         map lights/falloff_exp2
  186.         colored
  187.         zeroclamp
  188.         
  189.     }
  190. }
  191.  
  192. lights/end_cin
  193. {    
  194.     {
  195.         forceHighQuality
  196.         map lights/end_cin
  197.         colored
  198.         zeroclamp
  199.         
  200.     }
  201. }
  202.  
  203.  
  204. lights/headlights
  205. {    
  206.     {
  207.         forceHighQuality
  208.         map lights/headlights
  209.         colored
  210.         zeroclamp
  211.         
  212.     }
  213. }
  214.  
  215.  
  216. lights/cloudscroll
  217. {    
  218.     {
  219.         forceHighQuality
  220.         map    lights/cloudscroll
  221.         colored
  222.         translate    time * 0 , time * -0.05
  223.         //rgb        storm2table[ time * .1 ]
  224.         
  225.     }
  226. }
  227.  
  228. lights/cloudscroll2
  229. {    
  230.     {
  231.         forceHighQuality
  232.         map    lights/cloudscroll2
  233.         colored
  234.         translate    time * .03 , time * .03
  235.         //rgb        storm2table[ time * .1 ]
  236.         
  237.     }
  238. }
  239.  
  240. lights/cloudscroll3
  241. {    
  242.     {
  243.         forceHighQuality
  244.         map    lights/cloudscroll3
  245.         colored
  246.         translate    time * 0 , time * -0.05
  247.         rgb        storm2table[ time * .1 ]
  248.         
  249.     }
  250. }
  251.  
  252. lights/cloudturn
  253. {    
  254.     {
  255.         forceHighQuality
  256.         map    lights/cloudturn
  257.         colored
  258.         rotate    time * -.03
  259.         zeroClamp
  260.         
  261.     }
  262. }
  263.  
  264. lights/stormy1
  265. {    
  266.  
  267.     {
  268.         forceHighQuality
  269.         map    lights/stormy2.tga
  270.         colored
  271.         rotate    time * .1
  272.         zeroClamp
  273.         rgb        stormtable[ time * .3 ]
  274.     }
  275.  
  276. }
  277.  
  278.  
  279. lights/lightgratelight2
  280. {    
  281.     {
  282.         forceHighQuality
  283.         map    lights/lightgratelight2
  284.         colored
  285.         zeroClamp
  286.     }
  287. }
  288.  
  289.  
  290.  
  291. lights/lightgratelight
  292. {    
  293.     {
  294.         forceHighQuality
  295.         map    lights/lightgratelight
  296.         colored
  297.         zeroClamp
  298.     }
  299. }
  300.  
  301.  
  302. lights/square_strobe_slow
  303. {
  304.     {
  305.         forceHighQuality
  306.         map        lights/squarelight1.tga
  307.         red         ( blinktable5 [Parm4 + (time * 0.075 * (6 * Parm3)) ]) * Parm0
  308.         green         ( blinktable5 [Parm4 + (time * 0.075 * (6 * Parm3)) ]) * Parm1
  309.         blue         ( blinktable5 [Parm4 + (time * 0.075 * (6 * Parm3)) ]) * Parm2
  310.         zeroclamp
  311.     }
  312. }
  313.  
  314.  
  315. lights/tempspectrum
  316. {
  317.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )
  318.     spectrum 2
  319.     {
  320.         forceHighQuality
  321.         map lights/tempspectrum1.tga
  322.         colored
  323.         rotate        time
  324.         zeroClamp
  325.     }
  326.     {
  327.         forceHighQuality
  328.         map lights/tempspectrum2.tga
  329.         colored
  330.         rotate        time*-.5
  331.         zeroClamp
  332.     }
  333.  
  334. }
  335.  
  336. lights/spectrum2Light_round
  337. {
  338.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )
  339.     spectrum 2    
  340.     {
  341.         forceHighQuality
  342.         map lights/spot01
  343.         colored
  344.         
  345.         zeroClamp
  346.     }
  347. }
  348.  
  349. lights/spectrum2Light
  350. {
  351.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )
  352.     spectrum 2    
  353.     {
  354.         forceHighQuality
  355.         map lights/fullambient.tga
  356.         colored
  357.         zeroClamp
  358.     }
  359. }
  360.  
  361. // this is placed in front of the guis on view weapons, like the plasma gun and machinegune
  362. lights/viewWeaponGuiLight
  363. {    
  364.     noShadows
  365.     {
  366.         forceHighQuality
  367.         map    lights/squareishlight.tga
  368.         red        0.1 * guiLightTable[ time ]
  369.         green    0.6 * guiLightTable[ time ]
  370.         blue    0.6 * guiLightTable[ time ]
  371.         zeroClamp
  372.     }
  373. }
  374.  
  375.  
  376. lights/plasmaglow
  377. {
  378.     noshadows
  379.     {
  380.         forceHighQuality
  381.         map    textures/particles/plasmalight.tga
  382.         //map    lights/floorvent01blue.tga
  383.         colored
  384.         rgb        bathroomtable[ time * .2 ]
  385.         rotate    time * -.1
  386.         zeroClamp
  387.     }
  388. }
  389.  
  390. lights/sentrylight
  391. {    
  392.     {
  393.         forceHighQuality
  394.         map    lights/sentrylight
  395.         rgb        bathroomtable[ time * .05 ] 
  396.         colored
  397.         //
  398.         zeroClamp
  399.  
  400.     }
  401. }
  402.  
  403.  
  404. lights/lanternglow
  405. {    
  406.     {
  407.         forceHighQuality
  408.         map    lights/lanternglow
  409.         rgb        bathroomtable[ time * .05 ] 
  410.         colored
  411.         //
  412.         zeroClamp
  413.  
  414.     }
  415. }
  416.  
  417. lights/newalphagrate1
  418. {    
  419.     {
  420.         forceHighQuality
  421.         map    lights/newalphagrate1
  422.         colored
  423.         zeroClamp
  424.     }
  425. }
  426.  
  427. lights/newalphagrate2
  428. {    
  429.     {
  430.         forceHighQuality
  431.         map    lights/newalphagrate2
  432.         colored
  433.         zeroClamp
  434.     }
  435. }
  436.  
  437. lights/newalphagrate3
  438. {    
  439.     {
  440.         forceHighQuality
  441.         map    lights/newalphagrate3
  442.         colored
  443.         zeroClamp
  444.     }
  445. }
  446.  
  447. lights/newalphagrate3b
  448. {    
  449.     {
  450.         forceHighQuality
  451.         map    lights/newalphagrate3b
  452.         colored
  453.         zeroClamp
  454.     }
  455. }
  456.  
  457. lights/newalphagrate4
  458. {    
  459.     {
  460.         forceHighQuality
  461.         map    lights/newalphagrate4
  462.         colored
  463.         zeroClamp
  464.     }
  465. }
  466.  
  467. lights/newalphagrate5
  468. {    
  469.     {
  470.         forceHighQuality
  471.         map    lights/newalphagrate5
  472.         colored
  473.         zeroClamp
  474.     }
  475. }
  476.  
  477.  
  478. lights/squareishlight
  479. {    
  480.     {
  481.         forceHighQuality
  482.         map    lights/squareishlight.tga
  483.         colored
  484.         zeroClamp
  485.     }
  486. }
  487.  
  488. lights/biground1
  489. {    
  490.     {
  491.         forceHighQuality
  492.         map    lights/biground1.tga
  493.         colored
  494.         zeroClamp
  495.     }
  496. }
  497.  
  498. lights/biground1_snd_spectrum
  499. {
  500.     spectrum 1    
  501.     {
  502.         forceHighQuality
  503.         map    lights/biground1.tga
  504.         red         sound * Parm0
  505.         green         sound * Parm1
  506.         blue         sound * Parm2
  507.         zeroClamp
  508.     }
  509. }
  510.  
  511. lights/biground1_global
  512. {    
  513.     {
  514.         forceHighQuality
  515.         map    lights/biground1.tga
  516.         colored
  517.         red        parm0 * global0
  518.         green    parm1 * global0
  519.         blue    parm2 * global0
  520.         zeroClamp
  521.     }
  522. }
  523.  
  524. lights/biground1_blamplight_cv
  525. {    
  526. {
  527.         forceHighQuality
  528.         map    lights/biground1.tga
  529.         colored
  530.         zeroClamp
  531.                 red     ((.1 * sintable [(time * ( 12 + Parm3 ) ) ]) +.9) * Parm0
  532.                 green   ((.1 * sintable [(time * ( 12 + Parm3 ) ) ]) +.9) * Parm1
  533.                 blue    ((.1 * sintable [(time * ( 12 + Parm3 ) ) ]) +.9) * Parm2
  534.  
  535.     }
  536. }
  537.  
  538. lights/biground1_parmsndflicker
  539. {    
  540.     {
  541.         if ( parm7 == 0 )
  542.         forceHighQuality
  543.         map    lights/biground1.tga
  544.         colored
  545.         zeroClamp
  546.     }
  547.  
  548.     {
  549.         if ( parm7 != 0 )
  550.         forceHighQuality
  551.         map    lights/biground1.tga
  552.         red         sound * Parm0
  553.         green         sound * Parm1
  554.         blue         sound * Parm2
  555.         zeroClamp
  556.     }
  557. }
  558.  
  559. lights/flashlight4eric
  560. {
  561.     {
  562.         forceHighQuality
  563.         map    lights/flashlight4eric.tga
  564.         
  565.         zeroClamp
  566.         //colored
  567.         //rgb        eyestable[ time * .05 ] 
  568.     }
  569. }
  570.  
  571.  
  572. lights/grate8
  573. {    
  574.     {
  575.         forceHighQuality
  576.         map    lights/grate8.tga
  577.         colored
  578.         zeroClamp
  579.     }
  580. }
  581.  
  582. lights/grate8sqr
  583. {    
  584.     {
  585.         forceHighQuality
  586.         map    lights/grate8sqr.tga
  587.         colored
  588.         zeroClamp
  589.     }
  590. }
  591.  
  592. lights/grate8sqr_blinky
  593. {    
  594.     {
  595.         forceHighQuality
  596.         map    lights/grate8sqr.tga
  597.         colored
  598.         red     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm0
  599.         green     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm1
  600.         blue     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm2
  601.         zeroClamp
  602.     }
  603. }
  604.  
  605. lights/grate7
  606. {    
  607.     {
  608.         forceHighQuality
  609.         map    lights/grate7.tga
  610.         colored
  611.         zeroClamp
  612.     }
  613. }
  614.  
  615. lights/grate7_blinky
  616. {    
  617.     {
  618.         forceHighQuality
  619.         map    lights/grate7.tga
  620.         colored
  621.         red     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm0
  622.         green     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm1
  623.         blue     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm2
  624.         zeroClamp
  625.     }
  626. }
  627.  
  628. lights/cavsolarlight
  629. {    
  630.     {
  631.         forceHighQuality
  632.         map    lights/cavsolarlight.tga
  633.         colored
  634.         zeroClamp
  635.     }
  636. }
  637.  
  638.  
  639.  
  640. lights/hellgate1_colorme
  641. {    
  642.  
  643.     {
  644.         forceHighQuality
  645.         map    lights/hellgate1_colorme.tga
  646.         red            fireballtable[ time * .04 ] * Parm0 
  647.         green        fireballtable[ time * .04 ] * Parm1 
  648.         blue        fireballtable[ time * .04 ] * Parm2
  649.         rotate    time * .05
  650.         zeroClamp
  651.     }
  652.  
  653. }
  654.  
  655.  
  656. lights/hellgate1
  657. {    
  658.  
  659.     {
  660.         forceHighQuality
  661.         map    lights/hellgate1.tga
  662.         colored
  663.         rotate    time * .05
  664.         zeroClamp
  665.         rgb        fireballtable[ time * .04 ]
  666.     }
  667.  
  668. }
  669.  
  670.  
  671. lights/vivlight
  672. {    
  673.  
  674.     {
  675.         forceHighQuality
  676.         map    lights/vivlight.tga
  677.         colored
  678.         zeroClamp
  679.     }
  680.  
  681. }
  682.  
  683.  
  684. lights/fullambient
  685. {
  686.     ambientLight
  687.     lightFalloffImage    makeintensity( lights/squarelight1c.tga )
  688.     {
  689.         forceHighQuality
  690.         map lights/fullambient.tga
  691.         colored
  692.         zeroClamp
  693.     }
  694. }
  695.  
  696. lights/grate6
  697. {    
  698.  
  699.     {
  700.         forceHighQuality
  701.         map    lights/grate6.tga
  702.         colored
  703.         zeroClamp
  704.     }
  705. }
  706.  
  707. lights/triangle2
  708. {    
  709.     {
  710.         forceHighQuality
  711.         map    lights/triangle1.tga
  712.         red            blamptable[ time * 5 ] * Parm0 
  713.         green        blamptable[ time * 5 ] * Parm1 
  714.         blue        blamptable[ time * 5 ] * Parm2
  715.         zeroClamp
  716.     }
  717. }
  718.  
  719. lights/triangle1
  720. {    
  721.  
  722.     {
  723.         forceHighQuality
  724.         map    lights/triangle1.tga
  725.         colored
  726.         zeroClamp
  727.     }
  728. }
  729.  
  730.  
  731. lights/mch
  732. {    
  733.  
  734.     {
  735.         forceHighQuality
  736.         map    lights/mch.tga
  737.         colored
  738.         zeroClamp
  739.     }
  740. }
  741.  
  742. lights/rred
  743. {    
  744.  
  745.     {
  746.         forceHighQuality
  747.         map    lights/rred.tga
  748.         colored
  749.         zeroClamp
  750.     }
  751. }
  752.  
  753. lights/pentflame
  754. {    
  755.  
  756.     {
  757.         forceHighQuality
  758.         map    lights/pentflame.tga
  759.         colored
  760.         rotate    time * .2
  761.         zeroClamp
  762.     }
  763. }
  764.  
  765. lights/pentagram
  766. {    
  767.     qer_editorimage textures/decals/pentagramfx.tga
  768.     {
  769.         forceHighQuality
  770.         map    textures/decals/pentagramfx.tga
  771.         colored
  772.  
  773.         zeroClamp
  774.     }
  775. }
  776.  
  777.  
  778. lights/strobevent01
  779. {    
  780.     {
  781.         forceHighQuality
  782.         map    lights/strobevent01.tga 
  783.         colored
  784.         rgb        strobetable[ time * 2 ]
  785.         zeroClamp
  786.     }
  787. }
  788.  
  789.  
  790. lights/impflash
  791. {
  792.     {
  793.         forceHighQuality        
  794.         map lights/impflash.tga
  795.         zeroClamp
  796.         rotate    time * 3.7
  797.         rgb        flickerblink[ time * 1 ]
  798.         colored
  799.     }
  800. }
  801.  
  802. lights/redspawnflash
  803. {
  804.     {
  805.         forceHighQuality        
  806.         map lights/redspawnflash.tga
  807.         zeroClamp
  808.         rotate    time * 3.7
  809.         colored
  810.         //rgb        flickerblink[ time * 1 ]
  811.     }
  812. }
  813.  
  814. lights/spectrumspawn30
  815. {
  816.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )
  817.     spectrum 30
  818.     {
  819.         forceHighQuality
  820.         map lights/squarelight1.tga
  821.         colored
  822.         zeroClamp
  823.     }
  824. }
  825.  
  826. lights/spectrumspawn31
  827. {
  828.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )
  829.     spectrum 31
  830.     {
  831.         forceHighQuality
  832.         map lights/squarelight1.tga
  833.         colored
  834.         zeroClamp
  835.     }
  836. }
  837.  
  838.  
  839. lights/spawnflash
  840. {
  841.     {
  842.         forceHighQuality        
  843.         map lights/spawnflash.tga
  844.         zeroClamp
  845.         rotate    time * 3.7
  846.         colored
  847.         //rgb        flickerblink[ time * 1 ]
  848.     }
  849. }
  850.  
  851.  
  852. lights/baronflash
  853. {
  854.     {
  855.         forceHighQuality        
  856.         map lights/baronflash.tga
  857.         zeroClamp
  858.         rotate    time * 3.7
  859.         colored
  860.         //rgb        flickerblink[ time * 1 ]
  861.     }
  862. }
  863.  
  864. lights/flashlight4
  865. {
  866.     {
  867.         forceHighQuality
  868.         map    lights/flashlight4.tga
  869.         
  870.         zeroClamp
  871.         //colored
  872.         //rgb        eyestable[ time * .05 ] 
  873.     }
  874. }
  875. lights/flashlight6
  876. {
  877.     {
  878.         forceHighQuality
  879.         map    lights/flashlight6.tga
  880.         
  881.         zeroClamp
  882.         //colored
  883.         //rgb        eyestable[ time * .05 ] 
  884.     }
  885. }
  886. lights/machinelight
  887. {
  888.     {
  889.         forceHighQuality
  890.         map    lights/machinelight.tga
  891.         
  892.         zeroClamp
  893.         //colored
  894.         //rgb        eyestable[ time * .05 ] 
  895.     }
  896. }
  897. lights/machinelight
  898. {
  899.     {
  900.         forceHighQuality
  901.         map    lights/machinelight.tga
  902.         
  903.         zeroClamp
  904.         //colored
  905.         //rgb        eyestable[ time * .05 ] 
  906.     }
  907. }
  908. lights/lasersight
  909. {
  910.     {
  911.         forceHighQuality
  912.         map    lights/lasersight.tga
  913.         
  914.         zeroClamp
  915.         colored
  916.         //rgb        eyestable[ time * .05 ] 
  917.     }
  918. }
  919.  
  920. lights/chainlight
  921. {
  922.     {
  923.         forceHighQuality
  924.         map    lights/chainlight.tga
  925.         
  926.         zeroClamp
  927.         //colored
  928.         //rgb        eyestable[ time * .05 ] 
  929.     }
  930. }
  931.  
  932. lights/plasmalight
  933. {
  934.     {
  935.         forceHighQuality
  936.         map    lights/plasmalight.tga
  937.         
  938.         zeroClamp
  939.         colored
  940.         //rgb        eyestable[ time * .05 ] 
  941.     }
  942. }
  943.  
  944. lights/defaultPointLight
  945. {
  946.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )    // this will also be the falloff for any
  947.                                                                     // point light shaders that don't specify one
  948.     {
  949.         forceHighQuality
  950.         map lights/squarelight1.tga
  951.         colored
  952.         zeroClamp
  953.     }
  954. }
  955.  
  956. lights/default3DLight        // just for research
  957. {
  958.     {
  959.         forceHighQuality
  960.         map _cubicLight
  961.         colored
  962.         zeroClamp
  963.     }
  964. }
  965.  
  966. lights/desertambientlight
  967. {
  968.     ambientLight
  969.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )
  970.     {
  971.         forceHighQuality
  972.         map lights/squarelight.tga
  973.         red     ( deserttable [Parm4 + (time * 0.1)]) * Parm0
  974.         green     ( deserttable [Parm4 + (time * 0.1)]) * Parm1
  975.         blue     ( deserttable [Parm4 + (time * 0.1)]) * Parm2    
  976.         zeroClamp
  977.     }
  978. }
  979.  
  980. lights/desertlight2
  981. {
  982.     {
  983.         forceHighQuality
  984.         map    lights/desertlight.tga
  985.         colored
  986.         rotate    ( time * parm3)
  987.         zeroClamp
  988.     }
  989. }
  990.  
  991. lights/desertlight
  992. {
  993.     {
  994.         forceHighQuality
  995.         map    lights/desertlight.tga
  996.         red     ( deserttable [Parm4 + (time * 0.1) ]) * Parm0
  997.         green     ( deserttable [Parm4 + (time * 0.1) ]) * Parm1
  998.         blue     ( deserttable [Parm4 + (time * 0.1) ]) * Parm2    
  999.         rotate    ( time * 0.25 )
  1000.         zeroClamp
  1001.     }
  1002. }
  1003.  
  1004. lights/defaultProjectedLight
  1005. {
  1006.     lightFalloffImage    _noFalloff        // by default, stay bright almost all the way to the end
  1007.     {
  1008.         forceHighQuality
  1009.         map lights/squarelight1.tga
  1010.         colored
  1011.         zeroClamp
  1012.     }
  1013. }
  1014.  
  1015.  
  1016. // an ambient light will do non-directional bump mapping, and won't have specular lighting
  1017. // or shadows
  1018. lights/ambientLight
  1019. {
  1020.     ambientLight
  1021.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )
  1022.     {
  1023.         forceHighQuality
  1024.         map lights/squarelight1.tga
  1025.         colored
  1026.         zeroClamp
  1027.     }
  1028. }
  1029.  
  1030.  
  1031. lights/ambientLight2
  1032. {
  1033.     ambientLight
  1034.     lightFalloffImage    makeintensity( lights/squarelight1a.tga )
  1035.     {
  1036.         forceHighQuality
  1037.         map lights/squarelight.tga
  1038.         colored
  1039.         zeroClamp
  1040.     }
  1041. }
  1042.  
  1043.  
  1044. //parm 3=flicker speed    parm 4=offset
  1045.  
  1046. lights/nofalloff
  1047. {
  1048.     {
  1049.         forceHighQuality
  1050.         map    lights/nofalloff.tga
  1051.         colored
  1052.         zeroClamp
  1053.     }
  1054. }
  1055.  
  1056. lights/qcfloorvent01x
  1057. {
  1058.     {
  1059.         forceHighQuality
  1060.         map    lights/qcfloorvent01x.tga
  1061.         colored
  1062.         rgb        eyestable[ time * 1 ]
  1063.         zeroClamp
  1064.     }
  1065. }
  1066.  
  1067.  
  1068.  
  1069. lights/roundfire
  1070. {
  1071.     {
  1072.         forceHighQuality
  1073.         map    lights/roundfire.tga
  1074.         red     ( firetable [Parm4 + (time / 6 * (Parm3)) ]) * Parm0
  1075.         green     ( firetable [Parm4 + (time / 6 * (Parm3)) ]) * Parm1
  1076.         blue     ( firetable [Parm4 + (time / 6 * (Parm3)) ]) * Parm2
  1077.         rotate    firelightrot [ time * 2 ]
  1078.         zeroClamp
  1079.     }
  1080. }
  1081.  
  1082. lights/floorpgrate
  1083. {
  1084.     {
  1085.         forceHighQuality
  1086.         map    lights/floorpgrate.tga
  1087.         colored
  1088.         zeroClamp
  1089.         
  1090.     }
  1091. }
  1092.  
  1093. lights/qc_comj
  1094. {
  1095.     {
  1096.         forceHighQuality
  1097.         map    lights/qc_comj.tga
  1098.         colored
  1099.         rgb        eyestable[ time * 1.1 ]
  1100.         zeroClamp
  1101.         rotate    time * 0.2
  1102.     }
  1103. }
  1104.  
  1105.  
  1106.  
  1107. lights/blamplight2
  1108. {    
  1109.     {
  1110.         forceHighQuality
  1111.         //map    makeintensity( lights/blamplight2.tga )
  1112.         map    lights/blamplight2.tga 
  1113.         colored
  1114.         rgb        bathroomtable[ time *.3 ]
  1115.         zeroClamp
  1116.     }
  1117. }
  1118.  
  1119.  
  1120. lights/killtest
  1121. {
  1122.     {
  1123.         if ( parm6 == 1 )
  1124.         forceHighQuality
  1125.         map        lights/squarelight1.tga
  1126.         red         ( ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * (Parm0 * acceleratorfade [ time / 7 ] ) )
  1127.         green         ( ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * (Parm1 * acceleratorfade [ time / 7 ] ) )
  1128.         blue         ( ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * (Parm2 * acceleratorfade [ time / 7 ] ) )
  1129.         zeroclamp
  1130.     }
  1131.     {
  1132.         if ( parm6 == 0 )
  1133.         forceHighQuality
  1134.         map        lights/squarelight1.tga
  1135.         red         ( ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * Parm0 )
  1136.         green         ( ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * Parm1 )
  1137.         blue         ( ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * Parm2 )
  1138.         zeroclamp
  1139.     }
  1140. }
  1141.  
  1142. lights/floorvent01x_cv
  1143. {
  1144.     {
  1145.         forceHighQuality
  1146.         map    lights/floorvent01x_cv.tga
  1147.         colored
  1148.         red         ( flickerblink [Parm4 + (time * (1 * Parm3)) ]) * Parm0
  1149.         green         ( flickerblink [Parm4 + (time * (1 * Parm3)) ]) * Parm1
  1150.         blue         ( flickerblink [Parm4 + (time * (1 * Parm3)) ]) * Parm2
  1151.         //rgb        eyestable[ time * 1 ]
  1152.         zeroClamp
  1153.     }
  1154. }
  1155.  
  1156. lights/fanlightgrateSC
  1157. {
  1158.     {
  1159.         forceHighQuality
  1160.         if ( global0 == 0 )
  1161.         map        lights/fangrate.tga
  1162.         colored
  1163.         zeroclamp
  1164.     }
  1165.     {
  1166.         forceHighQuality
  1167.         if ( global0 == 0 )
  1168.         map    lights/fanblade.tga
  1169.         colored
  1170.         zeroclamp
  1171.         rotate    time * -1
  1172.     }
  1173.     {
  1174.         if ( global0 != 0 )
  1175.         forceHighQuality
  1176.         map        lights/fangrate.tga
  1177.         red    ( Parm0 * acceleratorflashtable2[ ( time - global1 ) / 7 ] )
  1178.         green    ( Parm1 * acceleratorflashtable2[ ( time - global1 ) / 7 ] )
  1179.         blue    ( Parm2 * acceleratorflashtable2[ ( time - global1 ) / 7 ] )
  1180.         zeroclamp
  1181.     }
  1182.     {
  1183.         if ( global0 != 0 )
  1184.         forceHighQuality
  1185.         map    lights/fanblade.tga
  1186.         red    ( Parm0 * acceleratorflashtable2[ ( time - global1 ) / 7 ] )
  1187.         green    ( Parm1 * acceleratorflashtable2[ ( time - global1 ) / 7 ] )
  1188.         blue    ( Parm2 * acceleratorflashtable2[ ( time - global1 ) / 7 ] )
  1189.         zeroclamp
  1190.         rotate    time * -1
  1191.     }
  1192. }
  1193.  
  1194. lights/fanblade3
  1195. {
  1196.     {
  1197.         forceHighQuality
  1198.         map        lights/fanblade3.tga
  1199.         colored
  1200.         zeroclamp
  1201.         rotate    (time * -1) * Parm3 + Parm4
  1202.     }
  1203. }
  1204.  
  1205. lights/fanlightgrate
  1206. {
  1207.     {
  1208.         forceHighQuality
  1209.         map        lights/fanblade.tga
  1210.         colored
  1211.         zeroclamp
  1212.         rotate    time * -1
  1213.     }
  1214.     {
  1215.         forceHighQuality
  1216.         map        lights/fangrate.tga
  1217.         colored
  1218.         zeroclamp
  1219.     }
  1220. }
  1221.  
  1222. lights/square_blast
  1223. {
  1224.     {
  1225.         forceHighQuality
  1226.         map        lights/squarelight1.tga
  1227.         red         ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * Parm0
  1228.         green         ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * Parm1
  1229.         blue         ( blasttable [Parm4 + (time / 6 * (Parm3)) ]) * Parm2
  1230.         zeroclamp
  1231.     }
  1232. }
  1233.  
  1234. lights/square_strobe
  1235. {
  1236.     {
  1237.         forceHighQuality
  1238.         map        lights/squarelight1.tga
  1239.         red         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm0
  1240.         green         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm1
  1241.         blue         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm2
  1242.         zeroclamp
  1243.     }
  1244. }
  1245.  
  1246. lights/square_brokenneon2
  1247. {    
  1248.     {
  1249.         forceHighQuality
  1250.         map        lights/squarelight1.tga
  1251.         red         ( neontable2 [Parm4 + (time * (.15 * Parm3)) ]) * Parm0
  1252.         green         ( neontable2 [Parm4 + (time * (.15 * Parm3)) ]) * Parm1
  1253.         blue         ( neontable2 [Parm4 + (time * (.15 * Parm3)) ]) * Parm2
  1254.         zeroclamp
  1255.     }
  1256. }
  1257.  
  1258. lights/square_brokenneon1
  1259. {    
  1260.     {
  1261.         forceHighQuality
  1262.         map        lights/squarelight1.tga
  1263.         red         ( neontable1 [Parm4 + (time * (.2 * Parm3)) ]) * Parm0
  1264.         green         ( neontable1 [Parm4 + (time * (.2 * Parm3)) ]) * Parm1
  1265.         blue         ( neontable1 [Parm4 + (time * (.2 * Parm3)) ]) * Parm2
  1266.         zeroclamp
  1267.     }
  1268. }
  1269.  
  1270. lights/square_flicker2
  1271. {    
  1272.     {
  1273.         forceHighQuality
  1274.         map        lights/squarelight1.tga
  1275.         red         ( flashtable [Parm4 + (time * (.25 * Parm3)) ]) * Parm0
  1276.         green         ( flashtable [Parm4 + (time * (.25 * Parm3)) ]) * Parm1
  1277.         blue         ( flashtable [Parm4 + (time * (.25 * Parm3)) ]) * Parm2
  1278.         zeroclamp
  1279.     }
  1280. }
  1281.  
  1282. lights/square_flicker
  1283. {    
  1284.     {
  1285.         forceHighQuality
  1286.         map        lights/squarelight1.tga
  1287.         red         ((.25 * blinktable [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm0
  1288.         green         ((.25 * blinktable [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm1
  1289.         blue         ((.25 * blinktable [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm2
  1290.         zeroclamp
  1291.     }
  1292. }
  1293.  
  1294. lights/square_flicker3
  1295. {    
  1296.     {
  1297.         forceHighQuality
  1298.         map        lights/squarelight1.tga
  1299.         red         ((.25 * blinktable3 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm0
  1300.         green         ((.25 * blinktable3 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm1
  1301.         blue         ((.25 * blinktable3 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm2
  1302.         zeroclamp
  1303.     }
  1304. }
  1305.  
  1306. lights/square_flicker3_spectrum
  1307. {    
  1308.     spectrum 1
  1309.     {
  1310.         forceHighQuality
  1311.         map        lights/squarelight1.tga
  1312.         red         ((.25 * blinktable3 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm0
  1313.         green         ((.25 * blinktable3 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm1
  1314.         blue         ((.25 * blinktable3 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm2
  1315.         zeroclamp
  1316.     }
  1317. }
  1318.  
  1319. lights/square_flicker4
  1320. {    
  1321.     {
  1322.         forceHighQuality
  1323.         map        lights/squarelight1.tga
  1324.         red         ((.25 * blinktable4 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm0
  1325.         green         ((.25 * blinktable4 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm1
  1326.         blue         ((.25 * blinktable4 [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm2
  1327.         zeroclamp
  1328.     }
  1329. }
  1330.  
  1331. lights/round_sin
  1332. {    
  1333.     {
  1334.         forceHighQuality
  1335.         map            lights/round.tga
  1336.         red         ( sintable [Parm4 + (time * Parm3)] ) * Parm0
  1337.         green         ( sintable [Parm4 + (time * Parm3)] ) * Parm1
  1338.         blue         ( sintable [Parm4 + (time * Parm3)] ) * Parm2
  1339.         zeroclamp
  1340.     }
  1341. }
  1342.  
  1343. lights/round_strobe
  1344. {    
  1345.     {
  1346.         forceHighQuality
  1347.         map        lights/round.tga
  1348.         red         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm0
  1349.         green         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm1
  1350.         blue         ( blinktable2 [Parm4 + (time * (6 * Parm3)) ]) * Parm2
  1351.         zeroclamp
  1352.     }
  1353. }
  1354.  
  1355. lights/round_brokenneon2
  1356. {    
  1357.     {
  1358.         forceHighQuality
  1359.         map        lights/round.tga
  1360.         red         ( neontable2 [Parm4 + (time * (.15 * Parm3)) ]) * Parm0
  1361.         green     ( neontable2 [Parm4 + (time * (.15 * Parm3)) ]) * Parm1
  1362.         blue         ( neontable2 [Parm4 + (time * (.15 * Parm3)) ]) * Parm2
  1363.         zeroclamp
  1364.     }
  1365. }
  1366.  
  1367. lights/round_brokenneon1
  1368. {    
  1369.     {
  1370.         forceHighQuality
  1371.         map        lights/round.tga
  1372.         red         ( neontable1 [Parm4 + (time * (.2 * Parm3)) ]) * Parm0
  1373.         green     ( neontable1 [Parm4 + (time * (.2 * Parm3)) ]) * Parm1
  1374.         blue         ( neontable1 [Parm4 + (time * (.2 * Parm3)) ]) * Parm2
  1375.         zeroclamp
  1376.     }
  1377. }
  1378.  
  1379. lights/round_flicker2
  1380. {    
  1381.     {
  1382.         forceHighQuality
  1383.         map        lights/round.tga
  1384.         red         ( flashtable [Parm4 + (time * (.25 * Parm3)) ]) * Parm0
  1385.         green     ( flashtable [Parm4 + (time * (.25 * Parm3)) ]) * Parm1
  1386.         blue         ( flashtable [Parm4 + (time * (.25 * Parm3)) ]) * Parm2
  1387.         zeroclamp
  1388.     }
  1389. }
  1390.  
  1391. lights/round_flicker
  1392. {    
  1393.     {
  1394.         forceHighQuality
  1395.         map        lights/round.tga
  1396.         red         ((.25 * blinktable [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm0
  1397.         green     ((.25 * blinktable [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm1
  1398.         blue         ((.25 * blinktable [Parm4 + (time * (15 * Parm3)) ]) +.75) * Parm2
  1399.         zeroclamp
  1400.     }
  1401. }
  1402.  
  1403. lights/mlight01
  1404.  
  1405. {
  1406.     {
  1407.         forceHighQuality
  1408.         map    lights/mlight01.tga
  1409.         colored
  1410.         zeroClamp
  1411.     }
  1412. }
  1413.  
  1414. lights/blur_cv
  1415. {
  1416.     {
  1417.         forceHighQuality
  1418.         map    lights/blur_cv.tga
  1419.         zeroClamp
  1420.         colored
  1421.     }
  1422. }
  1423.  
  1424.  
  1425. lights/blamplight_cv
  1426. {
  1427.     {
  1428.         forceHighQuality
  1429.         map    lights/blamplight_cv.tga
  1430.         zeroClamp
  1431.         colored
  1432.         red     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm0
  1433.         green     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm1
  1434.         blue     ((.1 * sintable [.15 + (time * 12) ]) +.9) * Parm2
  1435.     }
  1436. }
  1437.  
  1438. lights/blamplight_still_cv
  1439. {
  1440.     {
  1441.         forceHighQuality
  1442.         map    lights/blamplight_cv.tga
  1443.         zeroClamp
  1444.         colored
  1445.     }
  1446. }
  1447.  
  1448. lights/xblamplight_cv
  1449. {
  1450.     {
  1451.         forceHighQuality
  1452.         map    lights/blamplight_cv.tga
  1453.         colored
  1454.         zeroClamp
  1455.                 red     ((.1 * sintable [(time * ( 12 + Parm3 ) ) ]) +.9) * Parm0
  1456.                 green   ((.1 * sintable [(time * ( 12 + Parm3 ) ) ]) +.9) * Parm1
  1457.                 blue    ((.1 * sintable [(time * ( 12 + Parm3 ) ) ]) +.9) * Parm2
  1458.  
  1459.     }
  1460. }
  1461.  
  1462. lights/duolight02_cv
  1463. {
  1464.     {
  1465.         forceHighQuality
  1466.         map    lights/duolight02grey.tga
  1467.         colored
  1468.  
  1469.         red     ( neontable1 [Parm4 + (time * (1 * Parm3)) ]) * Parm0 * sound
  1470.         green     ( neontable1 [Parm4 + (time * (1 * Parm3)) ]) * Parm1 * sound
  1471.         blue     ( neontable1 [Parm4 + (time * (1 * Parm3)) ]) * Parm2 * sound
  1472.  
  1473. //        red     neontable1 [ time * 1 ] * Parm0
  1474. //        green     neontable1 [ time * 1 ] * Parm1
  1475. //        blue     neontable1 [ time * 1 ] * Parm2
  1476.  
  1477.         //zeroClamp
  1478.     }
  1479. }
  1480.  
  1481.  
  1482. lights/bspot01_cv
  1483. {
  1484.     {
  1485.         forceHighQuality
  1486.         map    lights/bspot01_cv.tga
  1487.         zeroClamp
  1488.         colored
  1489.         red     blighttable [ time * .2 ] * Parm0
  1490.         green     blighttable [ time * .2 ] * Parm1
  1491.         blue     blighttable [ time * .2 ] * Parm2
  1492.     }
  1493. }
  1494.  
  1495. lights/xbspot01_cv
  1496. {
  1497.     {
  1498.         forceHighQuality
  1499.         map    lights/bspot01_cv.tga
  1500.         zeroClamp
  1501.         colored
  1502.         red     blighttable [ (time * .2) + Parm3 ] * Parm0
  1503.         green     blighttable [ (time * .2) + Parm3 ] * Parm1
  1504.         blue     blighttable [ (time * .2) + Parm3 ] * Parm2
  1505.     }
  1506. }
  1507.  
  1508. lights/square
  1509. {
  1510.     {
  1511.         forceHighQuality
  1512.         map    lights/squarelight1.tga
  1513.         colored
  1514.         zeroclamp
  1515.         
  1516.     }
  1517. }
  1518.  
  1519. lights/rotate
  1520. {
  1521.  
  1522.     {
  1523.         forceHighQuality
  1524.         map    lights/rotate3.tga
  1525.         colored
  1526.         rotate    time * 1
  1527.         zeroClamp
  1528.     }
  1529.     {
  1530.         forceHighQuality
  1531.         map    lights/rotate3.tga
  1532.         colored
  1533.         rotate    time * 1.6
  1534.         zeroClamp
  1535.     }
  1536.  
  1537. }
  1538.  
  1539. lights/hangar_rotate
  1540. {
  1541.  
  1542.     {
  1543.         forceHighQuality
  1544.         map    lights/rotate3.tga
  1545.         colored
  1546.         rotate    time * 1
  1547.         zeroClamp
  1548.     }
  1549.  
  1550. }
  1551.  
  1552. lights/bspot01
  1553. {
  1554.     {
  1555.         forceHighQuality
  1556.         map    lights/bspot01.tga
  1557.         zeroClamp
  1558.         colored
  1559.                 rgb        blighttable[ time * .2 ]
  1560.     }
  1561. }
  1562.  
  1563. lights/spot01_dblbright
  1564. {
  1565.     {
  1566.         forceHighQuality
  1567.         map    lights/spot01.tga
  1568.         colored
  1569.         zeroClamp
  1570.         
  1571.     }
  1572.     {
  1573.         forceHighQuality
  1574.         map    lights/spot01.tga
  1575.         colored
  1576.         zeroClamp
  1577.         
  1578.     }
  1579. }
  1580.  
  1581. lights/spot01
  1582. {
  1583.     {
  1584.         forceHighQuality
  1585.         map    lights/spot01.tga
  1586.         colored
  1587.         zeroClamp
  1588.         
  1589.     }
  1590. }
  1591.  
  1592. lights/spot01_global
  1593. // uses global parms
  1594. {
  1595.     {
  1596.         forceHighQuality
  1597.         map    lights/spot01.tga
  1598.         red        parm0 * global0
  1599.         green    parm1 * global1
  1600.         blue    parm2 * global2
  1601.         zeroClamp
  1602.     }
  1603. }
  1604.  
  1605. lights/flash
  1606. {
  1607.     {
  1608.         forceHighQuality
  1609.         map    lights/light.tga
  1610.         rgb        flashtable[ time ]
  1611.         zeroClamp
  1612.     }
  1613. }
  1614.  
  1615. lights/onewaydown
  1616. {    //falloff only goes in one direction.  should get rid of this once planar lights are implemented.
  1617.     {
  1618.         forceHighQuality
  1619.         map    makeintensity( lights/onewaydown.tga )
  1620.         zeroClamp
  1621.     }
  1622. }
  1623.  
  1624. lights/oneway
  1625. {    //falloff only goes in one direction.  should get rid of this once planar lights are implemented.
  1626.     {
  1627.         forceHighQuality
  1628.         map    makeintensity( lights/oneway.tga )
  1629.         zeroClamp
  1630.     }
  1631. }
  1632.  
  1633. lights/blinds02
  1634. {
  1635.     {
  1636.         forceHighQuality
  1637.         map    lights/blinds02.tga
  1638.         colored
  1639.         rgb        eyestable[ time * .01 ]
  1640.         zeroClamp
  1641.     }
  1642. }
  1643.  
  1644. lights/duolight02
  1645. {
  1646.     {
  1647.         forceHighQuality
  1648.         map    lights/duolight01.tga
  1649.         colored
  1650.         //red        (neontable1[ time * 3 ])  * parm0
  1651.         //green    (neontable1[ time * 3 ])  * parm1
  1652.         //blue    (neontable1[ time * 3 ])  * parm2
  1653.         zeroClamp                        
  1654.     }                                    
  1655. }
  1656.  
  1657.  
  1658. lights/duolight01
  1659. {
  1660.     {
  1661.         forceHighQuality
  1662.         map    lights/duolight01.tga
  1663.         red        eyestable[ time * .01 ]
  1664.         green      eyestable[ time * .01 ]
  1665.         blue       eyestable[ time * .01 ]
  1666.         zeroClamp
  1667.     }
  1668. }
  1669.  
  1670. lights/blamplight_tile4
  1671. {    
  1672.     {
  1673.         forceHighQuality
  1674.         map    lights/blamplighttile.tga 
  1675.         red        blamptable[ time * .5 ] * parm0
  1676.         green    blamptable[ time * .5 ] * parm1
  1677.         blue    blamptable[ time * .5 ] * parm2
  1678.         zeroClamp
  1679.     }
  1680. }
  1681.  
  1682. lights/blamplight
  1683. {    
  1684.     {
  1685.         forceHighQuality
  1686.         //map    makeintensity( lights/blamplight.tga )
  1687.         map    lights/blamplight.tga 
  1688.         colored
  1689.         rgb        blamptable[ time * 5 ]
  1690.         zeroClamp
  1691.     }
  1692. }
  1693.  
  1694. lights/blamplighte3
  1695. {    
  1696.     {
  1697.  
  1698.         forceHighQuality        
  1699.         map    lights/blamplighte3.tga 
  1700.         colored
  1701.         rgb        bathroom2table[ time * 1 ]
  1702.         zeroClamp
  1703.     }
  1704. }
  1705.  
  1706. lights/triangle
  1707. {    
  1708.     {
  1709.         forceHighQuality
  1710.         map    makeintensity( lights/triangle.tga )
  1711.         colored
  1712.         zeroClamp
  1713.     }
  1714. }
  1715.  
  1716. lights/squarelight_split
  1717. {    
  1718.     {
  1719.         forceHighQuality
  1720.         map    makeintensity( lights/squarelight_split.tga )
  1721.         colored
  1722.         zeroClamp
  1723.     }
  1724. }
  1725.  
  1726. lights/squarelight1a
  1727. {    
  1728.     {
  1729.         forceHighQuality
  1730.         map    makeintensity( lights/squarelight1a.tga )
  1731.         colored
  1732.         zeroClamp
  1733.     }
  1734. }
  1735.  
  1736. lights/mars_light
  1737. {
  1738.     {
  1739.         forceHighQuality
  1740.         map    lights/mars.tga
  1741.         colored
  1742.         rgb        eyestable[ time * 1 ]
  1743.         zeroClamp
  1744.     }
  1745. }
  1746.  
  1747. lights/brucedemo2
  1748. {
  1749.     {
  1750.         forceHighQuality
  1751.         map    lights/grate5.tga
  1752.         colored
  1753.         rgb        eyestable[ time * 3 ]
  1754.         zeroClamp
  1755.     }
  1756. }
  1757.  
  1758. lights/brucedemo1
  1759. {
  1760.     {
  1761.         forceHighQuality
  1762.         map    lights/crap02.tga
  1763.         colored
  1764.         //rgb        blinktable[ time * 1.6 ]
  1765.         zeroClamp
  1766.     }
  1767. }
  1768.  
  1769.  
  1770. lights/floorvent01blue
  1771. {
  1772.     {
  1773.         forceHighQuality
  1774.         map    lights/floorvent01blue.tga
  1775.         colored
  1776.         rgb        eyestable[ time * .8 ]
  1777.         zeroClamp
  1778.     }
  1779. }
  1780.  
  1781. lights/floorvent01int
  1782. {
  1783.     {
  1784.         forceHighQuality
  1785.         map    lights/floorvent01int.tga
  1786.         colored
  1787.         rgb        eyestable[ time * 1.1 ]
  1788.         zeroClamp
  1789.     }
  1790. }
  1791.  
  1792. lights/sarge_talk
  1793.  
  1794. {
  1795.     {
  1796.         forceHighQuality
  1797.         map    lights/grate5.tga
  1798.         colored
  1799.         //scroll time * .8 , time * .3
  1800.         rotate    time * 1.1
  1801.         rgb        firetable[ time * .5 ]
  1802.         zeroClamp
  1803.     }
  1804. }
  1805.  
  1806. lights/jethro_spot1
  1807.  
  1808. {
  1809.     {
  1810.         forceHighQuality
  1811.         map    lights/grate5.tga
  1812.         colored
  1813.         rotate    time * .05
  1814.         zeroClamp
  1815.     }
  1816. }
  1817.  
  1818. lights/floorvent02
  1819. {
  1820.     {
  1821.         forceHighQuality
  1822.         map    lights/floorvent01.tga
  1823.         colored
  1824.         rotate    time * .2
  1825.         zeroClamp
  1826.     }
  1827. }
  1828.  
  1829. lights/sarge_spot1
  1830. {
  1831.     {
  1832.         forceHighQuality
  1833.         map    lights/floorvent01.tga
  1834.         colored
  1835.         rgb        sargetable1[ time * .05 ]
  1836.         //translate time *.2, time * 7
  1837.         rotate    time * .2
  1838.         zeroClamp
  1839.     }
  1840. }
  1841.  
  1842. lights/sarge_spot2
  1843. {
  1844.     {
  1845.         forceHighQuality
  1846.         map    lights/flashlight.tga
  1847.         colored
  1848.         rgb        sargetable2[ time * .05 ]
  1849.         rotate    time * .01
  1850.         zeroClamp
  1851.     }
  1852. }
  1853.  
  1854. lights/sarge_spot3
  1855. {
  1856.     {
  1857.         forceHighQuality
  1858.         map    lights/crap01.tga
  1859.         colored
  1860.         rgb        sargetable3[ time * .05 ]
  1861.         rotate    time * 2
  1862.         zeroClamp
  1863.     }
  1864. }
  1865.  
  1866. lights/grate4
  1867. {
  1868.     {
  1869.         forceHighQuality
  1870.         map    lights/grate4.tga
  1871.         colored
  1872.         rgb        eyestable[ time * .1 ]
  1873.         zeroClamp
  1874.     }
  1875. }
  1876.  
  1877. lights/floorvent01
  1878. {
  1879.     {
  1880.         forceHighQuality
  1881.         map    lights/floorvent01.tga
  1882.         colored
  1883.         rgb        eyestable[ time * 1 ]
  1884.         zeroClamp
  1885.     }
  1886. }
  1887.  
  1888. lights/floorvent01x
  1889. {
  1890.     {
  1891.         forceHighQuality
  1892.         map    lights/floorvent01x.tga
  1893.         colored
  1894.         rgb        eyestable[ time * 1 ]
  1895.         zeroClamp
  1896.     }
  1897. }
  1898.  
  1899.  
  1900.  
  1901. lights/crap01
  1902. {
  1903.     {
  1904.         forceHighQuality
  1905.         map    lights/crap01.tga
  1906.         colored
  1907.         rgb        eyestable[ time * .1 ]
  1908.         zeroclamp
  1909.     }
  1910. }
  1911.  
  1912.  
  1913.  
  1914. lights/senescrollight
  1915. {
  1916.     {
  1917.         forceHighQuality
  1918.         //slowpass
  1919.         map    lights/senescrollight.tga
  1920.         translate        ( senescrollightable [Parm4 + (time * (0.1 * Parm3)) ]) , 0
  1921.         red         ( senescrollightableA [Parm4 + (time * (0.1 * Parm3)) ]) * Parm0
  1922.         green        ( senescrollightableA [Parm4 + (time * (0.1 * Parm3)) ]) * Parm1
  1923.         blue        ( senescrollightableA [Parm4 + (time * (0.1 * Parm3)) ]) * Parm2
  1924.  
  1925.         zeroclamp
  1926.     }
  1927.     {
  1928.         forceHighQuality
  1929.         //fastpass
  1930.         map    lights/senescrollight.tga
  1931.         translate        ( senescrollightable [Parm4 + (time * (2 * Parm3)) ]) , 0
  1932.         red         ( senescrollightableA [Parm4 + (time * (2 * Parm3)) ]) * Parm0
  1933.         green        ( senescrollightableA [Parm4 + (time * (2 * Parm3)) ]) * Parm1
  1934.         blue        ( senescrollightableA [Parm4 + (time * (2 * Parm3)) ]) * Parm2
  1935.         zeroclamp
  1936.     }
  1937. }
  1938.  
  1939. lights/squarelight1blue
  1940. {
  1941.     {
  1942.         forceHighQuality
  1943.         map    lights/squarelight1blue.tga
  1944.         zeroclamp
  1945.     }
  1946. }
  1947.  
  1948. lights/squarelight2a
  1949. {
  1950.     {
  1951.         forceHighQuality
  1952.         map    lights/squarelight2.tga
  1953.         rgb        flashtable[ time ]
  1954.         zeroclamp
  1955.     }
  1956. }
  1957.  
  1958. lights/squarelight2
  1959. {
  1960.     {
  1961.         forceHighQuality
  1962.         map    lights/squarelight2.tga
  1963. //        rgb        flashtable[ time ]
  1964.         zeroclamp
  1965.     }
  1966. }
  1967.  
  1968. lights/twopass
  1969. {
  1970.     {
  1971.         forceHighQuality
  1972.         map    lights/squarelight1.tga
  1973.         colored
  1974.         zeroclamp
  1975.     }
  1976.     {
  1977.         forceHighQuality
  1978.         map    lights/inverse.tga
  1979.         colored
  1980.         zeroclamp
  1981.     }
  1982. }
  1983.  
  1984. lights/squarelight1sky
  1985. {
  1986.     lightFalloffImage    makeintensity( lights/squarelight1b.tga )
  1987.     {
  1988.         forceHighQuality
  1989.         map    lights/squarelight1.tga
  1990.         colored
  1991.         zeroclamp
  1992.     }
  1993. }
  1994.  
  1995. lights/squarelight1_dblbright
  1996. {
  1997.     {
  1998.         forceHighQuality
  1999.         map    lights/squarelight1.tga
  2000.         colored
  2001.         zeroclamp
  2002.     }
  2003.     {
  2004.         forceHighQuality
  2005.         map    lights/squarelight1.tga
  2006.         colored
  2007.         zeroclamp
  2008.     }
  2009.  
  2010. }
  2011.  
  2012. lights/squarelight1
  2013. {
  2014.     {
  2015.         forceHighQuality        
  2016.         map    lights/squarelight1.tga
  2017.         colored
  2018.         zeroclamp
  2019.         
  2020.     }
  2021. }
  2022.  
  2023. lights/squarelight1_cave_group1
  2024. {
  2025.     {
  2026.         forceHighQuality    
  2027.         map    lights/squarelight1.tga
  2028.         red            parm0 * global0
  2029.         green        parm1 * global0
  2030.         blue        parm2 * global0
  2031.         zeroclamp
  2032.     }
  2033. }
  2034.  
  2035. lights/squarelight1_cave_group2
  2036. {
  2037.     {
  2038.         forceHighQuality
  2039.         map    lights/squarelight1.tga
  2040.         red            parm0 * global1
  2041.         green        parm1 * global1
  2042.         blue        parm2 * global1
  2043.         zeroclamp
  2044.     }
  2045. }
  2046.  
  2047. lights/squarelight1_cave_group3
  2048. {
  2049.     {
  2050.         forceHighQuality
  2051.         map    lights/squarelight1.tga
  2052.         red            parm0 * global2
  2053.         green        parm1 * global2
  2054.         blue        parm2 * global2
  2055.         zeroclamp
  2056.     }
  2057. }
  2058.  
  2059. lights/xray02
  2060. {
  2061.     {
  2062.         forceHighQuality
  2063.         map            lights/asstemp2a.tga
  2064. //        translate    time * .1, time * .01
  2065. //        colored
  2066.         red            Parm0 * xray02table[ time * .1 ]
  2067.         green        Parm1 * xray02table[ time * .1 ]
  2068.         blue        Parm2 * xray02table[ time * .1 ]
  2069.         zeroclamp
  2070.     }
  2071. }
  2072.  
  2073. lights/flashlight3
  2074. {
  2075.     {
  2076.         forceHighQuality
  2077.         map    lights/flashlight3.tga
  2078.         zeroClamp
  2079.         colored
  2080.                 rotate    time * .01
  2081.     }
  2082. }
  2083.  
  2084. lights/flashlight3blue
  2085. {
  2086.     {
  2087.         forceHighQuality
  2088.         map    lights/flashlight3blue.tga
  2089.         zeroClamp
  2090.         colored
  2091.                 rotate    time * .01
  2092.     }
  2093. }    
  2094.  
  2095. lights/grate3
  2096. {
  2097.     {
  2098.         forceHighQuality
  2099.         map lights/grate3.tga
  2100.         zeroclamp
  2101.         colored
  2102.     }
  2103. }
  2104.  
  2105. lights/grate3x
  2106. {
  2107.     {
  2108.         forceHighQuality
  2109.         map lights/grate3x.tga
  2110.         zeroclamp
  2111.         colored
  2112.     }
  2113. }
  2114.  
  2115.  
  2116. lights/bluetex2xlight
  2117. {
  2118.     {
  2119.         forceHighQuality
  2120.         map lights/bluetex2xlight.tga
  2121.         zeroclamp
  2122.         colored
  2123.     }
  2124. }
  2125.  
  2126. lights/rspot01drk
  2127. {
  2128.     {
  2129.         forceHighQuality
  2130.         map    lights/spot01drk.tga
  2131.         zeroClamp
  2132.         colored
  2133.         rotate    time * .5
  2134.     }
  2135. }
  2136.  
  2137. lights/xray01
  2138. {
  2139.     {
  2140.         forceHighQuality
  2141.         map    lights/xray01.tga
  2142.         zeroClamp
  2143.         colored
  2144.         rotate    time * 1
  2145.     }
  2146.     {
  2147.         forceHighQuality
  2148.         map    lights/xray01.tga
  2149.         zeroClamp
  2150.         colored
  2151.         rotate    time * -3
  2152.     }
  2153. }
  2154.  
  2155. lights/spot08
  2156. {
  2157.     {
  2158.         forceHighQuality
  2159.         map    lights/spot08.tga
  2160.         zeroClamp
  2161.         colored
  2162.     }
  2163. }
  2164.  
  2165. lights/blur
  2166. {
  2167.     {
  2168.         forceHighQuality
  2169.         map    lights/blur.tga
  2170.         zeroClamp
  2171.         colored
  2172.     }
  2173. }
  2174.  
  2175. lights/blur2
  2176. {
  2177.     {
  2178.         forceHighQuality
  2179.         map    lights/blur2.tga
  2180.         zeroClamp
  2181.         colored
  2182.     }
  2183. }
  2184.  
  2185. lights/flashlight
  2186. {
  2187.     {
  2188.         forceHighQuality
  2189.         map    lights/flashlight.tga
  2190.         
  2191.         zeroClamp
  2192.         colored
  2193.     }
  2194. }
  2195.  
  2196. lights/flashlight2
  2197. {
  2198.     {
  2199.         forceHighQuality
  2200.         map    lights/flashlight2.tga
  2201.         zeroClamp
  2202.         colored
  2203.     }
  2204. }
  2205.  
  2206. lights/spot01drk
  2207. {
  2208.     {
  2209.         forceHighQuality
  2210.         map    lights/spot01drk.tga
  2211.         zeroClamp
  2212.         colored
  2213.     }
  2214. }
  2215.  
  2216. lights/spot02
  2217. {
  2218.     {
  2219.         forceHighQuality
  2220.         map    lights/spot02.tga
  2221.         zeroClamp
  2222.         colored
  2223.     }
  2224. }
  2225.  
  2226. lights/stainedglass
  2227. {
  2228.     {
  2229.         forceHighQuality
  2230.         map    lights/stainedglass3.tga
  2231.         zeroClamp
  2232.         colored
  2233.     }
  2234. }
  2235.  
  2236. lights/redlight01
  2237. {
  2238.     {
  2239.         forceHighQuality
  2240.         map    lights/redcircuit.tga
  2241.         zeroClamp
  2242.     }
  2243. }
  2244.  
  2245. lights/spotlight04
  2246. {
  2247.     {
  2248.         forceHighQuality
  2249.         map    lights/spot04.tga
  2250.         zeroClamp
  2251.         colored
  2252.     }
  2253. }
  2254.  
  2255. lights/blurlight3
  2256. {
  2257.     {
  2258.         forceHighQuality
  2259.         map    lights/blur3.tga
  2260.         zeroClamp
  2261.         colored
  2262.     }
  2263. }
  2264.  
  2265. light5
  2266. {
  2267.     {
  2268.         forceHighQuality
  2269.         map    textures\sfx\black_2
  2270.         zeroClamp
  2271.         colored 
  2272.     }
  2273. }
  2274.  
  2275. lightspectrum
  2276. {
  2277.     {
  2278.         forceHighQuality
  2279.         map    textures\sfx\black_2
  2280.         zeroClamp
  2281.         colored 
  2282.     }
  2283. }
  2284.  
  2285.  
  2286. _spotlight
  2287. {
  2288.     {
  2289.         forceHighQuality
  2290.         map    _spotlight
  2291.         zeroClamp
  2292.         colored 
  2293.     }
  2294. }
  2295.  
  2296. _pointLight1
  2297. {
  2298.     {
  2299.         forceHighQuality
  2300.         map    _pointLight1
  2301.         zeroClamp
  2302.         colored 
  2303.     }
  2304. }
  2305.  
  2306. _pointLight2
  2307. {
  2308.     {
  2309.         forceHighQuality
  2310.         map    _pointLight2
  2311.         zeroClamp
  2312.         colored 
  2313.     }
  2314. }
  2315.  
  2316. _pointLight3
  2317. {
  2318.     {
  2319.         forceHighQuality
  2320.         map    _pointLight3
  2321.         zeroClamp
  2322.         colored 
  2323.     }
  2324. }
  2325.  
  2326. lights/windowLight
  2327. {
  2328.     {
  2329.         forceHighQuality
  2330.         map    lights/window
  2331.         zeroClamp
  2332.     }
  2333. }
  2334.  
  2335.  
  2336. lights/rotatingLight
  2337. {
  2338.     {
  2339.         forceHighQuality
  2340.         map    lights/spot05
  2341.         zeroClamp
  2342.         colored
  2343.         rotate    time * 0.05
  2344.     }
  2345. }
  2346.  
  2347. lights/swingingLight
  2348. {
  2349.     {
  2350.         forceHighQuality
  2351.         map    lights/spot05
  2352.         //zeroClamp
  2353.         colored
  2354.         rotate    time * 3
  2355.         scale    speaker_1[ time ] *0.75 + 0.25, speaker_1[ time ] *0.75 + 0.25
  2356.         zeroClamp
  2357.     }
  2358. }
  2359.  
  2360. lights/scalingLight
  2361. {
  2362.     {
  2363.         forceHighQuality
  2364.         map    lights/spot05
  2365.         zeroClamp
  2366.         colored
  2367.         scale    scaleTable[time] * 0.25 + 0.75, scaleTable[time] * 0.25 + 0.75
  2368.     }
  2369. }
  2370.  
  2371. lights/scaleRotateLight
  2372. {
  2373.     {
  2374.         forceHighQuality
  2375.         map    lights/spot05
  2376.         zeroClamp
  2377.         colored
  2378.         scale    scaleTable[time], 2
  2379.         rotate    time * 0.2
  2380.     }
  2381. }
  2382.  
  2383. lights/rotateScaleLight
  2384. {
  2385.     {
  2386.         forceHighQuality
  2387.         map    lights/spot05
  2388.         zeroClamp
  2389.         colored
  2390.         rotate    time * 0.2
  2391.         scale    scaleTable[time], 2
  2392.     }
  2393. }
  2394.  
  2395.  
  2396. table shearTable { { -1, 0, 1, 0 } }
  2397.  
  2398. lights/shearingLight
  2399. {
  2400.     {
  2401.         forceHighQuality
  2402.         map    lights/spot05
  2403.         zeroClamp
  2404.         colored
  2405.         // shrink it down so we can distort it without
  2406.         // going out of bounds
  2407.         scale    2, 2
  2408.         rotate    time * 0.2
  2409.         // now shear it side to side
  2410.         shear    shearTable[time] * 0.5, 0
  2411.     }
  2412. }
  2413.  
  2414. lights/translatingLight
  2415. {
  2416.     {
  2417.         forceHighQuality
  2418.         map    lights/spot05
  2419.         zeroClamp
  2420.         colored
  2421.  
  2422.         // there is enough border in the texture to let us move it this small
  2423.         // amount without needing a downscale
  2424.  
  2425.         // use two different scale values so the period of jitter doesn't seem so short
  2426.         translate    0.05 * scaleTable[time], 0.05 * scaleTable[time*0.7]
  2427.     }
  2428. }
  2429.  
  2430.  
  2431. table calRedTable { { 1, 0, 0 } }
  2432. table calGreenTable { { 0, 1, 0 } }
  2433. table calBlueTable { { 0, 0, 1 } }
  2434.  
  2435. lights/colorAnimatingLight
  2436. {
  2437.     {
  2438.         forceHighQuality
  2439.         map    lights/spot05
  2440.         zeroClamp
  2441.         red        calRedTable[time*0.5]
  2442.         green    calGreenTable[time*0.5]
  2443.         blue    calBlueTable[time*0.5]
  2444.     }
  2445. }
  2446.  
  2447.  
  2448. lights/doubleLight
  2449. {
  2450.     {
  2451.         forceHighQuality
  2452.         map    lights/spot07
  2453.         zeroClamp
  2454.         colored
  2455.         rotate    time * 0.05
  2456.     }
  2457.     {
  2458.         forceHighQuality
  2459.         map    lights/spot05
  2460.         zeroClamp
  2461.         colored
  2462.         scale    2, 2
  2463.         shear    shearTable[time] * 2, 0
  2464.         rotate    time * -0.05
  2465.     }
  2466. }
  2467.  
  2468.  
  2469. lights/squarelight
  2470. {
  2471.     {
  2472.         forceHighQuality
  2473.         map    lights/squarelight.tga
  2474.         zeroClamp
  2475.         colored
  2476.     }
  2477. }
  2478.  
  2479.  
  2480. lights/testFalloff
  2481. {    // this is just a double bump for demonstrating custom falloffs
  2482.     {
  2483.         forceHighQuality
  2484.         map    makeintensity( lights/testFalloff.tga )
  2485.         zeroClamp
  2486.     }
  2487. }
  2488.  
  2489. lights/xfalloff
  2490. {
  2491.     // xian's pointlight falloff thingy
  2492.     {
  2493.         forceHighQuality
  2494.         map makeintensity (lights/xfalloff.tga)
  2495.         colored
  2496.         zeroClamp
  2497.     }
  2498. }
  2499.  
  2500. lights/xambient
  2501. {
  2502.     // xian's ambient texture volume thingy
  2503.     {
  2504.         forceHighQuality
  2505.         map makeintensity (lights/xambient.tga)
  2506.         zeroClamp
  2507.         colored
  2508.     }
  2509. }
  2510.  
  2511. lights/malsrotatedLight
  2512. {
  2513.     {
  2514.         forceHighQuality
  2515.         map makeintensity (lights/squarelight1a.tga)
  2516.         rotate    parm3
  2517.         zeroClamp
  2518.         colored
  2519.     }
  2520. }
  2521.  
  2522. lights/globalFadeLight
  2523. {    
  2524.     // script can change the global parms to effect the color
  2525.     // of every single light in the world that uses this shader
  2526.     {
  2527.         forceHighQuality
  2528.         map lights/squarelight1.tga
  2529.         red        parm0 * global0
  2530.         green    parm1 * global0
  2531.         blue    parm2 * global0
  2532.         zeroClamp
  2533.     }
  2534. }
  2535.  
  2536. lights/globalFadeLight2
  2537. {    
  2538.     // script can change the global parms to effect the color
  2539.     // of every single light in the world that uses this shader
  2540.     {
  2541.         forceHighQuality
  2542.         map lights/squarelight1.tga
  2543.         red        parm0 * global1
  2544.         green    parm1 * global1
  2545.         blue    parm2 * global1
  2546.         zeroClamp
  2547.     }
  2548. }
  2549.  
  2550.  
  2551. lights/duffysquarelight
  2552. {
  2553.     {
  2554.         forceHighQuality
  2555.         map    lights/squarelight.tga
  2556.         zeroClamp
  2557.         red     ( 0.75 + ( 0.25 * sound ) ) * Parm0
  2558.         green     0
  2559.         blue     0
  2560.  
  2561.     }
  2562. }
  2563.  
  2564. lights/xianspecial
  2565. {    
  2566.     
  2567.     {if  ( (time + parm4) * Parm3 < 1.0 )
  2568.         forceHighQuality    
  2569.         map    lights/squareishlight.tga
  2570.         red        blinktable[ (time + parm4) * Parm3 ] * Parm0
  2571.         green    blinktable[ (time + parm4) * Parm3 ] * Parm1
  2572.         blue    blinktable[ (time + parm4) * Parm3 ] * Parm2
  2573.         zeroClamp
  2574.     }
  2575.     {if  ( (time + parm4) * Parm3 >= 1.0 )
  2576.         forceHighQuality
  2577.         map    lights/squareishlight.tga
  2578.         red        xianjittertable[ (time + parm4) * Parm3 - 1.0] * Parm0
  2579.         green    xianjittertable[ (time + parm4) * Parm3 - 1.0] * Parm1
  2580.         blue    xianjittertable[ (time + parm4) * Parm3 - 1.0] * Parm2
  2581.         zeroClamp
  2582.     }
  2583. }
  2584.  
  2585. lights/xianspecial_stages
  2586. {    
  2587.     {if ( parm7 == 0 )
  2588.         forceHighQuality
  2589.         map    lights/squareishlight.tga
  2590.         red        xianjittertable_low[ (time + parm4) * Parm3 ] * Parm0
  2591.         green    xianjittertable_low[ (time + parm4) * Parm3 ] * Parm1
  2592.         blue    xianjittertable_low[ (time + parm4) * Parm3 ] * Parm2
  2593.         zeroClamp
  2594.     }
  2595.  
  2596.     {if ( parm7 == 1)
  2597.         forceHighQuality
  2598.         map    lights/squareishlight.tga
  2599.         red        blinktable[ (time + parm4) * Parm3 ] * Parm0
  2600.         green    blinktable[ (time + parm4) * Parm3 ] * Parm1
  2601.         blue    blinktable[ (time + parm4) * Parm3 ] * Parm2
  2602.         zeroClamp
  2603.     }
  2604.     {if  ( (time + parm4) * Parm3 >= 1.0 )
  2605.         forceHighQuality
  2606.         map    lights/squareishlight.tga
  2607.         red        xianjittertable_hi[ (time + parm4) * Parm3 - 1.0] * Parm0
  2608.         green    xianjittertable_hi[ (time + parm4) * Parm3 - 1.0] * Parm1
  2609.         blue    xianjittertable_hi[ (time + parm4) * Parm3 - 1.0] * Parm2
  2610.         zeroClamp
  2611.     }
  2612. }
  2613.  
  2614. lights/medical_laserb
  2615. {
  2616.     {
  2617.         forceHighQuality
  2618.         map    lights/medicallaserb.tga
  2619.         //translate    time * 0 , time *0.05
  2620.         
  2621.         
  2622.     }
  2623. }
  2624.  
  2625. lights/medical_laser
  2626. {
  2627.     {
  2628.         forceHighQuality
  2629.         map    lights/medicallaser.tga
  2630.         rotate    time *-0.035
  2631.         zeroClamp
  2632.         colored
  2633.     }
  2634. }