home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 January / january_2000.iso / Games / messiah / messiah_demo.exe / data1.cab / Program_Executable_Files / messiahscripts / lights.hxx < prev    next >
Encoding:
Text File  |  1999-11-19  |  10.9 KB  |  418 lines

  1. /*
  2.         PRIORITY ADDED: use as follows ...
  3.  
  4.         set to 0 to always add the light
  5.         set to 1 to add the light if the framerate allows
  6. */
  7.  
  8.  
  9.  
  10. //SpawnLight(Name,Bone,Pos,Color,Vec,Radius);
  11. //                ID Int Vec Vec   Vec float
  12.  
  13. Light(Lvolumelight)
  14. {
  15.         type(_SXLomni|_SXLadditive|_SXLvolume);
  16.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  17.         Rnd(10,10,10,10,10,10,0,0);        //x,y,z,r,g,b,radius,planedist
  18.         Fade(10,10,10,10,20,30,0,0);        //x,y,z,r,g,b,radius,planedist
  19.         frequency(0.1);
  20.         Rotate(0,1,0);                //Rotation x,y,z
  21.         Collision(off);
  22.         LifeSpan(0);
  23.         priority(1);
  24. }
  25.  
  26. Light(Lomnilight)
  27. {
  28.         type(_SXLomni);
  29.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  30.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  31.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  32.         frequency(0.1);
  33.         Rotate(0,1,0);                //Rotation x,y,z
  34.         Collision(off);
  35.         LifeSpan(0);
  36.         priority(1);
  37. }
  38.  
  39.  
  40. Light(Lomnilight2)
  41. {
  42.         type(_SXLomni);
  43.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  44.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  45.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  46.         frequency(0.1);
  47.         Rotate(0,1,0);                //Rotation x,y,z
  48.         Collision(off);
  49.         LifeSpan(2);
  50.         priority(1);
  51.         LightAcrossSets(on);
  52. }
  53.  
  54. Light(toruslight)
  55. {
  56.         type(_SXLomni);
  57.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  58.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  59.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  60.         frequency(0.1);
  61.         Rotate(0,1,0);                //Rotation x,y,z
  62.         Collision(off);
  63.         LifeSpan(2);
  64.         priority(0);
  65.         LightAcrossSets(on);
  66. }
  67.  
  68. Light(LomnilightHelicopter)
  69. {
  70.         type(_SXLomni);
  71.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  72.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  73.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  74.         frequency(0.1);
  75.         Rotate(0,1,0);                //Rotation x,y,z
  76.         Collision(off);
  77.         LifeSpan(6);
  78.         priority(1);
  79.         LightAcrossSets(off);
  80. }
  81.  
  82.  
  83. Light(darklight)
  84. {
  85.         type(_SXLomni);
  86.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  87.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  88.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  89.         frequency(0.1);
  90.         Rotate(0,1,0);                //Rotation x,y,z
  91.         Collision(off);
  92.         LifeSpan(2);
  93.         priority(0);
  94.         LightAcrossSets(on);
  95. }
  96.  
  97. Light(LomnilightAllSets)
  98. {
  99.         type(_SXLomni);
  100.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  101.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  102.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  103.         frequency(0.1);
  104.         Rotate(0,1,0);                //Rotation x,y,z
  105.         Collision(off);
  106.         LifeSpan(2);
  107.         LightAcrossSets(on);
  108.         priority(0);
  109. }
  110.  
  111. Light(LightPulseOmni)
  112. {
  113.         type(_SXLomni);
  114.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  115.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  116.         Fade(0,0,0,0,0,0,300,0);        //x,y,z,r,g,b,radius,planedist
  117.         frequency(0.9);
  118.         Rotate(0,1,0);                //Rotation x,y,z
  119.         Collision(off);
  120.         LifeSpan(32);
  121.         priority(1);
  122. }
  123.  
  124. Light(LightBlinkFade)
  125. {
  126.         type(_SXLomni);
  127.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  128.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  129.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  130.         frequency(0);
  131.         Rotate(0,1,0);                //Rotation x,y,z
  132.         Collision(off);
  133.         LifeSpan(60);
  134.         priority(1);
  135.         LightAcrossSets(on);
  136. }
  137.  
  138. //used in War_rad (radiation sequence)
  139. Light(LightPulseOmni2)
  140. {
  141.         type(_SXLomni);
  142.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  143.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  144.         Fade(0,0,0,0,0,0,600,0);        //x,y,z,r,g,b,radius,planedist
  145.         frequency(0.2);
  146.         Rotate(0,1,0);                //Rotation x,y,z
  147.         Collision(off);
  148.         LifeSpan(150);
  149.         priority(1);
  150. }
  151.  
  152. // used in Club Perimeter (trap room)
  153. Light(LightPulseOmni3)
  154. {
  155.         type(_SXLomni);
  156.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  157.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  158.         Fade(0,0,0,0,0,0,1000,0);        //x,y,z,r,g,b,radius,planedist
  159.         frequency(0.3);
  160.         Rotate(0,1,0);                //Rotation x,y,z
  161.         Collision(off);
  162.         LifeSpan(3000);
  163.         priority(0);
  164. }
  165.  
  166. //used in OUtskirts (Broken elevator)
  167. Light(LightPulseOmni4)
  168. {
  169.         type(_SXLomni);
  170.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  171.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  172.         Fade(0,0,0,0,0,0,50,0);        //x,y,z,r,g,b,radius,planedist
  173.         frequency(0.2);
  174.         Rotate(0,1,0);                //Rotation x,y,z
  175.         Collision(off);
  176.         LifeSpan(150);
  177.         priority(1);
  178. }
  179.  
  180. //used in Wasteplant (wast12, under the floor)
  181. Light(LightPulseOmni5)
  182. {
  183.         type(_SXLomni);
  184.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  185.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  186.         Fade(0,0,0,0,0,0,50,0);        //x,y,z,r,g,b,radius,planedist
  187.         frequency(0.2);
  188.         Rotate(0,1,0);                //Rotation x,y,z
  189.         Collision(off);
  190.         LifeSpan(150);
  191.         priority(1);
  192. }
  193.  
  194.  
  195. Light(fire_light)
  196. {
  197.         type(_SXLomni);
  198.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  199.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  200.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  201.         frequency(0.1);
  202.         Rotate(0,1,0);                //Rotation x,y,z
  203.         Collision(off);
  204.         LifeSpan(3);
  205.         priority(1);
  206.         LightAcrossSets(on);
  207. }
  208.  
  209. Light(fire_light2)
  210. {
  211.         type(_SXLomni);
  212.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  213.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  214.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  215.         frequency(0.1);
  216.         Rotate(0,1,0);                //Rotation x,y,z
  217.         Collision(off);
  218.         LifeSpan(4);
  219.         priority(1);
  220.         LightAcrossSets(on);
  221. }
  222.  
  223. Light(fire_light3)
  224. {
  225.         type(_SXLomni);
  226.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  227.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  228.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  229.         frequency(0.1);
  230.         Rotate(0,1,0);                //Rotation x,y,z
  231.         Collision(off);
  232.         LifeSpan(3);
  233.         priority(0);
  234.         LightAcrossSets(on);
  235. }
  236.  
  237. Light(fire_light4)
  238. {
  239.         type(_SXLomni);
  240.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  241.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  242.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  243.         frequency(0.1);
  244.         Rotate(0,1,0);                //Rotation x,y,z
  245.         Collision(off);
  246.         LifeSpan(3);
  247.         priority(0);
  248.         LightAcrossSets(off);
  249. }
  250.  
  251.  
  252. Light(Lplanelight)
  253. {
  254.         type(_SXLplane|_SXLadditive);
  255.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  256.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  257.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  258.         Frequency(0.1);
  259.         Rotate(0,60,0);                //Rotation x,y,z
  260.         Collision(off);
  261.         PlaneDistance(300);
  262.         LightAcrossSets(on);
  263.         LifeSpan(2000);
  264.         priority(0);
  265. }
  266.  
  267. Light(Lplanelight2)
  268. {
  269.         type(_SXLplane|_SXLadditive);
  270.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  271.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  272.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  273.         Frequency(0.7);
  274.         Rotate(0,20,0);                //Rotation x,y,z
  275.         Collision(off);
  276.         PlaneDistance(300);
  277.         LightAcrossSets(on);
  278.         LifeSpan(455);
  279.         priority(0);
  280. }
  281.  
  282. Light(Lplanelight3)
  283. {
  284.         type(_SXLplane|_SXLadditive);
  285.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  286.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  287.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  288.         Frequency(0.1);
  289.         Rotate(0,-32,0);                //Rotation x,y,z
  290.         Collision(off);
  291.         PlaneDistance(300);
  292.         LightAcrossSets(on);
  293.         LifeSpan(65);
  294.         priority(0);
  295. }
  296.  
  297. Light(Rplanelight)
  298. {
  299.         type(_SXLplane|_SXLadditive);
  300.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  301.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  302.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  303.         Frequency(0.1);
  304.         Rotate(0,60,0);                //Rotation x,y,z
  305.         Collision(off);
  306.         PlaneDistance(35);
  307.         LifeSpan(500);
  308.         priority(0);
  309. }
  310. //name / bone / pos / color / empty / radius
  311. //SpawnLight(flash_light,0,Gactorpos,tmpvector,EmptyVector,400);
  312. Light(flash_light)
  313. {
  314.         type(_SXLomni);
  315.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  316.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  317.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  318.         frequency(0.1);
  319.         Rotate(0,1,0);                //Rotation x,y,z
  320.         Collision(off);
  321.         LifeSpan(2);
  322.         priority(1);
  323. }
  324.  
  325. Light(HeavyCopSearchLight)
  326. {
  327.         type(_SXLomni);
  328.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  329.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  330.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  331.         frequency(0.1);
  332.         Rotate(0,1,0);                //Rotation x,y,z
  333.         Collision(off);
  334.         LifeSpan(2);
  335.         priority(1);
  336.         LightAcrossSets(on);
  337. }
  338.  
  339. Light(Electric_light)
  340. {
  341.         type(_SXLomni);
  342.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  343.         Rnd(0,0,0,0,0,0,100,50);        //x,y,z,r,g,b,radius,planedist
  344.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  345.         frequency(0.1);
  346.         Rotate(0,1,0);                //Rotation x,y,z
  347.         Collision(off);
  348.         LifeSpan(2);    //was 50 ...you on crack boy!
  349.         priority(1);
  350. }
  351.  
  352. Light(perm_light)
  353. {
  354.         type(_SXLomni);
  355.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  356.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  357.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  358.         frequency(0.1);
  359.         Rotate(0,1,0);                //Rotation x,y,z
  360.         Collision(off);
  361.         LifeSpan(600);
  362.         priority(0);
  363.         LightAcrossSets(on);
  364. }
  365.  
  366. Light(Omni_Flash)
  367. {
  368.         type(_SXLomni);
  369.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  370.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  371.         Fade(0,0,0,0,0,0,200,0);        //x,y,z,r,g,b,radius,planedist
  372.         frequency(0.1);
  373.         Rotate(0,1,0);                //Rotation x,y,z
  374.         Collision(off);
  375.         LifeSpan(10);
  376.         priority(1);
  377. }
  378.  
  379. Light(dark_light600)
  380. {
  381.         type(_SXLomni);
  382.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  383.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  384.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  385.         frequency(0.1);
  386.         Rotate(0,1,0);                //Rotation x,y,z
  387.         Collision(off);
  388.         LifeSpan(600);
  389.         priority(0);
  390. }
  391.  
  392. Light(ShortOmni)
  393. {
  394.         type(_SXLomni);
  395.         Scale(1);                    //scale over time 0=small at end, 1=no change over time
  396.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  397.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  398.         frequency(0.1);
  399.         Rotate(0,1,0);                //Rotation x,y,z
  400.         Collision(off);
  401.         LifeSpan(300);
  402.         priority(0);
  403. }
  404.  
  405. Light(PossessLight)
  406. {
  407.         type(_SXLomni);
  408.         Scale(0);                    //scale over time 0=small at end, 1=no change over time
  409.         Rnd(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  410.         Fade(0,0,0,0,0,0,0,0);        //x,y,z,r,g,b,radius,planedist
  411.         frequency(0.1);
  412.         Rotate(0,1,0);                //Rotation x,y,z
  413.         Collision(off);
  414.         LifeSpan(128);
  415.         priority(0);
  416. }
  417.  
  418.