home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / dot_effects_scripts / dot_shot.lua < prev   
Encoding:
Text File  |  2007-01-25  |  3.6 KB  |  137 lines

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