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

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_CLOUDS2)
  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 = false
  26. PT.DrawOrder = 1
  27. PT.Material = ENMAT_SIMPLEPARTICLE
  28.  
  29.  
  30. PT.TextureName = "environment_effect_cloud2.dds"
  31.  
  32. PT.ParticlesPerSecond = 2.0;
  33. PT.InitialNumberOfParticles = 0.0;
  34. PT.BaseLifeTime = 15.3;
  35. PT.BaseLifeTimeVariance = 0.0;
  36. PT.BaseSpeed = 0.0;
  37. PT.BaseSpeedVariance = 0.0;
  38. PT.BaseAngle = 3.0;
  39. PT.BaseAngleVariance = 5.0;
  40. PT.BaseAngleSpeed = 0.08;
  41. PT.BaseAngleSpeedVariance = 0.05;
  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(50,10,50)
  53. PT.BasePositionVariance = vzbzd7
  54. vzbzd7:delete()
  55. PT.BaseSize = 14.0;
  56. PT.BaseSizeVariance = 5.0;
  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 = 0.0;
  76.  
  77. PT.TransparencyOverTime[2].TimePercent = 0.5;
  78. PT.TransparencyOverTime[2].Value = 0.9;
  79.  
  80. PT.TransparencyOverTime[3].TimePercent = 1.0;
  81. PT.TransparencyOverTime[3].Value = 0.0;
  82.  
  83. -- size over time
  84. PT.SizeOverTime[1].TimePercent = 0.0;
  85. PT.SizeOverTime[1].Value = 1.0;
  86.  
  87. PT.SizeOverTime[2].TimePercent = 1.0;
  88. PT.SizeOverTime[2].Value = 1.0;
  89.  
  90. -- Speed over time
  91. PT.SpeedOverTime[1].TimePercent = 0.0;
  92. PT.SpeedOverTime[1].Value = 0.0;
  93.  
  94. PT.SpeedOverTime[2].TimePercent = 1.0;
  95. PT.SpeedOverTime[2].Value = 0.0;
  96.  
  97. -- Tangent Speed over time
  98. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  99. PT.TangentSpeedOverTime[1].Value = 0.0;
  100.  
  101. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  102. PT.TangentSpeedOverTime[2].Value = 0.0;
  103.  
  104.  
  105. -- GravityAcceleration over time
  106. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  107. PT.GravityAccelerationOverTime[1].Value = 0.0;
  108.  
  109. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  110. PT.GravityAccelerationOverTime[2].Value = 0.0;
  111.  
  112. -- AngleSpeed over time
  113. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  114. PT.AngleSpeedOverTime[1].Value = 1.0;
  115.  
  116. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  117. PT.AngleSpeedOverTime[2].Value = 1.0;
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.