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

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_GAZER)
  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 = 4
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. PT = Emitter.ParticleTypesParams[1]
  41. PT.IsEmitterLocked = false
  42. PT.DrawOrder = 1
  43. PT.Material = ENMAT_SIMPLEPARTICLE
  44.  
  45.  
  46. --PT.TextureName = "environment_effect_explosion_smoke1.dds"
  47. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  48.  
  49. PT.ParticlesPerSecond = 20.0;
  50. PT.InitialNumberOfParticles = 0.0;
  51. PT.BaseLifeTime = 3.3;
  52. PT.BaseLifeTimeVariance = 0.6;
  53. PT.BaseSpeed = 1.0;
  54. PT.BaseSpeedVariance = 0.2;
  55.  
  56. PT.TangentSpeed = 1.0;
  57. PT.TangentSpeedVariance = 0.0;
  58. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  59. PT.TangentDirection = vzbzd4
  60. vzbzd4:delete()
  61. PT.TangentAngleMin = 0.0;
  62. PT.TangentAngleMax = 6.28;
  63. PT.IsTangentDependOnBase = false;
  64.  
  65. PT.BaseAngle = 3.0;
  66. PT.BaseAngleVariance = 5.0;
  67. PT.BaseAngleSpeed = 0.2;
  68. PT.BaseAngleSpeedVariance = 0.3;
  69. PT.BaseAngleSpeedDirection = 0;
  70. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  71. PT.BaseDirection = vzbzd5
  72. vzbzd5:delete()
  73. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  74. PT.BaseDirectionVariance = vzbzd6
  75. vzbzd6:delete()
  76. local vzbzd7 = D3DXVECTOR3:new(0,0,0)
  77. PT.BasePosition = vzbzd7
  78. vzbzd7:delete()
  79. local vzbzd8 = D3DXVECTOR3:new(1,2,1)
  80. PT.BasePositionVariance = vzbzd8
  81. vzbzd8:delete()
  82. PT.BaseSize = 2.0;
  83. PT.BaseSizeVariance = 0.3;
  84.  
  85. -- color over time
  86. PT.ColorOverTimeR[1].TimePercent = 0.0;
  87. PT.ColorOverTimeR[1].Value = 1.0;
  88. PT.ColorOverTimeG[1].TimePercent = 0.0;
  89. PT.ColorOverTimeG[1].Value = 1.0;
  90. PT.ColorOverTimeB[1].TimePercent = 0.0;
  91. PT.ColorOverTimeB[1].Value = 1.0;
  92.  
  93. PT.ColorOverTimeR[2].TimePercent = 1.0;
  94. PT.ColorOverTimeR[2].Value = 1.0;
  95. PT.ColorOverTimeG[2].TimePercent = 1.0;
  96. PT.ColorOverTimeG[2].Value = 1.0;
  97. PT.ColorOverTimeB[2].TimePercent = 1.0;
  98. PT.ColorOverTimeB[2].Value = 1.0;
  99.  
  100. -- transparency over time
  101. PT.TransparencyOverTime[1].TimePercent = 0.0;
  102. PT.TransparencyOverTime[1].Value = 0.0;
  103.  
  104. PT.TransparencyOverTime[2].TimePercent = 0.15;
  105. PT.TransparencyOverTime[2].Value = 0.2;
  106.  
  107. PT.TransparencyOverTime[3].TimePercent = 1.0;
  108. PT.TransparencyOverTime[3].Value = 0.0;
  109.  
  110. -- size over time
  111. PT.SizeOverTime[1].TimePercent = 0.0;
  112. PT.SizeOverTime[1].Value = 1.0;
  113.  
  114. PT.SizeOverTime[2].TimePercent = 1.0;
  115. PT.SizeOverTime[2].Value = 20.0;
  116.  
  117. -- Speed over time
  118. PT.SpeedOverTime[1].TimePercent = 0.0;
  119. PT.SpeedOverTime[1].Value = 12.0;
  120.  
  121. PT.SpeedOverTime[2].TimePercent = 1.0;
  122. PT.SpeedOverTime[2].Value = 0.0;
  123.  
  124. -- Tangent Speed over time
  125. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  126. PT.TangentSpeedOverTime[1].Value = 0.0;
  127.  
  128. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  129. PT.TangentSpeedOverTime[2].Value = 5.0;
  130.  
  131.  
  132. -- GravityAcceleration over time
  133. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  134. PT.GravityAccelerationOverTime[1].Value = 2.0;
  135.  
  136. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  137. PT.GravityAccelerationOverTime[2].Value = 2.0;
  138.  
  139. -- AngleSpeed over time
  140. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  141. PT.AngleSpeedOverTime[1].Value = 1.5;
  142.  
  143. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  144. PT.AngleSpeedOverTime[2].Value = 0.6;
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.