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

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ROCKETENGINE2)
  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 = 1
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. PT = Emitter.ParticleTypesParams[1]
  36. PT.IsEmitterLocked = false
  37. PT.DrawOrder = 1
  38. PT.Material = ENMAT_PARTICLE_LIGHT
  39.  
  40.  
  41. PT.TextureName = "environment_effect_explosion_smoke14.dds"
  42.  
  43.  
  44.  
  45. PT.ParticlesPerSecond = 90.0;
  46. PT.InitialNumberOfParticles = 0.0;
  47. PT.BaseLifeTime = 0.2;
  48. PT.BaseLifeTimeVariance = 0.2;
  49. PT.BaseSpeed = 0.0;
  50. PT.BaseSpeedVariance = 0.0;
  51.  
  52. PT.TangentSpeed = 0.0;
  53. PT.TangentSpeedVariance = 0.0;
  54. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  55. PT.TangentDirection = vzbzd4
  56. vzbzd4:delete()
  57. PT.TangentAngleMin = 0.0;
  58. PT.TangentAngleMax = 6.28;
  59. PT.IsTangentDependOnBase = false;
  60.  
  61. PT.BaseAngle = 1.65;
  62. PT.BaseAngleVariance = 5.0;
  63. PT.BaseAngleSpeed = 1.0;
  64. PT.BaseAngleSpeedVariance = 1.0;
  65. PT.BaseAngleSpeedDirection = 0;
  66. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,1.0)
  67. PT.BaseDirection = vzbzd5
  68. vzbzd5:delete()
  69. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  70. PT.BaseDirectionVariance = vzbzd6
  71. vzbzd6:delete()
  72. local vzbzd7 = D3DXVECTOR3:new(0,0,-5)
  73. PT.BasePosition = vzbzd7
  74. vzbzd7:delete()
  75. local vzbzd8 = D3DXVECTOR3:new(0,0,0)
  76. PT.BasePositionVariance = vzbzd8
  77. vzbzd8:delete()
  78. PT.BaseSize = 3.0;
  79. PT.BaseSizeVariance = 0.8;
  80.  
  81. -- color over time
  82. PT.ColorOverTimeR[1].TimePercent = 0.0;
  83. PT.ColorOverTimeR[1].Value = 1.0;
  84. PT.ColorOverTimeG[1].TimePercent = 0.0;
  85. PT.ColorOverTimeG[1].Value = 0.5;
  86. PT.ColorOverTimeB[1].TimePercent = 0.0;
  87. PT.ColorOverTimeB[1].Value = 0.0;
  88.  
  89. PT.ColorOverTimeR[2].TimePercent = 1.0;
  90. PT.ColorOverTimeR[2].Value = 0.5;
  91. PT.ColorOverTimeG[2].TimePercent = 1.0;
  92. PT.ColorOverTimeG[2].Value = 0.0;
  93. PT.ColorOverTimeB[2].TimePercent = 1.0;
  94. PT.ColorOverTimeB[2].Value = 0.0;
  95.  
  96. -- transparency over time
  97. PT.TransparencyOverTime[1].TimePercent = 0.0;
  98. PT.TransparencyOverTime[1].Value = 0.0;
  99.  
  100. PT.TransparencyOverTime[2].TimePercent = 0.05;
  101. PT.TransparencyOverTime[2].Value = 1.0;
  102.  
  103. PT.TransparencyOverTime[3].TimePercent = 1.0;
  104. PT.TransparencyOverTime[3].Value = 0.0;
  105.  
  106.  
  107. -- size over time
  108. PT.SizeOverTime[1].TimePercent = 0.0;
  109. PT.SizeOverTime[1].Value = 0.8;
  110.  
  111. PT.SizeOverTime[2].TimePercent = 1.0;
  112. PT.SizeOverTime[2].Value = 5.0;
  113.  
  114.  
  115. -- Speed over time
  116. PT.SpeedOverTime[1].TimePercent = 0.0;
  117. PT.SpeedOverTime[1].Value = 0.0;
  118.  
  119. PT.SpeedOverTime[2].TimePercent = 0.1;
  120. PT.SpeedOverTime[2].Value = 0.0;
  121.  
  122. PT.SpeedOverTime[3].TimePercent = 1.0;
  123. PT.SpeedOverTime[3].Value = 0.0;
  124.  
  125. -- Tangent Speed over time
  126. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  127. PT.TangentSpeedOverTime[1].Value = 2.0;
  128.  
  129. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  130. PT.TangentSpeedOverTime[2].Value = 2.0;
  131.  
  132.  
  133. -- GravityAcceleration over time
  134. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  135. PT.GravityAccelerationOverTime[1].Value = 0.0;
  136.  
  137. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  138. PT.GravityAccelerationOverTime[2].Value = 0.0;
  139.  
  140. -- AngleSpeed over time
  141. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  142. PT.AngleSpeedOverTime[1].Value = 0.0;
  143.  
  144. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  145. PT.AngleSpeedOverTime[2].Value = 0.0;
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  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. PT = Emitter.ParticleTypesParams[2]
  186. PT.IsEmitterLocked = false
  187. PT.DrawOrder = 2
  188. PT.Material = ENMAT_SIMPLEPARTICLE
  189.  
  190.  
  191. PT.TextureName = "environment_effect_explosion_smoke7.dds"
  192.  
  193.  
  194.  
  195. PT.ParticlesPerSecond = 80.0;
  196. PT.InitialNumberOfParticles = 0.0;
  197. PT.BaseLifeTime = 1.2;
  198. PT.BaseLifeTimeVariance = 0.8;
  199. PT.BaseSpeed = 0.0;
  200. PT.BaseSpeedVariance = 0.0;
  201.  
  202. PT.TangentSpeed = 0.0;
  203. PT.TangentSpeedVariance = 0.0;
  204. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  205. PT.TangentDirection = vzbzd9
  206. vzbzd9:delete()
  207. PT.TangentAngleMin = 0.0;
  208. PT.TangentAngleMax = 6.28;
  209. PT.IsTangentDependOnBase = false;
  210.  
  211. PT.BaseAngle = 1.65;
  212. PT.BaseAngleVariance = 5.0;
  213. PT.BaseAngleSpeed = 1.0;
  214. PT.BaseAngleSpeedVariance = 1.0;
  215. PT.BaseAngleSpeedDirection = 0;
  216. local vzbzd10 = D3DXVECTOR3:new(0.0,0.0,1.0)
  217. PT.BaseDirection = vzbzd10
  218. vzbzd10:delete()
  219. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  220. PT.BaseDirectionVariance = vzbzd11
  221. vzbzd11:delete()
  222. local vzbzd12 = D3DXVECTOR3:new(0,0,-5)
  223. PT.BasePosition = vzbzd12
  224. vzbzd12:delete()
  225. local vzbzd13 = D3DXVECTOR3:new(0,0,0)
  226. PT.BasePositionVariance = vzbzd13
  227. vzbzd13:delete()
  228. PT.BaseSize = 3.0;
  229. PT.BaseSizeVariance = 0.7;
  230.  
  231. -- color over time
  232. PT.ColorOverTimeR[1].TimePercent = 0.0;
  233. PT.ColorOverTimeR[1].Value = 0.8;
  234. PT.ColorOverTimeG[1].TimePercent = 0.0;
  235. PT.ColorOverTimeG[1].Value = 0.8;
  236. PT.ColorOverTimeB[1].TimePercent = 0.0;
  237. PT.ColorOverTimeB[1].Value = 0.8;
  238.  
  239. PT.ColorOverTimeR[2].TimePercent = 1.0;
  240. PT.ColorOverTimeR[2].Value = 0.0;
  241. PT.ColorOverTimeG[2].TimePercent = 1.0;
  242. PT.ColorOverTimeG[2].Value = 0.0;
  243. PT.ColorOverTimeB[2].TimePercent = 1.0;
  244. PT.ColorOverTimeB[2].Value = 0.0;
  245.  
  246. -- transparency over time
  247. PT.TransparencyOverTime[1].TimePercent = 0.0;
  248. PT.TransparencyOverTime[1].Value = 0.0;
  249.  
  250. PT.TransparencyOverTime[2].TimePercent = 0.15;
  251. PT.TransparencyOverTime[2].Value = 0.5;
  252.  
  253. PT.TransparencyOverTime[3].TimePercent = 1.0;
  254. PT.TransparencyOverTime[3].Value = 0.0;
  255.  
  256.  
  257. -- size over time
  258. PT.SizeOverTime[1].TimePercent = 0.0;
  259. PT.SizeOverTime[1].Value = 1.0;
  260.  
  261. PT.SizeOverTime[2].TimePercent = 1.0;
  262. PT.SizeOverTime[2].Value = 8.0;
  263.  
  264.  
  265. -- Speed over time
  266. PT.SpeedOverTime[1].TimePercent = 0.0;
  267. PT.SpeedOverTime[1].Value = 0.0;
  268.  
  269. PT.SpeedOverTime[2].TimePercent = 0.1;
  270. PT.SpeedOverTime[2].Value = 0.0;
  271.  
  272. PT.SpeedOverTime[3].TimePercent = 1.0;
  273. PT.SpeedOverTime[3].Value = 0.0;
  274.  
  275. -- Tangent Speed over time
  276. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  277. PT.TangentSpeedOverTime[1].Value = 2.0;
  278.  
  279. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  280. PT.TangentSpeedOverTime[2].Value = 2.0;
  281.  
  282.  
  283. -- GravityAcceleration over time
  284. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  285. PT.GravityAccelerationOverTime[1].Value = 0.0;
  286.  
  287. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  288. PT.GravityAccelerationOverTime[2].Value = 0.0;
  289.  
  290. -- AngleSpeed over time
  291. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  292. PT.AngleSpeedOverTime[1].Value = 0.0;
  293.  
  294. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  295. PT.AngleSpeedOverTime[2].Value = 0.0;
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.