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

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_CRUISERSHOT)
  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 = 3
  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 = 2
  27. PT.Material = ENMAT_SIMPLEPARTICLE
  28.  
  29.  
  30. PT.TextureName = "cruiser_effect_smokecloud2.dds"
  31.  
  32. PT.ParticlesPerSecond = 0.1;
  33. PT.InitialNumberOfParticles = 10.0;
  34. PT.BaseLifeTime = 2.0;
  35. PT.BaseLifeTimeVariance = 0.0;
  36. PT.BaseSpeed = 1.0;
  37. PT.BaseSpeedVariance = 0.0;
  38. PT.BaseAngle = 3.0;
  39. PT.BaseAngleVariance = 5.0;
  40. PT.BaseAngleSpeed = 0.1;
  41. PT.BaseAngleSpeedVariance = 0.1;
  42. PT.BaseAngleSpeedDirection = 0;
  43. local vzbzd4 = D3DXVECTOR3:new(0.0,0.0,1.0)
  44. PT.BaseDirection = vzbzd4
  45. vzbzd4:delete()
  46. PT.DirectionRelativeness = ENREL_PARENT
  47. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  48. PT.BaseDirectionVariance = vzbzd5
  49. vzbzd5:delete()
  50. local vzbzd6 = D3DXVECTOR3:new(0,0,5)
  51. PT.BasePosition = vzbzd6
  52. vzbzd6:delete()
  53. local vzbzd7 = D3DXVECTOR3:new(1,1,10)
  54. PT.BasePositionVariance = vzbzd7
  55. vzbzd7:delete()
  56. PT.BaseSize = 3.0;
  57. PT.BaseSizeVariance = 3.0;
  58.  
  59. -- color over time
  60. PT.ColorOverTimeR[1].TimePercent = 0.0;
  61. PT.ColorOverTimeR[1].Value = 0.5;
  62. PT.ColorOverTimeG[1].TimePercent = 0.0;
  63. PT.ColorOverTimeG[1].Value = 0.5;
  64. PT.ColorOverTimeB[1].TimePercent = 0.0;
  65. PT.ColorOverTimeB[1].Value = 0.5;
  66.  
  67. PT.ColorOverTimeR[2].TimePercent = 1.0;
  68. PT.ColorOverTimeR[2].Value = 1.0;
  69. PT.ColorOverTimeG[2].TimePercent = 1.0;
  70. PT.ColorOverTimeG[2].Value = 1.0;
  71. PT.ColorOverTimeB[2].TimePercent = 1.0;
  72. PT.ColorOverTimeB[2].Value = 1.0;
  73.  
  74. -- transparency over time
  75. PT.TransparencyOverTime[1].TimePercent = 0.0;
  76. PT.TransparencyOverTime[1].Value = 0.0;
  77.  
  78. PT.TransparencyOverTime[2].TimePercent = 0.05;
  79. PT.TransparencyOverTime[2].Value = 0.7;
  80.  
  81. PT.TransparencyOverTime[3].TimePercent = 1.0;
  82. PT.TransparencyOverTime[3].Value = 0.0;
  83.  
  84.  
  85. -- size over time
  86. PT.SizeOverTime[1].TimePercent = 0.0;
  87. PT.SizeOverTime[1].Value = 1.0;
  88.  
  89. PT.SizeOverTime[2].TimePercent = 0.3;
  90. PT.SizeOverTime[2].Value = 2.0;
  91.  
  92. PT.SizeOverTime[3].TimePercent = 1.0;
  93. PT.SizeOverTime[3].Value = 3.0;
  94.  
  95.  
  96. -- Speed over time
  97. PT.SpeedOverTime[1].TimePercent = 0.0;
  98. PT.SpeedOverTime[1].Value = 10.0;
  99.  
  100. PT.SpeedOverTime[2].TimePercent = 0.05;
  101. PT.SpeedOverTime[2].Value = 1.0;
  102.  
  103. PT.SpeedOverTime[3].TimePercent = 1.0;
  104. PT.SpeedOverTime[3].Value = 1.0;
  105.  
  106. -- Tangent Speed over time
  107. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  108. PT.TangentSpeedOverTime[1].Value = 0.0;
  109.  
  110. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  111. PT.TangentSpeedOverTime[2].Value = 0.0;
  112.  
  113.  
  114. -- GravityAcceleration over time
  115. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  116. PT.GravityAccelerationOverTime[1].Value = 0.0;
  117.  
  118. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  119. PT.GravityAccelerationOverTime[2].Value = 0.0;
  120.  
  121. -- AngleSpeed over time
  122. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  123. PT.AngleSpeedOverTime[1].Value = 2.0;
  124.  
  125. PT.AngleSpeedOverTime[2].TimePercent = 0.2;
  126. PT.AngleSpeedOverTime[2].Value = 1.0;
  127.  
  128. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  129. PT.AngleSpeedOverTime[2].Value = 1.0;
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155. PT = Emitter.ParticleTypesParams[2]
  156. PT.IsEmitterLocked = false
  157. PT.DrawOrder = 3
  158. PT.Material = ENMAT_PARTICLE_LIGHT
  159.  
  160.  
  161. PT.TextureName = "cruiser_effect_smokecloud3.dds"
  162.  
  163. PT.ParticlesPerSecond = 0.1;
  164. PT.InitialNumberOfParticles = 5.0;
  165. PT.BaseLifeTime = 2.0;
  166. PT.BaseLifeTimeVariance = 0.0;
  167. PT.BaseSpeed = 1.0;
  168. PT.BaseSpeedVariance = 0.0;
  169. PT.BaseAngle = 3.0;
  170. PT.BaseAngleVariance = 5.0;
  171. PT.BaseAngleSpeed = 0.1;
  172. PT.BaseAngleSpeedVariance = 0.1;
  173. PT.BaseAngleSpeedDirection = 0;
  174. local vzbzd8 = D3DXVECTOR3:new(0.0,0.0,1.0)
  175. PT.BaseDirection = vzbzd8
  176. vzbzd8:delete()
  177. PT.DirectionRelativeness = ENREL_PARENT
  178. local vzbzd9 = D3DXVECTOR3:new(0.0,0.0,0.0)
  179. PT.BaseDirectionVariance = vzbzd9
  180. vzbzd9:delete()
  181. local vzbzd10 = D3DXVECTOR3:new(0,0,5)
  182. PT.BasePosition = vzbzd10
  183. vzbzd10:delete()
  184. local vzbzd11 = D3DXVECTOR3:new(0,0,10)
  185. PT.BasePositionVariance = vzbzd11
  186. vzbzd11:delete()
  187. PT.BaseSize = 5.0;
  188. PT.BaseSizeVariance = 1.0;
  189.  
  190. -- color over time
  191. PT.ColorOverTimeR[1].TimePercent = 0.0;
  192. PT.ColorOverTimeR[1].Value = 0.5;
  193. PT.ColorOverTimeG[1].TimePercent = 0.0;
  194. PT.ColorOverTimeG[1].Value = 0.5;
  195. PT.ColorOverTimeB[1].TimePercent = 0.0;
  196. PT.ColorOverTimeB[1].Value = 0.5;
  197.  
  198. PT.ColorOverTimeR[2].TimePercent = 1.0;
  199. PT.ColorOverTimeR[2].Value = 0.0;
  200. PT.ColorOverTimeG[2].TimePercent = 1.0;
  201. PT.ColorOverTimeG[2].Value = 0.0;
  202. PT.ColorOverTimeB[2].TimePercent = 1.0;
  203. PT.ColorOverTimeB[2].Value = 0.0;
  204.  
  205. -- transparency over time
  206. PT.TransparencyOverTime[1].TimePercent = 0.0;
  207. PT.TransparencyOverTime[1].Value = 1.0;
  208.  
  209. PT.TransparencyOverTime[2].TimePercent = 0.05;
  210. PT.TransparencyOverTime[2].Value = 0.7;
  211.  
  212. PT.TransparencyOverTime[3].TimePercent = 0.5;
  213. PT.TransparencyOverTime[3].Value = 0.0;
  214.  
  215. PT.TransparencyOverTime[4].TimePercent = 1.0;
  216. PT.TransparencyOverTime[4].Value = 0.0;
  217.  
  218.  
  219. -- size over time
  220. PT.SizeOverTime[1].TimePercent = 0.0;
  221. PT.SizeOverTime[1].Value = 2.0;
  222.  
  223. PT.SizeOverTime[2].TimePercent = 0.2;
  224. PT.SizeOverTime[2].Value = 3.0;
  225.  
  226. PT.SizeOverTime[3].TimePercent = 1.0;
  227. PT.SizeOverTime[3].Value = 3.5;
  228.  
  229.  
  230. -- Speed over time
  231. PT.SpeedOverTime[1].TimePercent = 0.0;
  232. PT.SpeedOverTime[1].Value = 10.0;
  233.  
  234. PT.SpeedOverTime[2].TimePercent = 0.05;
  235. PT.SpeedOverTime[2].Value = 1.0;
  236.  
  237. PT.SpeedOverTime[3].TimePercent = 1.0;
  238. PT.SpeedOverTime[3].Value = 1.0;
  239.  
  240. -- Tangent Speed over time
  241. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  242. PT.TangentSpeedOverTime[1].Value = 0.0;
  243.  
  244. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  245. PT.TangentSpeedOverTime[2].Value = 0.0;
  246.  
  247.  
  248. -- GravityAcceleration over time
  249. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  250. PT.GravityAccelerationOverTime[1].Value = 1.0;
  251.  
  252. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  253. PT.GravityAccelerationOverTime[2].Value = 1.0;
  254.  
  255. -- AngleSpeed over time
  256. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  257. PT.AngleSpeedOverTime[1].Value = 2.0;
  258.  
  259. PT.AngleSpeedOverTime[2].TimePercent = 0.2;
  260. PT.AngleSpeedOverTime[2].Value = 1.0;
  261.  
  262. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  263. PT.AngleSpeedOverTime[2].Value = 1.0;
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. PT = Emitter.ParticleTypesParams[3]
  301. PT.IsEmitterLocked = false
  302. PT.DrawOrder = 1
  303. PT.Material = ENMAT_PARTICLE_LIGHT
  304.  
  305.  
  306. PT.TextureName = "cruiser_effect_smokecloud7.dds"
  307.  
  308. PT.ParticlesPerSecond = 0.1;
  309. PT.InitialNumberOfParticles = 10.0;
  310. PT.BaseLifeTime = 1.0;
  311. PT.BaseLifeTimeVariance = 0.0;
  312. PT.BaseSpeed = 1.0;
  313. PT.BaseSpeedVariance = 0.0;
  314. PT.BaseAngle = 3.0;
  315. PT.BaseAngleVariance = 5.0;
  316. PT.BaseAngleSpeed = 0.1;
  317. PT.BaseAngleSpeedVariance = 0.1;
  318. PT.BaseAngleSpeedDirection = 0;
  319. local vzbzd12 = D3DXVECTOR3:new(0.0,0.0,1.0)
  320. PT.BaseDirection = vzbzd12
  321. vzbzd12:delete()
  322. PT.DirectionRelativeness = ENREL_PARENT
  323. local vzbzd13 = D3DXVECTOR3:new(0.0,0.0,0.0)
  324. PT.BaseDirectionVariance = vzbzd13
  325. vzbzd13:delete()
  326. local vzbzd14 = D3DXVECTOR3:new(0,0,5)
  327. PT.BasePosition = vzbzd14
  328. vzbzd14:delete()
  329. local vzbzd15 = D3DXVECTOR3:new(0,0,10)
  330. PT.BasePositionVariance = vzbzd15
  331. vzbzd15:delete()
  332. PT.BaseSize = 3.0;
  333. PT.BaseSizeVariance = 1.0;
  334.  
  335. -- color over time
  336. PT.ColorOverTimeR[1].TimePercent = 0.0;
  337. PT.ColorOverTimeR[1].Value = 0.5;
  338. PT.ColorOverTimeG[1].TimePercent = 0.0;
  339. PT.ColorOverTimeG[1].Value = 0.4;
  340. PT.ColorOverTimeB[1].TimePercent = 0.0;
  341. PT.ColorOverTimeB[1].Value = 0.3;
  342.  
  343. PT.ColorOverTimeR[2].TimePercent = 1.0;
  344. PT.ColorOverTimeR[2].Value = 0.0;
  345. PT.ColorOverTimeG[2].TimePercent = 1.0;
  346. PT.ColorOverTimeG[2].Value = 0.0;
  347. PT.ColorOverTimeB[2].TimePercent = 1.0;
  348. PT.ColorOverTimeB[2].Value = 0.0;
  349.  
  350. -- transparency over time
  351. PT.TransparencyOverTime[1].TimePercent = 0.0;
  352. PT.TransparencyOverTime[1].Value = 0.7;
  353.  
  354. PT.TransparencyOverTime[2].TimePercent = 0.05;
  355. PT.TransparencyOverTime[2].Value = 0.7;
  356.  
  357. PT.TransparencyOverTime[3].TimePercent = 0.9;
  358. PT.TransparencyOverTime[3].Value = 0.0;
  359.  
  360. PT.TransparencyOverTime[4].TimePercent = 1.0;
  361. PT.TransparencyOverTime[4].Value = 0.0;
  362.  
  363.  
  364. -- size over time
  365. PT.SizeOverTime[1].TimePercent = 0.0;
  366. PT.SizeOverTime[1].Value = 2.0;
  367.  
  368. PT.SizeOverTime[2].TimePercent = 0.2;
  369. PT.SizeOverTime[2].Value = 3.0;
  370.  
  371. PT.SizeOverTime[3].TimePercent = 1.0;
  372. PT.SizeOverTime[3].Value = 4.0;
  373.  
  374.  
  375. -- Speed over time
  376. PT.SpeedOverTime[1].TimePercent = 0.0;
  377. PT.SpeedOverTime[1].Value = 10.0;
  378.  
  379. PT.SpeedOverTime[2].TimePercent = 0.05;
  380. PT.SpeedOverTime[2].Value = 1.0;
  381.  
  382. PT.SpeedOverTime[3].TimePercent = 1.0;
  383. PT.SpeedOverTime[3].Value = 1.0;
  384.  
  385. -- Tangent Speed over time
  386. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  387. PT.TangentSpeedOverTime[1].Value = 0.0;
  388.  
  389. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  390. PT.TangentSpeedOverTime[2].Value = 0.0;
  391.  
  392.  
  393. -- GravityAcceleration over time
  394. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  395. PT.GravityAccelerationOverTime[1].Value = 1.0;
  396.  
  397. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  398. PT.GravityAccelerationOverTime[2].Value = 1.0;
  399.  
  400. -- AngleSpeed over time
  401. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  402. PT.AngleSpeedOverTime[1].Value = 2.0;
  403.  
  404. PT.AngleSpeedOverTime[2].TimePercent = 0.2;
  405. PT.AngleSpeedOverTime[2].Value = 1.0;
  406.  
  407. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  408. PT.AngleSpeedOverTime[2].Value = 1.0;
  409.  
  410.  
  411.  
  412.  
  413.  
  414. --
  415. -- end particle system description
  416. --
  417.