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

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