home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_oilplatformfire.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  7.1 KB  |  318 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_OILPLATFORMFIRE)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 4
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. PT = Emitter.ParticleTypesParams[1]
  41. PT.IsEmitterLocked = false
  42. PT.DrawOrder = 2
  43. PT.Material = ENMAT_PARTICLE_LIGHT
  44.  
  45.  
  46. --PT.TextureName = "environment_effect_explosion_smoke1.dds"
  47. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  48.  
  49. PT.ParticlesPerSecond = 25.0;
  50. PT.InitialNumberOfParticles = 0.0;
  51. PT.BaseLifeTime = 6.3;
  52. PT.BaseLifeTimeVariance = 0.6;
  53. PT.BaseSpeed = 1.0;
  54. PT.BaseSpeedVariance = 0.2;
  55.  
  56. PT.TangentSpeed = 1.0;
  57. PT.TangentSpeedVariance = 0.0;
  58. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  59. PT.TangentDirection = vzbzd4
  60. vzbzd4:delete()
  61. PT.TangentAngleMin = 0.0;
  62. PT.TangentAngleMax = 6.28;
  63. PT.IsTangentDependOnBase = false;
  64.  
  65. PT.BaseAngle = 3.0;
  66. PT.BaseAngleVariance = 5.0;
  67. PT.BaseAngleSpeed = 0.2;
  68. PT.BaseAngleSpeedVariance = 0.3;
  69. PT.BaseAngleSpeedDirection = 0;
  70. local vzbzd5 = D3DXVECTOR3:new(0.4,1.0,0.4)
  71. PT.BaseDirection = vzbzd5
  72. vzbzd5:delete()
  73. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  74. PT.BaseDirectionVariance = vzbzd6
  75. vzbzd6:delete()
  76. local vzbzd7 = D3DXVECTOR3:new(0,0,0)
  77. PT.BasePosition = vzbzd7
  78. vzbzd7:delete()
  79. local vzbzd8 = D3DXVECTOR3:new(2,2,2)
  80. PT.BasePositionVariance = vzbzd8
  81. vzbzd8:delete()
  82. PT.BaseSize = 4.0;
  83. PT.BaseSizeVariance = 0.6;
  84.  
  85. -- color over time
  86. PT.ColorOverTimeR[1].TimePercent = 0.0;
  87. PT.ColorOverTimeR[1].Value = 1.0;
  88. PT.ColorOverTimeG[1].TimePercent = 0.0;
  89. PT.ColorOverTimeG[1].Value = 0.5;
  90. PT.ColorOverTimeB[1].TimePercent = 0.0;
  91. PT.ColorOverTimeB[1].Value = 0.1;
  92.  
  93. PT.ColorOverTimeR[2].TimePercent = 0.6;
  94. PT.ColorOverTimeR[2].Value = 0.3;
  95. PT.ColorOverTimeG[2].TimePercent = 0.6;
  96. PT.ColorOverTimeG[2].Value = 0.0;
  97. PT.ColorOverTimeB[2].TimePercent = 0.6;
  98. PT.ColorOverTimeB[2].Value = 0.0;
  99.  
  100. PT.ColorOverTimeR[3].TimePercent = 1.0;
  101. PT.ColorOverTimeR[3].Value = 0.0;
  102. PT.ColorOverTimeG[3].TimePercent = 1.0;
  103. PT.ColorOverTimeG[3].Value = 0.0;
  104. PT.ColorOverTimeB[3].TimePercent = 1.0;
  105. PT.ColorOverTimeB[3].Value = 0.0;
  106.  
  107. -- transparency over time
  108. PT.TransparencyOverTime[1].TimePercent = 0.0;
  109. PT.TransparencyOverTime[1].Value = 0.0;
  110.  
  111. PT.TransparencyOverTime[2].TimePercent = 0.15;
  112. PT.TransparencyOverTime[2].Value = 0.3;
  113.  
  114. PT.TransparencyOverTime[3].TimePercent = 1.0;
  115. PT.TransparencyOverTime[3].Value = 0.0;
  116.  
  117. -- size over time
  118. PT.SizeOverTime[1].TimePercent = 0.0;
  119. PT.SizeOverTime[1].Value = 2.0;
  120.  
  121. PT.SizeOverTime[2].TimePercent = 0.3;
  122. PT.SizeOverTime[2].Value = 2.0;
  123.  
  124. PT.SizeOverTime[3].TimePercent = 1.0;
  125. PT.SizeOverTime[3].Value = 15.0;
  126.  
  127. -- Speed over time
  128. PT.SpeedOverTime[1].TimePercent = 0.0;
  129. PT.SpeedOverTime[1].Value = 1.0;
  130.  
  131. PT.SpeedOverTime[2].TimePercent = 1.0;
  132. PT.SpeedOverTime[2].Value = 0.0;
  133.  
  134. -- Tangent Speed over time
  135. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  136. PT.TangentSpeedOverTime[1].Value = 0.0;
  137.  
  138. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  139. PT.TangentSpeedOverTime[2].Value = 5.0;
  140.  
  141.  
  142. -- GravityAcceleration over time
  143. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  144. PT.GravityAccelerationOverTime[1].Value = 2.0;
  145.  
  146. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  147. PT.GravityAccelerationOverTime[2].Value = 2.0;
  148.  
  149. -- AngleSpeed over time
  150. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  151. PT.AngleSpeedOverTime[1].Value = 0.5;
  152.  
  153. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  154. PT.AngleSpeedOverTime[2].Value = 0.2;
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. PT = Emitter.ParticleTypesParams[2]
  200. PT.IsEmitterLocked = false
  201. PT.DrawOrder = 1
  202. PT.Material = ENMAT_SIMPLEPARTICLE
  203.  
  204.  
  205. --PT.TextureName = "environment_effect_explosion_smoke1.dds"
  206. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  207.  
  208. PT.ParticlesPerSecond = 15.0;
  209. PT.InitialNumberOfParticles = 0.0;
  210. PT.BaseLifeTime = 8.3;
  211. PT.BaseLifeTimeVariance = 0.6;
  212. PT.BaseSpeed = 1.0;
  213. PT.BaseSpeedVariance = 0.2;
  214.  
  215. PT.TangentSpeed = 1.0;
  216. PT.TangentSpeedVariance = 0.0;
  217. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  218. PT.TangentDirection = vzbzd9
  219. vzbzd9:delete()
  220. PT.TangentAngleMin = 0.0;
  221. PT.TangentAngleMax = 6.28;
  222. PT.IsTangentDependOnBase = false;
  223.  
  224. PT.BaseAngle = 3.0;
  225. PT.BaseAngleVariance = 5.0;
  226. PT.BaseAngleSpeed = 0.2;
  227. PT.BaseAngleSpeedVariance = 0.3;
  228. PT.BaseAngleSpeedDirection = 0;
  229. local vzbzd10 = D3DXVECTOR3:new(0.4,1.0,0.4)
  230. PT.BaseDirection = vzbzd10
  231. vzbzd10:delete()
  232. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  233. PT.BaseDirectionVariance = vzbzd11
  234. vzbzd11:delete()
  235. local vzbzd12 = D3DXVECTOR3:new(0,0,0)
  236. PT.BasePosition = vzbzd12
  237. vzbzd12:delete()
  238. local vzbzd13 = D3DXVECTOR3:new(2,2,2)
  239. PT.BasePositionVariance = vzbzd13
  240. vzbzd13:delete()
  241. PT.BaseSize = 4.0;
  242. PT.BaseSizeVariance = 0.6;
  243.  
  244. -- color over time
  245. PT.ColorOverTimeR[1].TimePercent = 0.0;
  246. PT.ColorOverTimeR[1].Value = 0.9;
  247. PT.ColorOverTimeG[1].TimePercent = 0.0;
  248. PT.ColorOverTimeG[1].Value = 0.9;
  249. PT.ColorOverTimeB[1].TimePercent = 0.0;
  250. PT.ColorOverTimeB[1].Value = 0.9;
  251.  
  252. PT.ColorOverTimeR[2].TimePercent = 1.0;
  253. PT.ColorOverTimeR[2].Value = 0.0;
  254. PT.ColorOverTimeG[2].TimePercent = 1.0;
  255. PT.ColorOverTimeG[2].Value = 0.0;
  256. PT.ColorOverTimeB[2].TimePercent = 1.0;
  257. PT.ColorOverTimeB[2].Value = 0.0;
  258.  
  259. -- transparency over time
  260. PT.TransparencyOverTime[1].TimePercent = 0.0;
  261. PT.TransparencyOverTime[1].Value = 0.0;
  262.  
  263. PT.TransparencyOverTime[2].TimePercent = 0.55;
  264. PT.TransparencyOverTime[2].Value = 0.0;
  265.  
  266. PT.TransparencyOverTime[3].TimePercent = 0.75;
  267. PT.TransparencyOverTime[3].Value = 0.3;
  268.  
  269. PT.TransparencyOverTime[4].TimePercent = 1.0;
  270. PT.TransparencyOverTime[4].Value = 0.0;
  271.  
  272. -- size over time
  273. PT.SizeOverTime[1].TimePercent = 0.0;
  274. PT.SizeOverTime[1].Value = 2.0;
  275.  
  276. PT.SizeOverTime[2].TimePercent = 0.3;
  277. PT.SizeOverTime[2].Value = 2.0;
  278.  
  279. PT.SizeOverTime[3].TimePercent = 1.0;
  280. PT.SizeOverTime[3].Value = 15.0;
  281.  
  282. -- Speed over time
  283. PT.SpeedOverTime[1].TimePercent = 0.0;
  284. PT.SpeedOverTime[1].Value = 1.0;
  285.  
  286. PT.SpeedOverTime[2].TimePercent = 1.0;
  287. PT.SpeedOverTime[2].Value = 0.0;
  288.  
  289. -- Tangent Speed over time
  290. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  291. PT.TangentSpeedOverTime[1].Value = 0.0;
  292.  
  293. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  294. PT.TangentSpeedOverTime[2].Value = 5.0;
  295.  
  296.  
  297. -- GravityAcceleration over time
  298. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  299. PT.GravityAccelerationOverTime[1].Value = 2.0;
  300.  
  301. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  302. PT.GravityAccelerationOverTime[2].Value = 2.0;
  303.  
  304. -- AngleSpeed over time
  305. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  306. PT.AngleSpeedOverTime[1].Value = 0.5;
  307.  
  308. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  309. PT.AngleSpeedOverTime[2].Value = 0.2;
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.