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

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_BOMBEREXPLODE)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5. desc.ActivityType = ENACT_ACTIVE
  6.  
  7. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  8. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  9. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  10. desc.LocalPosition = vzbzd1
  11. vzbzd1:delete()
  12. desc.isAnimateTexture = false
  13. desc.RenderType = ENRENDERTYPE_GEOMETRY
  14.  
  15. Emitter = desc.PS.PSDescription
  16. Emitter.ParticleTypesNumber = 3
  17. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  18. Emitter.EmitterPosition = vzbzd2
  19. vzbzd2:delete()
  20. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  21. Emitter.EmitterDirection = vzbzd3
  22. vzbzd3:delete()
  23. Emitter.EmitterLifeTime = 6
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. PT = Emitter.ParticleTypesParams[1]
  40. PT.IsEmitterLocked = false
  41. PT.DrawOrder = 2
  42. PT.Material = ENMAT_PARTICLE_LIGHT
  43.  
  44. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  45.  
  46. PT.ParticlesPerSecond = 0.1;
  47. PT.InitialNumberOfParticles = 20.0;
  48. PT.BaseLifeTime = 3.0;
  49. PT.BaseLifeTimeVariance = 0.4;
  50. PT.BaseSpeed = 1.0;
  51. PT.BaseSpeedVariance = 0.2;
  52.  
  53. PT.TangentSpeed = 1.0;
  54. PT.TangentSpeedVariance = 0.1;
  55. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  56. PT.TangentDirection = vzbzd4
  57. vzbzd4:delete()
  58. PT.TangentAngleMin = 0.0;
  59. PT.TangentAngleMax = 6.28;
  60. PT.IsTangentDependOnBase = false;
  61.  
  62. PT.BaseAngle = 3.0;
  63. PT.BaseAngleVariance = 5.0;
  64. PT.BaseAngleSpeed = 0.5;
  65. PT.BaseAngleSpeedVariance = 0.3;
  66. PT.BaseAngleSpeedDirection = 0;
  67. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  68. PT.BaseDirection = vzbzd5
  69. vzbzd5:delete()
  70. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  71. PT.BaseDirectionVariance = vzbzd6
  72. vzbzd6:delete()
  73. local vzbzd7 = D3DXVECTOR3:new(0,2,0)
  74. PT.BasePosition = vzbzd7
  75. vzbzd7:delete()
  76. local vzbzd8 = D3DXVECTOR3:new(0,2,5)
  77. PT.BasePositionVariance = vzbzd8
  78. vzbzd8:delete()
  79. PT.BaseSize = 2.0;
  80. PT.BaseSizeVariance = 0.3;
  81.  
  82. -- color over time
  83. PT.ColorOverTimeR[1].TimePercent = 0.0;
  84. PT.ColorOverTimeR[1].Value = 0.9;
  85. PT.ColorOverTimeG[1].TimePercent = 0.0;
  86. PT.ColorOverTimeG[1].Value = 0.6;
  87. PT.ColorOverTimeB[1].TimePercent = 0.0;
  88. PT.ColorOverTimeB[1].Value = 0.1;
  89.  
  90. PT.ColorOverTimeR[2].TimePercent = 1.0;
  91. PT.ColorOverTimeR[2].Value = 0.7;
  92. PT.ColorOverTimeG[2].TimePercent = 1.0;
  93. PT.ColorOverTimeG[2].Value = 0.1;
  94. PT.ColorOverTimeB[2].TimePercent = 1.0;
  95. PT.ColorOverTimeB[2].Value = 0.0;
  96.  
  97. -- transparency over time
  98. PT.TransparencyOverTime[1].TimePercent = 0.0;
  99. PT.TransparencyOverTime[1].Value = 0.0;
  100.  
  101. PT.TransparencyOverTime[2].TimePercent = 0.1;
  102. PT.TransparencyOverTime[2].Value = 0.9;
  103.  
  104. PT.TransparencyOverTime[3].TimePercent = 1.0;
  105. PT.TransparencyOverTime[3].Value = 0.0;
  106.  
  107. -- size over time
  108. PT.SizeOverTime[1].TimePercent = 0.0;
  109. PT.SizeOverTime[1].Value = 7.0;
  110.  
  111. PT.SizeOverTime[2].TimePercent = 1.0;
  112. PT.SizeOverTime[2].Value = 18.0;
  113.  
  114. -- Speed over time
  115. PT.SpeedOverTime[1].TimePercent = 0.0;
  116. PT.SpeedOverTime[1].Value = 1.0;
  117.  
  118. PT.SpeedOverTime[2].TimePercent = 1.0;
  119. PT.SpeedOverTime[2].Value = 1.0;
  120.  
  121. -- Tangent Speed over time
  122. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  123. PT.TangentSpeedOverTime[1].Value = 14.0;
  124.  
  125. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  126. PT.TangentSpeedOverTime[2].Value = 0.0;
  127.  
  128.  
  129. -- GravityAcceleration over time
  130. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  131. PT.GravityAccelerationOverTime[1].Value = 0.0;
  132.  
  133. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  134. PT.GravityAccelerationOverTime[2].Value = 0.0;
  135.  
  136. -- AngleSpeed over time
  137. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  138. PT.AngleSpeedOverTime[1].Value = 0.5;
  139.  
  140. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  141. PT.AngleSpeedOverTime[2].Value = 0.1;
  142.  
  143.  
  144.  
  145.  
  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.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193. PT = Emitter.ParticleTypesParams[2]
  194. PT.IsEmitterLocked = false
  195. PT.DrawOrder = 1
  196. PT.Material = ENMAT_SIMPLEPARTICLE
  197.  
  198. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  199.  
  200. PT.ParticlesPerSecond = 0.1;
  201. PT.InitialNumberOfParticles = 20.0;
  202. PT.BaseLifeTime = 3.0;
  203. PT.BaseLifeTimeVariance = 0.4;
  204. PT.BaseSpeed = 1.0;
  205. PT.BaseSpeedVariance = 0.2;
  206.  
  207. PT.TangentSpeed = 1.0;
  208. PT.TangentSpeedVariance = 0.1;
  209. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  210. PT.TangentDirection = vzbzd9
  211. vzbzd9:delete()
  212. PT.TangentAngleMin = 0.0;
  213. PT.TangentAngleMax = 6.28;
  214. PT.IsTangentDependOnBase = false;
  215.  
  216. PT.BaseAngle = 3.0;
  217. PT.BaseAngleVariance = 5.0;
  218. PT.BaseAngleSpeed = 0.5;
  219. PT.BaseAngleSpeedVariance = 0.3;
  220. PT.BaseAngleSpeedDirection = 0;
  221. local vzbzd10 = D3DXVECTOR3:new(0.0,1.0,0.0)
  222. PT.BaseDirection = vzbzd10
  223. vzbzd10:delete()
  224. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  225. PT.BaseDirectionVariance = vzbzd11
  226. vzbzd11:delete()
  227. local vzbzd12 = D3DXVECTOR3:new(0,2,0)
  228. PT.BasePosition = vzbzd12
  229. vzbzd12:delete()
  230. local vzbzd13 = D3DXVECTOR3:new(0,2,5)
  231. PT.BasePositionVariance = vzbzd13
  232. vzbzd13:delete()
  233. PT.BaseSize = 2.0;
  234. PT.BaseSizeVariance = 0.3;
  235.  
  236. -- color over time
  237. PT.ColorOverTimeR[1].TimePercent = 0.0;
  238. PT.ColorOverTimeR[1].Value = 0.7;
  239. PT.ColorOverTimeG[1].TimePercent = 0.0;
  240. PT.ColorOverTimeG[1].Value = 0.7;
  241. PT.ColorOverTimeB[1].TimePercent = 0.0;
  242. PT.ColorOverTimeB[1].Value = 0.7;
  243.  
  244. PT.ColorOverTimeR[2].TimePercent = 1.0;
  245. PT.ColorOverTimeR[2].Value = 0.2;
  246. PT.ColorOverTimeG[2].TimePercent = 1.0;
  247. PT.ColorOverTimeG[2].Value = 0.2;
  248. PT.ColorOverTimeB[2].TimePercent = 1.0;
  249. PT.ColorOverTimeB[2].Value = 0.2;
  250.  
  251. -- transparency over time
  252. PT.TransparencyOverTime[1].TimePercent = 0.0;
  253. PT.TransparencyOverTime[1].Value = 0.0;
  254.  
  255. PT.TransparencyOverTime[2].TimePercent = 0.6;
  256. PT.TransparencyOverTime[2].Value = 0.6;
  257.  
  258. PT.TransparencyOverTime[3].TimePercent = 1.0;
  259. PT.TransparencyOverTime[3].Value = 0.0;
  260.  
  261. -- size over time
  262. PT.SizeOverTime[1].TimePercent = 0.0;
  263. PT.SizeOverTime[1].Value = 7.0;
  264.  
  265. PT.SizeOverTime[2].TimePercent = 1.0;
  266. PT.SizeOverTime[2].Value = 23.0;
  267.  
  268. -- Speed over time
  269. PT.SpeedOverTime[1].TimePercent = 0.0;
  270. PT.SpeedOverTime[1].Value = 1.0;
  271.  
  272. PT.SpeedOverTime[2].TimePercent = 1.0;
  273. PT.SpeedOverTime[2].Value = 1.0;
  274.  
  275. -- Tangent Speed over time
  276. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  277. PT.TangentSpeedOverTime[1].Value = 20.0;
  278.  
  279. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  280. PT.TangentSpeedOverTime[2].Value = 0.0;
  281.  
  282.  
  283. -- GravityAcceleration over time
  284. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  285. PT.GravityAccelerationOverTime[1].Value = 5.0;
  286.  
  287. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  288. PT.GravityAccelerationOverTime[2].Value = 5.0;
  289.  
  290. -- AngleSpeed over time
  291. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  292. PT.AngleSpeedOverTime[1].Value = 0.5;
  293.  
  294. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  295. PT.AngleSpeedOverTime[2].Value = 0.1;
  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.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347. PT = Emitter.ParticleTypesParams[3]
  348. PT.IsEmitterLocked = false
  349. PT.DrawOrder = 3
  350. PT.Material = ENMAT_PARTICLE_LIGHT
  351.  
  352. PT.TextureName = "environment_effect_explosion_sparkles2.dds"
  353.  
  354. PT.ParticlesPerSecond = 0.1;
  355. PT.InitialNumberOfParticles = 25.0;
  356. PT.BaseLifeTime = 4.0;
  357. PT.BaseLifeTimeVariance = 0.4;
  358. PT.BaseSpeed = 1.0;
  359. PT.BaseSpeedVariance = 0.2;
  360.  
  361. PT.TangentSpeed = 1.0;
  362. PT.TangentSpeedVariance = 0.1;
  363. local vzbzd14 = D3DXVECTOR3:new(1.0,0.0,0.0)
  364. PT.TangentDirection = vzbzd14
  365. vzbzd14:delete()
  366. PT.TangentAngleMin = 0.0;
  367. PT.TangentAngleMax = 6.28;
  368. PT.IsTangentDependOnBase = false;
  369.  
  370. PT.BaseAngle = 3.0;
  371. PT.BaseAngleVariance = 5.0;
  372. PT.BaseAngleSpeed = 0.5;
  373. PT.BaseAngleSpeedVariance = 0.3;
  374. PT.BaseAngleSpeedDirection = 0;
  375. local vzbzd15 = D3DXVECTOR3:new(0.0,1.0,0.0)
  376. PT.BaseDirection = vzbzd15
  377. vzbzd15:delete()
  378. local vzbzd16 = D3DXVECTOR3:new(0.0,0.0,0.0)
  379. PT.BaseDirectionVariance = vzbzd16
  380. vzbzd16:delete()
  381. local vzbzd17 = D3DXVECTOR3:new(0,2,0)
  382. PT.BasePosition = vzbzd17
  383. vzbzd17:delete()
  384. local vzbzd18 = D3DXVECTOR3:new(0,2,5)
  385. PT.BasePositionVariance = vzbzd18
  386. vzbzd18:delete()
  387. PT.BaseSize = 2.0;
  388. PT.BaseSizeVariance = 0.3;
  389.  
  390. -- color over time
  391. PT.ColorOverTimeR[1].TimePercent = 0.0;
  392. PT.ColorOverTimeR[1].Value = 0.9;
  393. PT.ColorOverTimeG[1].TimePercent = 0.0;
  394. PT.ColorOverTimeG[1].Value = 0.6;
  395. PT.ColorOverTimeB[1].TimePercent = 0.0;
  396. PT.ColorOverTimeB[1].Value = 0.1;
  397.  
  398. PT.ColorOverTimeR[2].TimePercent = 1.0;
  399. PT.ColorOverTimeR[2].Value = 0.3;
  400. PT.ColorOverTimeG[2].TimePercent = 1.0;
  401. PT.ColorOverTimeG[2].Value = 0.0;
  402. PT.ColorOverTimeB[2].TimePercent = 1.0;
  403. PT.ColorOverTimeB[2].Value = 0.0;
  404.  
  405. -- transparency over time
  406. PT.TransparencyOverTime[1].TimePercent = 0.0;
  407. PT.TransparencyOverTime[1].Value = 0.0;
  408.  
  409. PT.TransparencyOverTime[2].TimePercent = 0.6;
  410. PT.TransparencyOverTime[2].Value = 1.0;
  411.  
  412. PT.TransparencyOverTime[3].TimePercent = 0.86;
  413. PT.TransparencyOverTime[3].Value = 1.0;
  414.  
  415. PT.TransparencyOverTime[4].TimePercent = 1.0;
  416. PT.TransparencyOverTime[4].Value = 0.0;
  417.  
  418. -- size over time
  419. PT.SizeOverTime[1].TimePercent = 0.0;
  420. PT.SizeOverTime[1].Value = 3.0;
  421.  
  422. PT.SizeOverTime[2].TimePercent = 1.0;
  423. PT.SizeOverTime[2].Value = 12.0;
  424.  
  425. -- Speed over time
  426. PT.SpeedOverTime[1].TimePercent = 0.0;
  427. PT.SpeedOverTime[1].Value = 1.0;
  428.  
  429. PT.SpeedOverTime[2].TimePercent = 1.0;
  430. PT.SpeedOverTime[2].Value = 1.0;
  431.  
  432. -- Tangent Speed over time
  433. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  434. PT.TangentSpeedOverTime[1].Value = 12.0;
  435.  
  436. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  437. PT.TangentSpeedOverTime[2].Value = 0.0;
  438.  
  439.  
  440. -- GravityAcceleration over time
  441. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  442. PT.GravityAccelerationOverTime[1].Value = -8.0;
  443.  
  444. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  445. PT.GravityAccelerationOverTime[2].Value = 0.0;
  446.  
  447. -- AngleSpeed over time
  448. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  449. PT.AngleSpeedOverTime[1].Value = 0.5;
  450.  
  451. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  452. PT.AngleSpeedOverTime[2].Value = 0.1;
  453.