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