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

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_EXPLOSION_BIG4)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ActivityType = ENACT_ACTIVE
  7.  
  8. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  9. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  10. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  11. desc.LocalPosition = vzbzd1
  12. vzbzd1:delete()
  13. desc.isAnimateTexture = false
  14. desc.RenderType = ENRENDERTYPE_GEOMETRY
  15.  
  16. Emitter = desc.PS.PSDescription
  17. Emitter.ParticleTypesNumber = 5
  18. local vzbzd2 = D3DXVECTOR3:new(0,10,0)
  19. Emitter.EmitterPosition = vzbzd2
  20. vzbzd2:delete()
  21. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  22. Emitter.EmitterDirection = vzbzd3
  23. vzbzd3:delete()
  24. Emitter.EmitterLifeTime = 1
  25.  
  26.  
  27. PT = Emitter.ParticleTypesParams[1]
  28. PT.IsEmitterLocked = false
  29. PT.DrawOrder = 5
  30. PT.Material = ENMAT_SIMPLEPARTICLE
  31.  
  32. PT.TextureName = "environment_effect_explosion_trash1.dds"
  33.  
  34. PT.ParticlesPerSecond = 0.1;
  35. PT.InitialNumberOfParticles = 30.0;
  36. PT.BaseLifeTime = 5.0;
  37. PT.BaseLifeTimeVariance = 0.0;
  38. PT.BaseSpeed = 2.0;
  39. PT.BaseSpeedVariance = 1.0;
  40.  
  41. PT.TangentSpeed = 1.0;
  42. PT.TangentSpeedVariance = 1.5;
  43. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  44. PT.TangentDirection = vzbzd4
  45. vzbzd4:delete()
  46. PT.TangentAngleMin = 0.0;
  47. PT.TangentAngleMax = 6.28;
  48. PT.IsTangentDependOnBase = false;
  49.  
  50. PT.BaseAngle = 3.0;
  51. PT.BaseAngleVariance = 5.0;
  52. PT.BaseAngleSpeed = 0.2;
  53. PT.BaseAngleSpeedVariance = 0.3;
  54. PT.BaseAngleSpeedDirection = 0;
  55. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  56. PT.BaseDirection = vzbzd5
  57. vzbzd5:delete()
  58. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  59. PT.BaseDirectionVariance = vzbzd6
  60. vzbzd6:delete()
  61. local vzbzd7 = D3DXVECTOR3:new(0,5,0)
  62. PT.BasePosition = vzbzd7
  63. vzbzd7:delete()
  64. local vzbzd8 = D3DXVECTOR3:new(25,12,25)
  65. PT.BasePositionVariance = vzbzd8
  66. vzbzd8:delete()
  67. PT.BaseSize = 3.0;
  68. PT.BaseSizeVariance = 1.0;
  69.  
  70. -- color over time
  71. PT.ColorOverTimeR[1].TimePercent = 0.0;
  72. PT.ColorOverTimeR[1].Value = 0.5;
  73. PT.ColorOverTimeG[1].TimePercent = 0.0;
  74. PT.ColorOverTimeG[1].Value = 0.5;
  75. PT.ColorOverTimeB[1].TimePercent = 0.0;
  76. PT.ColorOverTimeB[1].Value = 0.5;
  77.  
  78. PT.ColorOverTimeR[2].TimePercent = 1.0;
  79. PT.ColorOverTimeR[2].Value = 0.5;
  80. PT.ColorOverTimeG[2].TimePercent = 1.0;
  81. PT.ColorOverTimeG[2].Value = 0.5;
  82. PT.ColorOverTimeB[2].TimePercent = 1.0;
  83. PT.ColorOverTimeB[2].Value = 0.5;
  84.  
  85. -- transparency over time
  86. PT.TransparencyOverTime[1].TimePercent = 0.0;
  87. PT.TransparencyOverTime[1].Value = 1.0;
  88.  
  89. PT.TransparencyOverTime[2].TimePercent = 1.0;
  90. PT.TransparencyOverTime[2].Value = 1.0;
  91.  
  92. -- size over time
  93. PT.SizeOverTime[1].TimePercent = 0.0;
  94. PT.SizeOverTime[1].Value = 2.0;
  95.  
  96. PT.SizeOverTime[2].TimePercent = 0.2;
  97. PT.SizeOverTime[2].Value = 4.0;
  98.  
  99. PT.SizeOverTime[3].TimePercent = 1.0;
  100. PT.SizeOverTime[3].Value = 6.0;
  101.  
  102. -- Speed over time
  103. PT.SpeedOverTime[1].TimePercent = 0.0;
  104. PT.SpeedOverTime[1].Value = 20.0;
  105.  
  106. PT.SpeedOverTime[2].TimePercent = 0.5;
  107. PT.SpeedOverTime[2].Value = 0.0;
  108.  
  109. PT.SpeedOverTime[3].TimePercent = 1.0;
  110. PT.SpeedOverTime[3].Value = 0.0;
  111.  
  112. -- Tangent Speed over time
  113. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  114. PT.TangentSpeedOverTime[1].Value = 40.0;
  115.  
  116. PT.TangentSpeedOverTime[2].TimePercent = 0.03;
  117. PT.TangentSpeedOverTime[2].Value = 10.0;
  118.  
  119. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  120. PT.TangentSpeedOverTime[3].Value = 20.0;
  121.  
  122.  
  123. -- GravityAcceleration over time
  124. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  125. PT.GravityAccelerationOverTime[1].Value = 40.0;
  126.  
  127. PT.GravityAccelerationOverTime[2].TimePercent = 0.2;
  128. PT.GravityAccelerationOverTime[2].Value = -50.0;
  129.  
  130. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  131. PT.GravityAccelerationOverTime[3].Value = -100.0;
  132.  
  133. -- AngleSpeed over time
  134. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  135. PT.AngleSpeedOverTime[1].Value = 1.0;
  136.  
  137. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  138. PT.AngleSpeedOverTime[2].Value = 2.0;
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151. PT = Emitter.ParticleTypesParams[2]
  152. PT.IsEmitterLocked = false
  153. PT.DrawOrder = 4
  154. PT.Material = ENMAT_SIMPLEPARTICLE
  155.  
  156. PT.TextureName = "environment_effect_explosion_trash2.dds"
  157.  
  158. PT.ParticlesPerSecond = 0.1;
  159. PT.InitialNumberOfParticles = 25.0;
  160. PT.BaseLifeTime = 5.0;
  161. PT.BaseLifeTimeVariance = 0.0;
  162. PT.BaseSpeed = 2.0;
  163. PT.BaseSpeedVariance = 1.0;
  164.  
  165. PT.TangentSpeed = 1.0;
  166. PT.TangentSpeedVariance = 1.5;
  167. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  168. PT.TangentDirection = vzbzd9
  169. vzbzd9:delete()
  170. PT.TangentAngleMin = 0.0;
  171. PT.TangentAngleMax = 6.28;
  172. PT.IsTangentDependOnBase = false;
  173.  
  174. PT.BaseAngle = 3.0;
  175. PT.BaseAngleVariance = 5.0;
  176. PT.BaseAngleSpeed = 0.2;
  177. PT.BaseAngleSpeedVariance = 0.3;
  178. PT.BaseAngleSpeedDirection = 0;
  179. local vzbzd10 = D3DXVECTOR3:new(0.0,1.0,0.0)
  180. PT.BaseDirection = vzbzd10
  181. vzbzd10:delete()
  182. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  183. PT.BaseDirectionVariance = vzbzd11
  184. vzbzd11:delete()
  185. local vzbzd12 = D3DXVECTOR3:new(0,5,0)
  186. PT.BasePosition = vzbzd12
  187. vzbzd12:delete()
  188. local vzbzd13 = D3DXVECTOR3:new(25,12,25)
  189. PT.BasePositionVariance = vzbzd13
  190. vzbzd13:delete()
  191. PT.BaseSize = 3.0;
  192. PT.BaseSizeVariance = 1.0;
  193.  
  194. -- color over time
  195. PT.ColorOverTimeR[1].TimePercent = 0.0;
  196. PT.ColorOverTimeR[1].Value = 0.5;
  197. PT.ColorOverTimeG[1].TimePercent = 0.0;
  198. PT.ColorOverTimeG[1].Value = 0.5;
  199. PT.ColorOverTimeB[1].TimePercent = 0.0;
  200. PT.ColorOverTimeB[1].Value = 0.5;
  201.  
  202. PT.ColorOverTimeR[2].TimePercent = 1.0;
  203. PT.ColorOverTimeR[2].Value = 0.5;
  204. PT.ColorOverTimeG[2].TimePercent = 1.0;
  205. PT.ColorOverTimeG[2].Value = 0.5;
  206. PT.ColorOverTimeB[2].TimePercent = 1.0;
  207. PT.ColorOverTimeB[2].Value = 0.5;
  208.  
  209. -- transparency over time
  210. PT.TransparencyOverTime[1].TimePercent = 0.0;
  211. PT.TransparencyOverTime[1].Value = 1.0;
  212.  
  213. PT.TransparencyOverTime[2].TimePercent = 1.0;
  214. PT.TransparencyOverTime[2].Value = 1.0;
  215.  
  216. -- size over time
  217. PT.SizeOverTime[1].TimePercent = 0.0;
  218. PT.SizeOverTime[1].Value = 2.0;
  219.  
  220. PT.SizeOverTime[2].TimePercent = 0.2;
  221. PT.SizeOverTime[2].Value = 4.0;
  222.  
  223. PT.SizeOverTime[3].TimePercent = 1.0;
  224. PT.SizeOverTime[3].Value = 6.0;
  225.  
  226. -- Speed over time
  227. PT.SpeedOverTime[1].TimePercent = 0.0;
  228. PT.SpeedOverTime[1].Value = 10.0;
  229.  
  230. PT.SpeedOverTime[2].TimePercent = 0.5;
  231. PT.SpeedOverTime[2].Value = 0.0;
  232.  
  233. PT.SpeedOverTime[3].TimePercent = 1.0;
  234. PT.SpeedOverTime[3].Value = 0.0;
  235.  
  236. -- Tangent Speed over time
  237. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  238. PT.TangentSpeedOverTime[1].Value = 10.0;
  239.  
  240. PT.TangentSpeedOverTime[2].TimePercent = 0.03;
  241. PT.TangentSpeedOverTime[2].Value = 10.0;
  242.  
  243. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  244. PT.TangentSpeedOverTime[3].Value = 10.0;
  245.  
  246.  
  247. -- GravityAcceleration over time
  248. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  249. PT.GravityAccelerationOverTime[1].Value = 80.0;
  250.  
  251. PT.GravityAccelerationOverTime[2].TimePercent = 0.2;
  252. PT.GravityAccelerationOverTime[2].Value = -50.0;
  253.  
  254. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  255. PT.GravityAccelerationOverTime[3].Value = -100.0;
  256.  
  257. -- AngleSpeed over time
  258. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  259. PT.AngleSpeedOverTime[1].Value = 1.0;
  260.  
  261. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  262. PT.AngleSpeedOverTime[2].Value = 2.0;
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277. PT = Emitter.ParticleTypesParams[3]
  278. PT.IsEmitterLocked = false
  279. PT.DrawOrder = 2
  280. PT.Material = ENMAT_SIMPLEPARTICLE
  281.  
  282. PT.TextureName = "environment_effect_explosion_smoke6.dds"
  283.  
  284.  
  285. PT.ParticlesPerSecond = 0.1;
  286. PT.InitialNumberOfParticles = 20.0;
  287. PT.BaseLifeTime = 4.5;
  288. PT.BaseLifeTimeVariance = 0.1;
  289. PT.BaseSpeed = 5.0;
  290. PT.BaseSpeedVariance = 1.0;
  291.  
  292. PT.TangentSpeed = 2.0;
  293. PT.TangentSpeedVariance = 0.1;
  294. local vzbzd14 = D3DXVECTOR3:new(1.0,0.0,0.0)
  295. PT.TangentDirection = vzbzd14
  296. vzbzd14:delete()
  297. PT.TangentAngleMin = 0.0;
  298. PT.TangentAngleMax = 6.28;
  299. PT.IsTangentDependOnBase = false;
  300.  
  301. PT.BaseAngle = 3.0;
  302. PT.BaseAngleVariance = 5.0;
  303. PT.BaseAngleSpeed = 0.1;
  304. PT.BaseAngleSpeedVariance = 0.3;
  305. PT.BaseAngleSpeedDirection = 0;
  306. local vzbzd15 = D3DXVECTOR3:new(0.0,1.0,0.0)
  307. PT.BaseDirection = vzbzd15
  308. vzbzd15:delete()
  309. local vzbzd16 = D3DXVECTOR3:new(0.0,0.0,0.0)
  310. PT.BaseDirectionVariance = vzbzd16
  311. vzbzd16:delete()
  312. local vzbzd17 = D3DXVECTOR3:new(0,7,0)
  313. PT.BasePosition = vzbzd17
  314. vzbzd17:delete()
  315. local vzbzd18 = D3DXVECTOR3:new(15,15,15)
  316. PT.BasePositionVariance = vzbzd18
  317. vzbzd18:delete()
  318. PT.BaseSize = 4.0;
  319. PT.BaseSizeVariance = 0.7;
  320.  
  321. -- color over time
  322. PT.ColorOverTimeR[1].TimePercent = 0.0;
  323. PT.ColorOverTimeR[1].Value = 0.5;
  324. PT.ColorOverTimeG[1].TimePercent = 0.0;
  325. PT.ColorOverTimeG[1].Value = 0.5;
  326. PT.ColorOverTimeB[1].TimePercent = 0.0;
  327. PT.ColorOverTimeB[1].Value = 0.5;
  328.  
  329. PT.ColorOverTimeR[2].TimePercent = 1.0;
  330. PT.ColorOverTimeR[2].Value = 0.5;
  331. PT.ColorOverTimeG[2].TimePercent = 1.0;
  332. PT.ColorOverTimeG[2].Value = 0.5;
  333. PT.ColorOverTimeB[2].TimePercent = 1.0;
  334. PT.ColorOverTimeB[2].Value = 0.5;
  335.  
  336. -- transparency over time
  337. PT.TransparencyOverTime[1].TimePercent = 0.0;
  338. PT.TransparencyOverTime[1].Value = 0.0;
  339.  
  340. PT.TransparencyOverTime[2].TimePercent = 0.05;
  341. PT.TransparencyOverTime[2].Value = 0.8;
  342.  
  343. PT.TransparencyOverTime[3].TimePercent = 0.1;
  344. PT.TransparencyOverTime[3].Value = 0.4;
  345.  
  346. PT.TransparencyOverTime[4].TimePercent = 0.2;
  347. PT.TransparencyOverTime[4].Value = 0.6;
  348.  
  349. PT.TransparencyOverTime[5].TimePercent = 0.6;
  350. PT.TransparencyOverTime[5].Value = 0.6;
  351.  
  352. PT.TransparencyOverTime[6].TimePercent = 0.7;
  353. PT.TransparencyOverTime[6].Value = 0.2;
  354.  
  355. PT.TransparencyOverTime[7].TimePercent = 1.0;
  356. PT.TransparencyOverTime[7].Value = 0.0;
  357.  
  358. -- size over time
  359. PT.SizeOverTime[1].TimePercent = 0.0;
  360. PT.SizeOverTime[1].Value = 4.0;
  361.  
  362. PT.SizeOverTime[2].TimePercent = 0.07;
  363. PT.SizeOverTime[2].Value = 12.0;
  364.  
  365. PT.SizeOverTime[3].TimePercent = 1.0;
  366. PT.SizeOverTime[3].Value = 17.0;
  367.  
  368. -- Speed over time
  369. PT.SpeedOverTime[1].TimePercent = 0.0;
  370. PT.SpeedOverTime[1].Value = 1.0;
  371.  
  372. PT.SpeedOverTime[2].TimePercent = 0.4;
  373. PT.SpeedOverTime[2].Value = 1.0;
  374.  
  375. PT.SpeedOverTime[3].TimePercent = 0.5;
  376. PT.SpeedOverTime[3].Value = 0.0;
  377.  
  378. PT.SpeedOverTime[4].TimePercent = 1.0;
  379. PT.SpeedOverTime[4].Value = 0.0;
  380.  
  381. -- Tangent Speed over time
  382. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  383. PT.TangentSpeedOverTime[1].Value = 5.0;
  384.  
  385. PT.TangentSpeedOverTime[2].TimePercent = 0.4;
  386. PT.TangentSpeedOverTime[2].Value = 0.0;
  387.  
  388. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  389. PT.TangentSpeedOverTime[3].Value = 0.0;
  390.  
  391. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  392. PT.TangentSpeedOverTime[4].Value = 0.0;
  393.  
  394.  
  395. -- GravityAcceleration over time
  396. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  397. PT.GravityAccelerationOverTime[1].Value = 0.0;
  398.  
  399. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  400. PT.GravityAccelerationOverTime[2].Value = 0.0;
  401.  
  402. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  403. PT.GravityAccelerationOverTime[3].Value = 0.0;
  404.  
  405. -- AngleSpeed over time
  406. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  407. PT.AngleSpeedOverTime[1].Value = 1.0;
  408.  
  409. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  410. PT.AngleSpeedOverTime[2].Value = 1.0;
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422. PT = Emitter.ParticleTypesParams[5]
  423. PT.IsEmitterLocked = false
  424. PT.DrawOrder = 1
  425. PT.Material = ENMAT_SIMPLEPARTICLE
  426.  
  427. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  428.  
  429.  
  430. PT.ParticlesPerSecond = 0.1;
  431. PT.InitialNumberOfParticles = 10.0;
  432. PT.BaseLifeTime = 10.0;
  433. PT.BaseLifeTimeVariance = 0.0;
  434. PT.BaseSpeed = 5.0;
  435. PT.BaseSpeedVariance = 1.0;
  436.  
  437. PT.TangentSpeed = 2.0;
  438. PT.TangentSpeedVariance = 0.1;
  439. local vzbzd19 = D3DXVECTOR3:new(1.0,0.0,0.0)
  440. PT.TangentDirection = vzbzd19
  441. vzbzd19:delete()
  442. PT.TangentAngleMin = 0.0;
  443. PT.TangentAngleMax = 6.28;
  444. PT.IsTangentDependOnBase = false;
  445.  
  446. PT.BaseAngle = 3.0;
  447. PT.BaseAngleVariance = 5.0;
  448. PT.BaseAngleSpeed = 0.05;
  449. PT.BaseAngleSpeedVariance = 0.0;
  450. PT.BaseAngleSpeedDirection = 0;
  451. local vzbzd20 = D3DXVECTOR3:new(0.0,1.0,0.0)
  452. PT.BaseDirection = vzbzd20
  453. vzbzd20:delete()
  454. local vzbzd21 = D3DXVECTOR3:new(0.0,0.0,0.0)
  455. PT.BaseDirectionVariance = vzbzd21
  456. vzbzd21:delete()
  457. local vzbzd22 = D3DXVECTOR3:new(0,5,0)
  458. PT.BasePosition = vzbzd22
  459. vzbzd22:delete()
  460. local vzbzd23 = D3DXVECTOR3:new(15,5,15)
  461. PT.BasePositionVariance = vzbzd23
  462. vzbzd23:delete()
  463. PT.BaseSize = 3.0;
  464. PT.BaseSizeVariance = 0.7;
  465.  
  466. -- color over time
  467. PT.ColorOverTimeR[1].TimePercent = 0.0;
  468. PT.ColorOverTimeR[1].Value = 0.5;
  469. PT.ColorOverTimeG[1].TimePercent = 0.0;
  470. PT.ColorOverTimeG[1].Value = 0.5;
  471. PT.ColorOverTimeB[1].TimePercent = 0.0;
  472. PT.ColorOverTimeB[1].Value = 0.5;
  473.  
  474. PT.ColorOverTimeR[2].TimePercent = 1.0;
  475. PT.ColorOverTimeR[2].Value = 0.5;
  476. PT.ColorOverTimeG[2].TimePercent = 1.0;
  477. PT.ColorOverTimeG[2].Value = 0.5;
  478. PT.ColorOverTimeB[2].TimePercent = 1.0;
  479. PT.ColorOverTimeB[2].Value = 0.5;
  480.  
  481. -- transparency over time
  482. PT.TransparencyOverTime[1].TimePercent = 0.0;
  483. PT.TransparencyOverTime[1].Value = 0.0;
  484.  
  485. PT.TransparencyOverTime[2].TimePercent = 0.2;
  486. PT.TransparencyOverTime[2].Value = 0.3;
  487.  
  488. PT.TransparencyOverTime[3].TimePercent = 0.8;
  489. PT.TransparencyOverTime[3].Value = 0.2;
  490.  
  491. PT.TransparencyOverTime[4].TimePercent = 1.0;
  492. PT.TransparencyOverTime[4].Value = 0.0;
  493.  
  494. -- size over time
  495. PT.SizeOverTime[1].TimePercent = 0.0;
  496. PT.SizeOverTime[1].Value = 4.0;
  497.  
  498. PT.SizeOverTime[2].TimePercent = 0.07;
  499. PT.SizeOverTime[2].Value = 12.0;
  500.  
  501. PT.SizeOverTime[3].TimePercent = 1.0;
  502. PT.SizeOverTime[3].Value = 17.0;
  503.  
  504. -- Speed over time
  505. PT.SpeedOverTime[1].TimePercent = 0.0;
  506. PT.SpeedOverTime[1].Value = 1.0;
  507.  
  508. PT.SpeedOverTime[2].TimePercent = 0.4;
  509. PT.SpeedOverTime[2].Value = 1.0;
  510.  
  511. PT.SpeedOverTime[3].TimePercent = 0.5;
  512. PT.SpeedOverTime[3].Value = 0.0;
  513.  
  514. PT.SpeedOverTime[4].TimePercent = 1.0;
  515. PT.SpeedOverTime[4].Value = 0.0;
  516.  
  517. -- Tangent Speed over time
  518. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  519. PT.TangentSpeedOverTime[1].Value = 5.0;
  520.  
  521. PT.TangentSpeedOverTime[2].TimePercent = 0.4;
  522. PT.TangentSpeedOverTime[2].Value = 0.0;
  523.  
  524. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  525. PT.TangentSpeedOverTime[3].Value = 0.0;
  526.  
  527. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  528. PT.TangentSpeedOverTime[4].Value = 0.0;
  529.  
  530.  
  531. -- GravityAcceleration over time
  532. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  533. PT.GravityAccelerationOverTime[1].Value = 0.0;
  534.  
  535. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  536. PT.GravityAccelerationOverTime[2].Value = 0.0;
  537.  
  538. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  539. PT.GravityAccelerationOverTime[3].Value = 0.0;
  540.  
  541. -- AngleSpeed over time
  542. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  543. PT.AngleSpeedOverTime[1].Value = 1.0;
  544.  
  545. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  546. PT.AngleSpeedOverTime[2].Value = 1.0;
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554. PT = Emitter.ParticleTypesParams[4]
  555. PT.IsEmitterLocked = false
  556. PT.DrawOrder = 3
  557. PT.Material = ENMAT_PARTICLE_LIGHT
  558.  
  559. PT.TextureName = "environment_effect_explosion_sparkles1.dds"
  560.  
  561.  
  562. PT.ParticlesPerSecond = 0.1;
  563. PT.InitialNumberOfParticles = 15.0;
  564. PT.BaseLifeTime = 4.0;
  565. PT.BaseLifeTimeVariance = 0.3;
  566. PT.BaseSpeed = 5.0;
  567. PT.BaseSpeedVariance = 1.0;
  568.  
  569. PT.TangentSpeed = 2.0;
  570. PT.TangentSpeedVariance = 0.1;
  571. local vzbzd24 = D3DXVECTOR3:new(1.0,0.0,0.0)
  572. PT.TangentDirection = vzbzd24
  573. vzbzd24:delete()
  574. PT.TangentAngleMin = 0.0;
  575. PT.TangentAngleMax = 6.28;
  576. PT.IsTangentDependOnBase = false;
  577.  
  578. PT.BaseAngle = 3.0;
  579. PT.BaseAngleVariance = 5.0;
  580. PT.BaseAngleSpeed = 0.0;
  581. PT.BaseAngleSpeedVariance = 0.0;
  582. PT.BaseAngleSpeedDirection = 0;
  583. local vzbzd25 = D3DXVECTOR3:new(0.0,1.0,0.0)
  584. PT.BaseDirection = vzbzd25
  585. vzbzd25:delete()
  586. local vzbzd26 = D3DXVECTOR3:new(0.0,0.0,0.0)
  587. PT.BaseDirectionVariance = vzbzd26
  588. vzbzd26:delete()
  589. local vzbzd27 = D3DXVECTOR3:new(0,18,0)
  590. PT.BasePosition = vzbzd27
  591. vzbzd27:delete()
  592. local vzbzd28 = D3DXVECTOR3:new(25,35,25)
  593. PT.BasePositionVariance = vzbzd28
  594. vzbzd28:delete()
  595. PT.BaseSize = 3.0;
  596. PT.BaseSizeVariance = 0.7;
  597.  
  598. -- color over time
  599. PT.ColorOverTimeR[1].TimePercent = 0.0;
  600. PT.ColorOverTimeR[1].Value = 0.4;
  601. PT.ColorOverTimeG[1].TimePercent = 0.0;
  602. PT.ColorOverTimeG[1].Value = 0.5;
  603. PT.ColorOverTimeB[1].TimePercent = 0.0;
  604. PT.ColorOverTimeB[1].Value = 0.6;
  605.  
  606. PT.ColorOverTimeR[2].TimePercent = 1.0;
  607. PT.ColorOverTimeR[2].Value = 0.5;
  608. PT.ColorOverTimeG[2].TimePercent = 1.0;
  609. PT.ColorOverTimeG[2].Value = 0.5;
  610. PT.ColorOverTimeB[2].TimePercent = 1.0;
  611. PT.ColorOverTimeB[2].Value = 0.5;
  612.  
  613. -- transparency over time
  614. PT.TransparencyOverTime[1].TimePercent = 0.0;
  615. PT.TransparencyOverTime[1].Value = 0.5;
  616.  
  617. PT.TransparencyOverTime[2].TimePercent = 0.3;
  618. PT.TransparencyOverTime[2].Value = 0.1;
  619.  
  620. PT.TransparencyOverTime[3].TimePercent = 0.4;
  621. PT.TransparencyOverTime[3].Value = 0.2;
  622.  
  623. PT.TransparencyOverTime[4].TimePercent = 0.6;
  624. PT.TransparencyOverTime[4].Value = 0.2;
  625.  
  626. PT.TransparencyOverTime[5].TimePercent = 1.0;
  627. PT.TransparencyOverTime[5].Value = 0.0;
  628.  
  629. -- size over time
  630. PT.SizeOverTime[1].TimePercent = 0.0;
  631. PT.SizeOverTime[1].Value = 4.0;
  632.  
  633. PT.SizeOverTime[2].TimePercent = 0.07;
  634. PT.SizeOverTime[2].Value = 18.0;
  635.  
  636. PT.SizeOverTime[3].TimePercent = 1.0;
  637. PT.SizeOverTime[3].Value = 22.0;
  638.  
  639. -- Speed over time
  640. PT.SpeedOverTime[1].TimePercent = 0.0;
  641. PT.SpeedOverTime[1].Value = 0.0;
  642.  
  643. PT.SpeedOverTime[2].TimePercent = 0.4;
  644. PT.SpeedOverTime[2].Value = 0.0;
  645.  
  646. PT.SpeedOverTime[3].TimePercent = 0.5;
  647. PT.SpeedOverTime[3].Value = 0.0;
  648.  
  649. PT.SpeedOverTime[4].TimePercent = 1.0;
  650. PT.SpeedOverTime[4].Value = 0.0;
  651.  
  652. -- Tangent Speed over time
  653. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  654. PT.TangentSpeedOverTime[1].Value = 0.0;
  655.  
  656. PT.TangentSpeedOverTime[2].TimePercent = 0.4;
  657. PT.TangentSpeedOverTime[2].Value = 0.0;
  658.  
  659. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  660. PT.TangentSpeedOverTime[3].Value = 0.0;
  661.  
  662. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  663. PT.TangentSpeedOverTime[4].Value = 0.0;
  664.  
  665.  
  666. -- GravityAcceleration over time
  667. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  668. PT.GravityAccelerationOverTime[1].Value = 0.0;
  669.  
  670. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  671. PT.GravityAccelerationOverTime[2].Value = 0.0;
  672.  
  673. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  674. PT.GravityAccelerationOverTime[3].Value = 0.0;
  675.  
  676. -- AngleSpeed over time
  677. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  678. PT.AngleSpeedOverTime[1].Value = 1.0;
  679.  
  680. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  681. PT.AngleSpeedOverTime[2].Value = 1.0;
  682.  
  683.  
  684.  
  685.