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_bonesmoke.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  3.3 KB  |  127 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_BONESMOKE)
  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 = 1
  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. PT = Emitter.ParticleTypesParams[1]
  27. PT.IsEmitterLocked = false
  28. PT.DrawOrder = 1
  29. PT.Material = ENMAT_SIMPLEPARTICLE
  30.  
  31.  
  32. PT.TextureName = "environment_effect_explosion_smoke6.dds"
  33.  
  34.  
  35. PT.ParticlesPerSecond = 10.0;
  36. PT.InitialNumberOfParticles = 0.0;
  37. PT.BaseLifeTime = 1.5;
  38. PT.BaseLifeTimeVariance = 0.0;
  39. PT.BaseSpeed = 0.0;
  40. PT.BaseSpeedVariance = 0.0;
  41. PT.BaseAngle = 1.65;
  42. PT.BaseAngleVariance = 5.0;
  43. PT.BaseAngleSpeed = 1.0;
  44. PT.BaseAngleSpeedVariance = 1.0;
  45. PT.BaseAngleSpeedDirection = 0;
  46. local vzbzd4 = D3DXVECTOR3:new(0.0,0.0,0.0)
  47. PT.BaseDirection = vzbzd4
  48. vzbzd4:delete()
  49. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  50. PT.BaseDirectionVariance = vzbzd5
  51. vzbzd5:delete()
  52. local vzbzd6 = D3DXVECTOR3:new(0,0,0)
  53. PT.BasePosition = vzbzd6
  54. vzbzd6:delete()
  55. local vzbzd7 = D3DXVECTOR3:new(3,3,3)
  56. PT.BasePositionVariance = vzbzd7
  57. vzbzd7:delete()
  58. PT.BaseSize = 4.0;
  59. PT.BaseSizeVariance = 0.4;
  60.  
  61. -- color over time
  62. PT.ColorOverTimeR[1].TimePercent = 0.0;
  63. PT.ColorOverTimeR[1].Value = 1.0;
  64. PT.ColorOverTimeG[1].TimePercent = 0.0;
  65. PT.ColorOverTimeG[1].Value = 1.0;
  66. PT.ColorOverTimeB[1].TimePercent = 0.0;
  67. PT.ColorOverTimeB[1].Value = 1.0;
  68.  
  69. PT.ColorOverTimeR[2].TimePercent = 1.0;
  70. PT.ColorOverTimeR[2].Value = 0.5;
  71. PT.ColorOverTimeG[2].TimePercent = 1.0;
  72. PT.ColorOverTimeG[2].Value = 0.5;
  73. PT.ColorOverTimeB[2].TimePercent = 1.0;
  74. PT.ColorOverTimeB[2].Value = 0.5;
  75.  
  76. -- transparency over time
  77. PT.TransparencyOverTime[1].TimePercent = 0.0;
  78. PT.TransparencyOverTime[1].Value = 0.0;
  79.  
  80. PT.TransparencyOverTime[2].TimePercent = 0.01;
  81. PT.TransparencyOverTime[2].Value = 0.3;
  82.  
  83. PT.TransparencyOverTime[3].TimePercent = 1.0;
  84. PT.TransparencyOverTime[3].Value = 0.0;
  85.  
  86.  
  87. -- size over time
  88. PT.SizeOverTime[1].TimePercent = 0.0;
  89. PT.SizeOverTime[1].Value = 2.0;
  90.  
  91. PT.SizeOverTime[2].TimePercent = 1.0;
  92. PT.SizeOverTime[2].Value = 4.0;
  93.  
  94.  
  95. -- Speed over time
  96. PT.SpeedOverTime[1].TimePercent = 0.0;
  97. PT.SpeedOverTime[1].Value = 0.0;
  98.  
  99. PT.SpeedOverTime[2].TimePercent = 1.0;
  100. PT.SpeedOverTime[2].Value = 0.0;
  101.  
  102. -- Tangent Speed over time
  103. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  104. PT.TangentSpeedOverTime[1].Value = 0.0;
  105.  
  106. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  107. PT.TangentSpeedOverTime[2].Value = 0.0;
  108.  
  109.  
  110. -- GravityAcceleration over time
  111. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  112. PT.GravityAccelerationOverTime[1].Value = 1.0;
  113.  
  114. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  115. PT.GravityAccelerationOverTime[2].Value = 1.0;
  116.  
  117. -- AngleSpeed over time
  118. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  119. PT.AngleSpeedOverTime[1].Value = 1.5;
  120.  
  121. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  122. PT.AngleSpeedOverTime[2].Value = 0.5;
  123.  
  124.  
  125.  
  126.  
  127.