home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Scripts / InitParticleSystems.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2000-10-27  |  17.4 KB  |  607 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 1.5)
  3.  
  4.  
  5. def Init():
  6.     import math
  7.     import Bladex
  8.     import Reference
  9.     Bladex.ReadBitMap('..\\..\\Data\\FirePrtl.bmp', 'FireParticle')
  10.     Bladex.ReadBitMap('..\\..\\Data\\Glow.bmp', 'Glow')
  11.     Bladex.ReadBitMap('..\\..\\Data\\SunFlare.bmp', 'SunFlare')
  12.     Bladex.ReadBitMap('..\\..\\Data\\BloodPrtl.bmp', 'BloodParticle')
  13.     Bladex.ReadAlphaBitMap('..\\..\\Data\\BloodDropPrtl.bmp', 'BloodDropParticle')
  14.     Bladex.ReadAlphaBitMap('..\\..\\Data\\GenericPrtl.bmp', 'GenericParticle')
  15.     Bladex.ReadAlphaBitMap('..\\..\\Data\\GenericPrtl2.bmp', 'GenericParticle2')
  16.     Bladex.ReadAlphaBitMap('..\\..\\Data\\SmokePrtl.bmp', 'SmokeParticle')
  17.     Bladex.ReadAlphaBitMap('..\\..\\Data\\SmokePrtl2.bmp', 'SmokeParticle2')
  18.     Bladex.ReadAlphaBitMap('..\\..\\Data\\Flare magico 128.BMP', 'MagicFlare128')
  19.     Bladex.ReadAlphaBitMap('..\\..\\Data\\Water.bmp', 'WaterParticle')
  20.     Bladex.ReadAlphaBitMap('..\\..\\Data\\Water2.bmp', 'WaterParticle2')
  21.     Bladex.ReadAlphaBitMap('..\\..\\Data\\Estrellita2.bmp', 'StarParticle')
  22.     Bladex.AddParticleGType('Miguillas', 'GenericParticle', Reference.B_PARTICLE_GTYPE_BLEND, 32)
  23.     for i in range(32):
  24.         traux = (32.0 - i) / 32.0
  25.         r = 90
  26.         g = 70
  27.         b = 60
  28.         a = 255 * (1.0 - traux)
  29.         size = 20.0 * (1.0 - aux)
  30.         Bladex.SetParticleGVal('Miguillas', i, r, g, b, a, size)
  31.     
  32.     Bladex.AddParticleGType('GreenFire', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 31)
  33.     for i in range(32):
  34.         r = 10
  35.         g = 205
  36.         b = 150 + 105 * aux
  37.         a = 255.0 * (1.0 - aux)
  38.         size = 150.0 - aux ** 2.0 * 120.0
  39.         Bladex.SetParticleGVal('GreenFire', i, r, g, b, a, size)
  40.     
  41.     Bladex.AddParticleGType('VenomSmoke', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 95)
  42.     for i in range(96):
  43.         aux = (96.0 - i) / 96.0
  44.         r = 64
  45.         g = 128
  46.         b = 64
  47.         a = 255.0 * math.sqrt(1.0 - aux)
  48.         size = 40.0 + aux * 200.0
  49.         Bladex.SetParticleGVal('VenomSmoke', i, r, g, b, a, size)
  50.     
  51.     Bladex.AddParticleGType('Fire', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 31)
  52.     for i in range(32):
  53.         r = 255
  54.         g = min(300.0 * (1.0 - aux * aux) + 148, 255.0)
  55.         b = min(255.0 * (1.0 - aux) + 80, 255.0)
  56.         a = min(255.0 * (1.0 - aux), 255.0)
  57.         size = 80.0 + math.sqrt(1.0 - aux) * 70.0
  58.         Bladex.SetParticleGVal('Fire', i, r, g, b, a, size)
  59.     
  60.     Bladex.AddParticleGType('LargeFire', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 31)
  61.     for i in range(32):
  62.         r = 255
  63.         g = min(300.0 * (1.0 - aux * aux) + 35, 255.0)
  64.         b = min(255.0 * (1.0 - aux) + 20, 255.0)
  65.         a = min(200.0 * (1.0 - aux), 255.0)
  66.         size = 130.0 + math.sqrt(1.0 - aux) * 110.0
  67.         Bladex.SetParticleGVal('LargeFire', i, r, g, b, a, size)
  68.     
  69.     Bladex.AddParticleGType('BigFire', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 31)
  70.     for i in range(32):
  71.         r = 255
  72.         g = min(300.0 * (1.0 - aux * aux) + 35, 255.0)
  73.         b = min(255.0 * (1.0 - aux) + 20, 255.0)
  74.         a = min(200.0 * (1.0 - aux), 255.0)
  75.         size = 275.0 + math.sqrt(1.0 - aux) * 110.0
  76.         Bladex.SetParticleGVal('BigFire', i, r, g, b, a, size)
  77.     
  78.     Bladex.AddParticleGType('Blood', 'BloodParticle', Reference.B_PARTICLE_GTYPE_MUL, 32)
  79.     for i in range(32):
  80.         r = 255
  81.         g = 255
  82.         b = 255
  83.         a = 0
  84.         size = 20.0 * (1.0 - aux) + 2.0
  85.         Bladex.SetParticleGVal('Blood', i, r, g, b, a, size)
  86.     
  87.     Bladex.AddParticleGType('GreenBlood', 'GenericParticle', Reference.B_PARTICLE_GTYPE_COPY, 128)
  88.     for i in range(128):
  89.         r = 8
  90.         g = 16
  91.         b = 8
  92.         a = 128
  93.         size = 20.0 * (1.0 - aux) + 2.0
  94.         Bladex.SetParticleGVal('GreenBlood', i, r, g, b, a, size)
  95.     
  96.     Bladex.AddParticleGType('GreyBlood', 'BloodParticle', Reference.B_PARTICLE_GTYPE_MUL, 32)
  97.     for i in range(32):
  98.         r = 100
  99.         g = 100
  100.         b = 100
  101.         a = 0
  102.         size = 20.0 * (1.0 - aux) + 2.0
  103.         Bladex.SetParticleGVal('GreyBlood', i, r, g, b, a, size)
  104.     
  105.     Bladex.AddParticleGType('Splinter', 'GenericParticle', Reference.B_PARTICLE_GTYPE_BLEND, 16)
  106.     for i in range(16):
  107.         r = 190
  108.         g = 150
  109.         b = 50
  110.         a = 255 * (1.0 - aux)
  111.         size = 10.0 * (1.0 - aux)
  112.         Bladex.SetParticleGVal('Splinter', i, r, g, b, a, size)
  113.     
  114.     Bladex.AddParticleGType('Smoke', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 64)
  115.     for i in range(64):
  116.         aux = (64.0 - i) / 64.0
  117.         r = 255
  118.         g = 255
  119.         b = 255
  120.         a = 255.0 * math.sqrt(1.0 - aux)
  121.         size = 50.0 + aux * 300.0
  122.         Bladex.SetParticleGVal('Smoke', i, r, g, b, a, size)
  123.     
  124.     duration = 96
  125.     Bladex.AddParticleGType('DarkSmoke', 'SmokeParticle2', Reference.B_PARTICLE_GTYPE_BLEND, duration)
  126.     for i in range(duration):
  127.         r = 5
  128.         g = 3
  129.         b = 4
  130.         a = 255.0 * math.sqrt(1.0 - aux)
  131.         size = 300.0 - aux ** 2.0 * 240.0
  132.         Bladex.SetParticleGVal('DarkSmoke', i, r, g, b, a, size)
  133.     
  134.     Bladex.AddParticleGType('Flame', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 21)
  135.     for i in range(21):
  136.         if i >= 14:
  137.             aux = 1.0 / 3.0 + 2 * (21.0 - i) / 21.0
  138.             caux = (21.0 - i) / 21.0
  139.             saux = 3.0 * (21.0 - i) / 21.0
  140.         elif i > 7 and i < 14:
  141.             aux = 1.0
  142.             caux = 1.0 / 3.0
  143.             saux = 1.0
  144.         else:
  145.             aux = 1.0 - (7.0 - i) / 7.0
  146.             caux = 1.0 / 3.0
  147.             saux = 1.0 - 2 * ((7.0 - i) / 7.0)
  148.         r = 155.0 * 3.0 * caux
  149.         g = 155.0 * 3.0 * caux
  150.         b = min(255 * (1.0 - 2.0 * caux), 255.0)
  151.         a = 100.0 * aux
  152.         size = 300.0 + 200.0 * saux
  153.         Bladex.SetParticleGVal('Flame', i, r, g, b, a, size)
  154.     
  155.     Bladex.AddParticleGType('LargeFlame', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 21)
  156.     for i in range(21):
  157.         if i >= 14:
  158.             aux = 1.0 / 3.0 + 2 * (21.0 - i) / 21.0
  159.             caux = (21.0 - i) / 21.0
  160.             saux = 3.0 * (21.0 - i) / 21.0
  161.         elif i > 7 and i < 14:
  162.             aux = 1.0
  163.             caux = 1.0 / 3.0
  164.             saux = 1.0
  165.         else:
  166.             aux = 1.0 - (7.0 - i) / 7.0
  167.             caux = 1.0 / 3.0
  168.             saux = 1.0 - 2 * ((7.0 - i) / 7.0)
  169.         r = 155.0 * 3.0 * caux
  170.         g = 155.0 * 3.0 * caux
  171.         b = min(255 * (1.0 - 2.0 * caux), 255.0)
  172.         a = 100.0 * aux
  173.         size = 900.0 + 600.0 * saux
  174.         Bladex.SetParticleGVal('LargeFlame', i, r, g, b, a, size)
  175.     
  176.     Bladex.AddParticleGType('DemonShield', 'MagicFlare128', Reference.B_PARTICLE_GTYPE_BLEND, 128)
  177.     for i in range(128):
  178.         r = max(0.0, min(255 * (1.0 - 2.0 * caux), 255.0))
  179.         g = max(0.0, min(255 * (1.0 - 2.0 * caux), 255.0))
  180.         b = max(0.0, min(155.0 * 3.0 * caux, 255.0))
  181.         Bladex.SetParticleGVal('DemonShield', i, r, g, b, a, size)
  182.     
  183.     Bladex.AddParticleGType('Sand', 'GenericParticle', Reference.B_PARTICLE_GTYPE_BLEND, 32)
  184.     for i in range(32):
  185.         traux = (32.0 - i) / 32.0
  186.         r = 90
  187.         g = 70
  188.         b = 60
  189.         a = 255 * (1.0 - traux)
  190.         size = 10.0 * (1.0 - aux)
  191.         Bladex.SetParticleGVal('Sand', i, r, g, b, a, size)
  192.     
  193.     Bladex.AddParticleGType('Dust', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 64)
  194.     for i in range(64):
  195.         aux = (64.0 - i) / 64.0
  196.         r = 255
  197.         g = 230
  198.         b = 210
  199.         a = 100.0 * (1.0 - traux) ** 0.5
  200.         size = 1.0 + aux * 350.0
  201.         Bladex.SetParticleGVal('Dust', i, r, g, b, a, size)
  202.     
  203.     Bladex.AddParticleGType('LargeDust', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 128)
  204.     for i in range(128):
  205.         aux = (128.0 - i) / 128.0
  206.         r = 255
  207.         g = 230
  208.         b = 210
  209.         a = 150.0 * (1.0 - traux) ** 0.5
  210.         size = 10.0 + aux * 1200.0
  211.         Bladex.SetParticleGVal('LargeDust', i, r, g, b, a, size)
  212.     
  213.     Bladex.AddParticleGType('MediumDust', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 128)
  214.     for i in range(128):
  215.         aux = (128.0 - i) / 128.0
  216.         r = 255
  217.         g = 230
  218.         b = 210
  219.         a = 150.0 * (1.0 - traux) ** 0.5
  220.         size = 4.0 + aux * 400.0
  221.         Bladex.SetParticleGVal('MediumDust', i, r, g, b, a, size)
  222.     
  223.     duration = 32
  224.     max_opacity = 180.0
  225.     Bladex.AddParticleGType('Venom', 'GenericParticle', Reference.B_PARTICLE_GTYPE_BLEND, duration)
  226.     for i in range(duration):
  227.         r = 0
  228.         g = 5
  229.         b = 0
  230.         a = max_opacity - max(0, i - duration / 2.0) * max_opacity
  231.         size = 30.0 * (1.0 - aux) + 2.0
  232.         Bladex.SetParticleGVal('Venom', i, r, g, b, a, size)
  233.     
  234.     duration = 32
  235.     max_opacity = 180.0
  236.     Bladex.AddParticleGType('Vomit', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, duration)
  237.     for i in range(duration):
  238.         r = 180
  239.         g = 255
  240.         b = 180
  241.         a = max_opacity - max(0, i - duration / 2.0) * max_opacity
  242.         size = 30.0 * (1.0 - aux) + 2.0
  243.         Bladex.SetParticleGVal('Vomit', i, r, g, b, a, size)
  244.     
  245.     Bladex.AddParticleGType('Energia3', 'GenericParticle', Reference.B_PARTICLE_GTYPE_ADD, 80)
  246.     for i in range(80):
  247.         if i > 60:
  248.             traux = 1 - (i - 60.0) / 20.0
  249.         elif i < 20:
  250.             traux = i / 20.0
  251.         else:
  252.             traux = 1.0
  253.         r = 255
  254.         g = 80
  255.         b = 100
  256.         a = 255.0 * traux
  257.         size = 20.0
  258.         Bladex.SetParticleGVal('Energia3', i, r, g, b, a, size)
  259.     
  260.     Bladex.AddParticleGType('FuegoInvocacion', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 120)
  261.     for i in range(120):
  262.         r = 150
  263.         g = 100
  264.         b = 255
  265.         a = 255.0 * traux
  266.         size = 400.0
  267.         Bladex.SetParticleGVal('FuegoInvocacion', i, r, g, b, a, size)
  268.     
  269.     Bladex.AddParticleGType('EnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 60)
  270.     for i in range(60):
  271.         r = 100
  272.         g = 130
  273.         b = 255
  274.         a = 255.0 * traux
  275.         size = 20.0 + 250.0 * (1 - i / 60.0) ** 2.0
  276.         Bladex.SetParticleGVal('EnergyConc', i, r, g, b, a, size)
  277.     
  278.     Bladex.AddParticleGType('EnergyDissip', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 60)
  279.     for i in range(60):
  280.         r = 100
  281.         g = 130
  282.         b = 255
  283.         a = 255.0 * traux
  284.         size = 20.0 + 250.0 * (1 - (1 - i / 60.0) ** 0.5)
  285.         Bladex.SetParticleGVal('EnergyDissip', i, r, g, b, a, size)
  286.     
  287.     Bladex.AddParticleGType('LittleEnergyDissip', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  288.     for i in range(30):
  289.         r = 100
  290.         g = 130
  291.         b = 255
  292.         a = 255.0 * traux
  293.         size = 250.0 * (1 - (1 - i / 30.0) ** 0.5)
  294.         Bladex.SetParticleGVal('LittleEnergyDissip', i, r, g, b, a, size)
  295.     
  296.     Bladex.AddParticleGType('BlueMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  297.     for i in range(30):
  298.         r = 100
  299.         g = 130
  300.         b = 255
  301.         a = 255.0 * traux
  302.         size = 340.0 * (1 - (1 - i / 30.0) ** 0.5)
  303.         Bladex.SetParticleGVal('BlueMagicMissile', i, r, g, b, a, size)
  304.     
  305.     Bladex.AddParticleGType('FastEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  306.     for i in range(30):
  307.         r = 100
  308.         g = 130
  309.         b = 255
  310.         a = 255.0 * traux
  311.         size = 10.0 + 150.0 * (1 - i / 30.0) ** 2.0
  312.         Bladex.SetParticleGVal('FastEnergyConc', i, r, g, b, a, size)
  313.     
  314.     Bladex.AddParticleGType('RedMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  315.     for i in range(30):
  316.         r = 255
  317.         g = 130
  318.         b = 100
  319.         a = 255.0 * traux
  320.         size = 340.0 * (1 - (1 - i / 30.0) ** 0.5)
  321.         Bladex.SetParticleGVal('RedMagicMissile', i, r, g, b, a, size)
  322.     
  323.     Bladex.AddParticleGType('FastRedEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  324.     for i in range(30):
  325.         r = 255
  326.         g = 130
  327.         b = 100
  328.         a = 255.0 * traux
  329.         size = 10.0 + 150.0 * (1 - i / 30.0) ** 2.0
  330.         Bladex.SetParticleGVal('FastRedEnergyConc', i, r, g, b, a, size)
  331.     
  332.     Bladex.AddParticleGType('DeepRedEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 60)
  333.     for i in range(60):
  334.         r = 255
  335.         g = 50
  336.         b = 40
  337.         a = 255.0 * traux
  338.         size = 320.0 * (1 - i / 60.0) ** 2.0
  339.         Bladex.SetParticleGVal('DeepRedEnergyConc', i, r, g, b, a, size)
  340.     
  341.     Bladex.AddParticleGType('DeepRedMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  342.     for i in range(30):
  343.         r = 255
  344.         g = 50
  345.         b = 40
  346.         a = 255.0 * traux
  347.         size = 400.0 * aux
  348.         Bladex.SetParticleGVal('DeepRedMagicMissile', i, r, g, b, a, size)
  349.     
  350.     Bladex.AddParticleGType('SnowDust', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 64)
  351.     r = 255.0
  352.     g = 255.0
  353.     b = 255.0
  354.     for i in range(68):
  355.         a = 255 * i / 64.0
  356.         size = 256 * (64 - i) / 64.0 + 256
  357.         Bladex.SetParticleGVal('SnowDust', i, r, g, b, a, size)
  358.     
  359.     Bladex.AddParticleGType('LittleBlueEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  360.     for i in range(30):
  361.         r = 100
  362.         g = 130
  363.         b = 255
  364.         a = 255.0
  365.         size = 60.0 * (1 - i / 30.0) ** 2.0
  366.         Bladex.SetParticleGVal('LittleBlueEnergyConc', i, r, g, b, a, size)
  367.     
  368.     Bladex.AddParticleGType('BlueSpark', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 6)
  369.     for i in range(6):
  370.         r = 100
  371.         g = 130
  372.         b = 255
  373.         a = 255.0
  374.         size = 20.0 + 10.0 * (i / 6.0) ** 2.0
  375.         Bladex.SetParticleGVal('BlueSpark', i, r, g, b, a, size)
  376.     
  377.     Bladex.AddParticleGType('LittleBlueSpark', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 6)
  378.     for i in range(6):
  379.         r = 100
  380.         g = 130
  381.         b = 255
  382.         a = 255.0
  383.         size = 10.0 + 5.0 * (i / 6.0) ** 2.0
  384.         Bladex.SetParticleGVal('LittleBlueSpark', i, r, g, b, a, size)
  385.     
  386.     Bladex.AddParticleGType('DeepGreenEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 20)
  387.     for i in range(20):
  388.         r = 40
  389.         g = 255
  390.         b = 60
  391.         a = 255.0 * traux
  392.         size = 100.0 * saux
  393.         Bladex.SetParticleGVal('DeepGreenEnergyConc', i, r, g, b, a, size)
  394.     
  395.     Bladex.AddParticleGType('DeepGreenMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  396.     for i in range(30):
  397.         r = 40
  398.         g = 255
  399.         b = 60
  400.         a = 255.0 * traux
  401.         size = 400.0 * aux
  402.         Bladex.SetParticleGVal('DeepGreenMagicMissile', i, r, g, b, a, size)
  403.     
  404.     Bladex.AddParticleGType('MulticolourEnergyDissip', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  405.     for i in range(30):
  406.         r = 40
  407.         g = 255
  408.         b = 60
  409.         a = 255.0 * traux
  410.         size = 300.0 * aux
  411.         Bladex.SetParticleGVal('MulticolourEnergyDissip', i, r, g, b, a, size)
  412.     
  413.     Bladex.AddParticleGType('DeepOrangeEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  414.     for i in range(30):
  415.         r = 255
  416.         g = 100.0 * (1.0 - i / 30.0)
  417.         b = 20 + 80 * (i / 30.0)
  418.         a = 200.0 * traux
  419.         size = 300.0 * saux
  420.         Bladex.SetParticleGVal('DeepOrangeEnergyConc', i, r, g, b, a, size)
  421.     
  422.     Bladex.AddParticleGType('DeepOrangeMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  423.     for i in range(30):
  424.         r = 255
  425.         g = 100.0 * (i / 30.0)
  426.         b = 20 + 80 * (1.0 - i / 30.0)
  427.         a = 200.0 * traux
  428.         size = 400.0 * aux
  429.         Bladex.SetParticleGVal('DeepOrangeMagicMissile', i, r, g, b, a, size)
  430.     
  431.     Bladex.AddParticleGType('LevelUpParticle', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  432.     for i in range(30):
  433.         r = 255
  434.         g = 255
  435.         b = 255
  436.         a = 255.0 * traux
  437.         size = 200.0 * aux
  438.         Bladex.SetParticleGVal('LevelUpParticle', i, r, g, b, a, size)
  439.     
  440.     Bladex.AddParticleGType('DGLevelUpParticle', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  441.     for i in range(30):
  442.         r = 255
  443.         g = 255
  444.         b = 255
  445.         a = 255.0 * traux
  446.         size = 200.0 * aux
  447.         Bladex.SetParticleGVal('DGLevelUpParticle', i, r, g, b, a, size)
  448.     
  449.     Bladex.AddParticleGType('DGLifeUpEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 50)
  450.     for i in range(50):
  451.         r = 255
  452.         g = 80
  453.         b = 20
  454.         a = 200.0 * traux
  455.         size = 200.0 * saux
  456.         Bladex.SetParticleGVal('DGLifeUpEnergyConc', i, r, g, b, a, size)
  457.     
  458.     Bladex.AddParticleGType('DLLevelUpParticle', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  459.     for i in range(30):
  460.         r = 255
  461.         g = 255
  462.         b = 255
  463.         a = 255.0 * traux
  464.         size = 300.0 * aux
  465.         Bladex.SetParticleGVal('DLLevelUpParticle', i, r, g, b, a, size)
  466.     
  467.     Bladex.AddParticleGType('DLLifeUpEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 50)
  468.     for i in range(50):
  469.         r = 255
  470.         g = 40
  471.         b = 10
  472.         a = 200.0 * traux
  473.         size = 300.0 * saux
  474.         Bladex.SetParticleGVal('DLLifeUpEnergyConc', i, r, g, b, a, size)
  475.     
  476.     Bladex.AddParticleGType('GDLevelUpParticle', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  477.     for i in range(30):
  478.         r = 255
  479.         g = 255
  480.         b = 255
  481.         a = 255.0 * traux
  482.         size = 400.0 * aux
  483.         Bladex.SetParticleGVal('GDLevelUpParticle', i, r, g, b, a, size)
  484.     
  485.     Bladex.AddParticleGType('GDLifeUpEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 50)
  486.     for i in range(50):
  487.         r = 255
  488.         g = 140
  489.         b = 40
  490.         a = 200.0 * traux
  491.         size = 400.0 * saux
  492.         Bladex.SetParticleGVal('GDLifeUpEnergyConc', i, r, g, b, a, size)
  493.     
  494.     Bladex.AddParticleGType('Vaho', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 60)
  495.     for i in range(60):
  496.         r = 255
  497.         g = 255
  498.         b = 255
  499.         a = 140.0 * aux
  500.         size = 50.0 + 200.0 * aux
  501.         Bladex.SetParticleGVal('Vaho', i, r, g, b, a, size)
  502.     
  503.     Bladex.AddParticleGType('GasVenenoso', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 60)
  504.     for i in range(60):
  505.         r = 85
  506.         g = 90
  507.         b = 0
  508.         a = 200.0 * aux
  509.         size = 50.0 + 200.0 * aux
  510.         Bladex.SetParticleGVal('GasVenenoso', i, r, g, b, a, size)
  511.     
  512.     Bladex.AddParticleGType('GasVenenoso2', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 60)
  513.     for i in range(60):
  514.         r = 10
  515.         g = 180
  516.         b = 160
  517.         a = 255.0 * aux
  518.         size = 400.0 + 800.0 * aux
  519.         Bladex.SetParticleGVal('GasVenenoso2', i, r, g, b, a, size)
  520.     
  521.     Bladex.AddParticleGType('GotasSangre', 'BloodDropParticle', Reference.B_PARTICLE_GTYPE_BLEND, 24)
  522.     for i in range(24):
  523.         if i > 20:
  524.             aux = ((24.0 - i) / 4.0) ** 0.5
  525.         elif i < 8:
  526.             aux = (i / 8.0) ** 0.5
  527.         else:
  528.             aux = 1.0
  529.         r = 60
  530.         g = 0
  531.         b = 0
  532.         a = 220.0 * aux + 35.0
  533.         size = 16.0 * aux + 4.0
  534.         Bladex.SetParticleGVal('GotasSangre', i, r, g, b, a, size)
  535.     
  536.     Bladex.AddParticleGType('Llamita', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 21)
  537.     for i in range(21):
  538.         if i >= 14:
  539.             aux = 1.0 / 3.0 + 2 * (21.0 - i) / 21.0
  540.             caux = (21.0 - i) / 21.0
  541.             saux = 3.0 * (21.0 - i) / 21.0
  542.         elif i > 7 and i < 14:
  543.             aux = 1.0
  544.             caux = 1.0 / 3.0
  545.             saux = 1.0
  546.         else:
  547.             aux = 1.0 - (7.0 - i) / 7.0
  548.             caux = 1.0 / 3.0
  549.             saux = 1.0 - 2 * ((7.0 - i) / 7.0)
  550.         r = 155.0 * 3.0 * caux
  551.         g = 155.0 * 3.0 * caux
  552.         b = min(255 * (1.0 - 2.0 * caux), 255.0)
  553.         a = 200.0 * aux
  554.         size = 4.0 + 6.0 * saux
  555.         Bladex.SetParticleGVal('Llamita', i, r, g, b, a, size)
  556.     
  557.     Bladex.AddParticleGType('BrillosBladeSword', 'StarParticle', Reference.B_PARTICLE_GTYPE_ADD, 8)
  558.     for i in range(8):
  559.         r = 235.0
  560.         g = 245.0
  561.         b = 255.0
  562.         a = 255.0
  563.         size = 100.0 * aux
  564.         Bladex.SetParticleGVal('BrillosBladeSword', i, r, g, b, a, size)
  565.     
  566.     Bladex.AddParticleGType('Llamita2', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 21)
  567.     for i in range(21):
  568.         if i >= 14:
  569.             aux = 1.0 / 3.0 + 2 * (21.0 - i) / 21.0
  570.             caux = (21.0 - i) / 21.0
  571.             saux = 3.0 * (21.0 - i) / 21.0
  572.         elif i > 7 and i < 14:
  573.             aux = 1.0
  574.             caux = 1.0 / 3.0
  575.             saux = 1.0
  576.         else:
  577.             aux = 1.0 - (7.0 - i) / 7.0
  578.             caux = 1.0 / 3.0
  579.             saux = 1.0 - 2 * ((7.0 - i) / 7.0)
  580.         r = 155.0 * 3.0 * caux
  581.         g = 155.0 * 3.0 * caux
  582.         b = min(255 * (1.0 - 2.0 * caux), 255.0)
  583.         a = 160.0 * aux
  584.         size = 80.0 * saux
  585.         Bladex.SetParticleGVal('Llamita2', i, r, g, b, a, size)
  586.     
  587.     Bladex.AddParticleGType('BladeSwordMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
  588.     for i in range(30):
  589.         r = 100
  590.         g = 130
  591.         b = 255
  592.         a = 255.0 * traux
  593.         size = 20.0 + 250.0 * (1 - (1 - i / 30.0) ** 0.5)
  594.         Bladex.SetParticleGVal('BladeSwordMissile', i, r, g, b, a, size)
  595.     
  596.     Bladex.AddParticleGType('ShitSmoke', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 64)
  597.     for i in range(64):
  598.         aux = (64.0 - i) / 64.0
  599.         r = 128
  600.         g = 80
  601.         b = 32
  602.         a = 255.0 * math.sqrt(1.0 - aux)
  603.         size = 40.0 + aux * 200.0
  604.         Bladex.SetParticleGVal('ShitSmoke', i, r, g, b, a, size)
  605.     
  606.  
  607.