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_base.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  10.7 KB  |  429 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_EXPLOSION_BASE)
  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 = 3
  18. local vzbzd2 = D3DXVECTOR3:new(0,0,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.  
  28. PT = Emitter.ParticleTypesParams[1]
  29. PT.IsEmitterLocked = false
  30. PT.DrawOrder = 1
  31. PT.Material = ENMAT_SIMPLEPARTICLE
  32.  
  33. PT.TextureName = "environment_effect_explosion_smoke14.dds"
  34.  
  35.  
  36. PT.ParticlesPerSecond = 0.1;
  37. PT.InitialNumberOfParticles = 30.0;
  38. PT.BaseLifeTime = 2.5;
  39. PT.BaseLifeTimeVariance = 0.2;
  40. PT.BaseSpeed = 3.0;
  41. PT.BaseSpeedVariance = 0.8;
  42.  
  43. PT.TangentSpeed = 5.0;
  44. PT.TangentSpeedVariance = 1.0;
  45. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  46. PT.TangentDirection = vzbzd4
  47. vzbzd4:delete()
  48. PT.TangentAngleMin = 0.0;
  49. PT.TangentAngleMax = 6.28;
  50. PT.IsTangentDependOnBase = false;
  51.  
  52. PT.BaseAngle = 3.0;
  53. PT.BaseAngleVariance = 5.0;
  54. PT.BaseAngleSpeed = 0.3;
  55. PT.BaseAngleSpeedVariance = 0.3;
  56. PT.BaseAngleSpeedDirection = 0;
  57. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  58. PT.BaseDirection = vzbzd5
  59. vzbzd5:delete()
  60. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  61. PT.BaseDirectionVariance = vzbzd6
  62. vzbzd6:delete()
  63. local vzbzd7 = D3DXVECTOR3:new(0,60,0)
  64. PT.BasePosition = vzbzd7
  65. vzbzd7:delete()
  66. local vzbzd8 = D3DXVECTOR3:new(40,40,40)
  67. PT.BasePositionVariance = vzbzd8
  68. vzbzd8:delete()
  69. PT.BaseSize = 8.0;
  70. PT.BaseSizeVariance = 0.3;
  71.  
  72. -- color over time
  73. PT.ColorOverTimeR[1].TimePercent = 0.0;
  74. PT.ColorOverTimeR[1].Value = 0.2;
  75. PT.ColorOverTimeG[1].TimePercent = 0.0;
  76. PT.ColorOverTimeG[1].Value = 0.2;
  77. PT.ColorOverTimeB[1].TimePercent = 0.0;
  78. PT.ColorOverTimeB[1].Value = 0.2;
  79.  
  80. PT.ColorOverTimeR[2].TimePercent = 1.0;
  81. PT.ColorOverTimeR[2].Value = 0.2;
  82. PT.ColorOverTimeG[2].TimePercent = 1.0;
  83. PT.ColorOverTimeG[2].Value = 0.2;
  84. PT.ColorOverTimeB[2].TimePercent = 1.0;
  85. PT.ColorOverTimeB[2].Value = 0.2;
  86.  
  87. -- transparency over time
  88. PT.TransparencyOverTime[1].TimePercent = 0.0;
  89. PT.TransparencyOverTime[1].Value = 0.0;
  90.  
  91. PT.TransparencyOverTime[2].TimePercent = 0.1;
  92. PT.TransparencyOverTime[2].Value = 0.6;
  93.  
  94. PT.TransparencyOverTime[3].TimePercent = 0.7;
  95. PT.TransparencyOverTime[3].Value = 0.6;
  96.  
  97. PT.TransparencyOverTime[4].TimePercent = 1.0;
  98. PT.TransparencyOverTime[4].Value = 0.0;
  99.  
  100. -- size over time
  101. PT.SizeOverTime[1].TimePercent = 0.0;
  102. PT.SizeOverTime[1].Value = 12.0;
  103.  
  104. PT.SizeOverTime[2].TimePercent = 0.4;
  105. PT.SizeOverTime[2].Value = 7.0;
  106.  
  107. PT.SizeOverTime[3].TimePercent = 1.0;
  108. PT.SizeOverTime[3].Value = 12.0;
  109.  
  110. -- Speed over time
  111. PT.SpeedOverTime[1].TimePercent = 0.0;
  112. PT.SpeedOverTime[1].Value = 0.0;
  113.  
  114. PT.SpeedOverTime[2].TimePercent = 0.4;
  115. PT.SpeedOverTime[2].Value = 0.0;
  116.  
  117. PT.SpeedOverTime[3].TimePercent = 1.0;
  118. PT.SpeedOverTime[3].Value = 0.0;
  119.  
  120. -- Tangent Speed over time
  121. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  122. PT.TangentSpeedOverTime[1].Value = 0.0;
  123.  
  124. PT.TangentSpeedOverTime[2].TimePercent = 0.8;
  125. PT.TangentSpeedOverTime[2].Value = 0.0;
  126.  
  127. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  128. PT.TangentSpeedOverTime[3].Value = 0.0;
  129.  
  130.  
  131. -- GravityAcceleration over time
  132. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  133. PT.GravityAccelerationOverTime[1].Value = -5.0;
  134.  
  135. PT.GravityAccelerationOverTime[2].TimePercent = 0.2;
  136. PT.GravityAccelerationOverTime[2].Value = -5.0;
  137.  
  138. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  139. PT.GravityAccelerationOverTime[3].Value = -5.0;
  140.  
  141. -- AngleSpeed over time
  142. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  143. PT.AngleSpeedOverTime[1].Value = 0.2;
  144.  
  145. PT.AngleSpeedOverTime[2].TimePercent = 0.5;
  146. PT.AngleSpeedOverTime[2].Value = 0.1;
  147.  
  148. PT.AngleSpeedOverTime[3].TimePercent = 1.0;
  149. PT.AngleSpeedOverTime[3].Value = 0.2;
  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. PT = Emitter.ParticleTypesParams[2]
  179. PT.IsEmitterLocked = false
  180. PT.DrawOrder = 3
  181. PT.Material = ENMAT_SIMPLEPARTICLE
  182.  
  183. PT.TextureName = "environment_effect_explosion_trash1.dds"
  184.  
  185. PT.ParticlesPerSecond = 0.1;
  186. PT.InitialNumberOfParticles = 70.0;
  187. PT.BaseLifeTime = 2.0;
  188. PT.BaseLifeTimeVariance = 0.0;
  189. PT.BaseSpeed = 1.0;
  190. PT.BaseSpeedVariance = 0.2;
  191.  
  192. PT.TangentSpeed = 1.0;
  193. PT.TangentSpeedVariance = 1.5;
  194. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  195. PT.TangentDirection = vzbzd9
  196. vzbzd9:delete()
  197. PT.TangentAngleMin = 0.0;
  198. PT.TangentAngleMax = 6.28;
  199. PT.IsTangentDependOnBase = false;
  200.  
  201. PT.BaseAngle = 3.0;
  202. PT.BaseAngleVariance = 5.0;
  203. PT.BaseAngleSpeed = 0.2;
  204. PT.BaseAngleSpeedVariance = 0.3;
  205. PT.BaseAngleSpeedDirection = 0;
  206. local vzbzd10 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  207. PT.BaseDirection = vzbzd10
  208. vzbzd10:delete()
  209. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  210. PT.BaseDirectionVariance = vzbzd11
  211. vzbzd11:delete()
  212. local vzbzd12 = D3DXVECTOR3:new(0,75,0)
  213. PT.BasePosition = vzbzd12
  214. vzbzd12:delete()
  215. local vzbzd13 = D3DXVECTOR3:new(35,42,35)
  216. PT.BasePositionVariance = vzbzd13
  217. vzbzd13:delete()
  218. PT.BaseSize = 4.0;
  219. PT.BaseSizeVariance = 0.6;
  220.  
  221. -- color over time
  222. PT.ColorOverTimeR[1].TimePercent = 0.0;
  223. PT.ColorOverTimeR[1].Value = 0.5;
  224. PT.ColorOverTimeG[1].TimePercent = 0.0;
  225. PT.ColorOverTimeG[1].Value = 0.5;
  226. PT.ColorOverTimeB[1].TimePercent = 0.0;
  227. PT.ColorOverTimeB[1].Value = 0.5;
  228.  
  229. PT.ColorOverTimeR[2].TimePercent = 1.0;
  230. PT.ColorOverTimeR[2].Value = 0.5;
  231. PT.ColorOverTimeG[2].TimePercent = 1.0;
  232. PT.ColorOverTimeG[2].Value = 0.5;
  233. PT.ColorOverTimeB[2].TimePercent = 1.0;
  234. PT.ColorOverTimeB[2].Value = 0.5;
  235.  
  236. -- transparency over time
  237. PT.TransparencyOverTime[1].TimePercent = 0.0;
  238. PT.TransparencyOverTime[1].Value = 0.0;
  239.  
  240. PT.TransparencyOverTime[2].TimePercent = 0.2;
  241. PT.TransparencyOverTime[2].Value = 1.0;
  242.  
  243. PT.TransparencyOverTime[3].TimePercent = 1.0;
  244. PT.TransparencyOverTime[3].Value = 0.0;
  245.  
  246. -- size over time
  247. PT.SizeOverTime[1].TimePercent = 0.0;
  248. PT.SizeOverTime[1].Value = 4.0;
  249.  
  250. PT.SizeOverTime[2].TimePercent = 0.2;
  251. PT.SizeOverTime[2].Value = 4.0;
  252.  
  253. PT.SizeOverTime[3].TimePercent = 1.0;
  254. PT.SizeOverTime[3].Value = 4.0;
  255.  
  256. -- Speed over time
  257. PT.SpeedOverTime[1].TimePercent = 0.0;
  258. PT.SpeedOverTime[1].Value = 1.0;
  259.  
  260. PT.SpeedOverTime[2].TimePercent = 0.7;
  261. PT.SpeedOverTime[2].Value = 1.0;
  262.  
  263. PT.SpeedOverTime[3].TimePercent = 1.0;
  264. PT.SpeedOverTime[3].Value = 1.0;
  265.  
  266. -- Tangent Speed over time
  267. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  268. PT.TangentSpeedOverTime[1].Value = 25.0;
  269.  
  270. PT.TangentSpeedOverTime[2].TimePercent = 0.03;
  271. PT.TangentSpeedOverTime[2].Value = 5.0;
  272.  
  273. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  274. PT.TangentSpeedOverTime[3].Value = 15.0;
  275.  
  276.  
  277. -- GravityAcceleration over time
  278. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  279. PT.GravityAccelerationOverTime[1].Value = -40.0;
  280.  
  281. PT.GravityAccelerationOverTime[2].TimePercent = 0.2;
  282. PT.GravityAccelerationOverTime[2].Value = -40.0;
  283.  
  284. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  285. PT.GravityAccelerationOverTime[3].Value = -40.0;
  286.  
  287. -- AngleSpeed over time
  288. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  289. PT.AngleSpeedOverTime[1].Value = 0.5;
  290.  
  291. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  292. PT.AngleSpeedOverTime[2].Value = 0.2
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303. PT = Emitter.ParticleTypesParams[3]
  304. PT.IsEmitterLocked = false
  305. PT.DrawOrder = 2
  306. PT.Material = ENMAT_PARTICLE_LIGHT
  307.  
  308. PT.TextureName = "environment_effect_explosion_sparkles2.dds"
  309.  
  310. PT.ParticlesPerSecond = 0.1;
  311. PT.InitialNumberOfParticles = 15.0;
  312. PT.BaseLifeTime = 3.5;
  313. PT.BaseLifeTimeVariance = 0.0;
  314. PT.BaseSpeed = 1.0;
  315. PT.BaseSpeedVariance = 0.2;
  316.  
  317. PT.TangentSpeed = 1.0;
  318. PT.TangentSpeedVariance = 1.5;
  319. local vzbzd14 = D3DXVECTOR3:new(1.0,0.0,0.0)
  320. PT.TangentDirection = vzbzd14
  321. vzbzd14:delete()
  322. PT.TangentAngleMin = 0.0;
  323. PT.TangentAngleMax = 6.28;
  324. PT.IsTangentDependOnBase = false;
  325.  
  326. PT.BaseAngle = 3.0;
  327. PT.BaseAngleVariance = 5.0;
  328. PT.BaseAngleSpeed = 0.2;
  329. PT.BaseAngleSpeedVariance = 0.3;
  330. PT.BaseAngleSpeedDirection = 0;
  331. local vzbzd15 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  332. PT.BaseDirection = vzbzd15
  333. vzbzd15:delete()
  334. local vzbzd16 = D3DXVECTOR3:new(0.0,0.0,0.0)
  335. PT.BaseDirectionVariance = vzbzd16
  336. vzbzd16:delete()
  337. local vzbzd17 = D3DXVECTOR3:new(0,60,0)
  338. PT.BasePosition = vzbzd17
  339. vzbzd17:delete()
  340. local vzbzd18 = D3DXVECTOR3:new(30,40,30)
  341. PT.BasePositionVariance = vzbzd18
  342. vzbzd18:delete()
  343. PT.BaseSize = 5.0;
  344. PT.BaseSizeVariance = 0.6;
  345.  
  346. -- color over time
  347. PT.ColorOverTimeR[1].TimePercent = 0.0;
  348. PT.ColorOverTimeR[1].Value = 0.8;
  349. PT.ColorOverTimeG[1].TimePercent = 0.0;
  350. PT.ColorOverTimeG[1].Value = 0.4;
  351. PT.ColorOverTimeB[1].TimePercent = 0.0;
  352. PT.ColorOverTimeB[1].Value = 0.0;
  353.  
  354. PT.ColorOverTimeR[2].TimePercent = 1.0;
  355. PT.ColorOverTimeR[2].Value = 0.8;
  356. PT.ColorOverTimeG[2].TimePercent = 1.0;
  357. PT.ColorOverTimeG[2].Value = 0.0;
  358. PT.ColorOverTimeB[2].TimePercent = 1.0;
  359. PT.ColorOverTimeB[2].Value = 0.0;
  360.  
  361. -- transparency over time
  362. PT.TransparencyOverTime[1].TimePercent = 0.0;
  363. PT.TransparencyOverTime[1].Value = 0.0;
  364.  
  365. PT.TransparencyOverTime[2].TimePercent = 0.1;
  366. PT.TransparencyOverTime[2].Value = 1.0;
  367.  
  368. PT.TransparencyOverTime[3].TimePercent = 1.0;
  369. PT.TransparencyOverTime[3].Value = 0.0;
  370.  
  371. -- size over time
  372. PT.SizeOverTime[1].TimePercent = 0.0;
  373. PT.SizeOverTime[1].Value = 4.0;
  374.  
  375. PT.SizeOverTime[2].TimePercent = 0.2;
  376. PT.SizeOverTime[2].Value = 5.0;
  377.  
  378. PT.SizeOverTime[3].TimePercent = 1.0;
  379. PT.SizeOverTime[3].Value = 8.0;
  380.  
  381. -- Speed over time
  382. PT.SpeedOverTime[1].TimePercent = 0.0;
  383. PT.SpeedOverTime[1].Value = 1.0;
  384.  
  385. PT.SpeedOverTime[2].TimePercent = 0.7;
  386. PT.SpeedOverTime[2].Value = 1.0;
  387.  
  388. PT.SpeedOverTime[3].TimePercent = 1.0;
  389. PT.SpeedOverTime[3].Value = 0.0;
  390.  
  391. -- Tangent Speed over time
  392. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  393. PT.TangentSpeedOverTime[1].Value = 6.0;
  394.  
  395. PT.TangentSpeedOverTime[2].TimePercent = 0.6;
  396. PT.TangentSpeedOverTime[2].Value = 8.0;
  397.  
  398. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  399. PT.TangentSpeedOverTime[3].Value = 25.0;
  400.  
  401.  
  402. -- GravityAcceleration over time
  403. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  404. PT.GravityAccelerationOverTime[1].Value = -10.0;
  405.  
  406. PT.GravityAccelerationOverTime[2].TimePercent = 0.3;
  407. PT.GravityAccelerationOverTime[2].Value = -30.0;
  408.  
  409. PT.GravityAccelerationOverTime[3].TimePercent = 0.6;
  410. PT.GravityAccelerationOverTime[3].Value = -10.0;
  411.  
  412. PT.GravityAccelerationOverTime[4].TimePercent = 1.0;
  413. PT.GravityAccelerationOverTime[4].Value = 0.0;
  414.  
  415. -- AngleSpeed over time
  416. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  417. PT.AngleSpeedOverTime[1].Value = 0.5;
  418.  
  419. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  420. PT.AngleSpeedOverTime[2].Value = 0.2
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.