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

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