home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 1.5)
-
-
- def Init():
- import math
- import Bladex
- import Reference
- Bladex.ReadBitMap('..\\..\\Data\\FirePrtl.bmp', 'FireParticle')
- Bladex.ReadBitMap('..\\..\\Data\\Glow.bmp', 'Glow')
- Bladex.ReadBitMap('..\\..\\Data\\SunFlare.bmp', 'SunFlare')
- Bladex.ReadBitMap('..\\..\\Data\\BloodPrtl.bmp', 'BloodParticle')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\BloodDropPrtl.bmp', 'BloodDropParticle')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\GenericPrtl.bmp', 'GenericParticle')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\GenericPrtl2.bmp', 'GenericParticle2')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\SmokePrtl.bmp', 'SmokeParticle')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\SmokePrtl2.bmp', 'SmokeParticle2')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\Flare magico 128.BMP', 'MagicFlare128')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\Water.bmp', 'WaterParticle')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\Water2.bmp', 'WaterParticle2')
- Bladex.ReadAlphaBitMap('..\\..\\Data\\Estrellita2.bmp', 'StarParticle')
- Bladex.AddParticleGType('Miguillas', 'GenericParticle', Reference.B_PARTICLE_GTYPE_BLEND, 32)
- for i in range(32):
- traux = (32.0 - i) / 32.0
- r = 90
- g = 70
- b = 60
- a = 255 * (1.0 - traux)
- size = 20.0 * (1.0 - aux)
- Bladex.SetParticleGVal('Miguillas', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('GreenFire', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 31)
- for i in range(32):
- r = 10
- g = 205
- b = 150 + 105 * aux
- a = 255.0 * (1.0 - aux)
- size = 150.0 - aux ** 2.0 * 120.0
- Bladex.SetParticleGVal('GreenFire', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('VenomSmoke', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 95)
- for i in range(96):
- aux = (96.0 - i) / 96.0
- r = 64
- g = 128
- b = 64
- a = 255.0 * math.sqrt(1.0 - aux)
- size = 40.0 + aux * 200.0
- Bladex.SetParticleGVal('VenomSmoke', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Fire', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 31)
- for i in range(32):
- r = 255
- g = min(300.0 * (1.0 - aux * aux) + 148, 255.0)
- b = min(255.0 * (1.0 - aux) + 80, 255.0)
- a = min(255.0 * (1.0 - aux), 255.0)
- size = 80.0 + math.sqrt(1.0 - aux) * 70.0
- Bladex.SetParticleGVal('Fire', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('LargeFire', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 31)
- for i in range(32):
- r = 255
- g = min(300.0 * (1.0 - aux * aux) + 35, 255.0)
- b = min(255.0 * (1.0 - aux) + 20, 255.0)
- a = min(200.0 * (1.0 - aux), 255.0)
- size = 130.0 + math.sqrt(1.0 - aux) * 110.0
- Bladex.SetParticleGVal('LargeFire', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('BigFire', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 31)
- for i in range(32):
- r = 255
- g = min(300.0 * (1.0 - aux * aux) + 35, 255.0)
- b = min(255.0 * (1.0 - aux) + 20, 255.0)
- a = min(200.0 * (1.0 - aux), 255.0)
- size = 275.0 + math.sqrt(1.0 - aux) * 110.0
- Bladex.SetParticleGVal('BigFire', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Blood', 'BloodParticle', Reference.B_PARTICLE_GTYPE_MUL, 32)
- for i in range(32):
- r = 255
- g = 255
- b = 255
- a = 0
- size = 20.0 * (1.0 - aux) + 2.0
- Bladex.SetParticleGVal('Blood', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('GreenBlood', 'GenericParticle', Reference.B_PARTICLE_GTYPE_COPY, 128)
- for i in range(128):
- r = 8
- g = 16
- b = 8
- a = 128
- size = 20.0 * (1.0 - aux) + 2.0
- Bladex.SetParticleGVal('GreenBlood', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('GreyBlood', 'BloodParticle', Reference.B_PARTICLE_GTYPE_MUL, 32)
- for i in range(32):
- r = 100
- g = 100
- b = 100
- a = 0
- size = 20.0 * (1.0 - aux) + 2.0
- Bladex.SetParticleGVal('GreyBlood', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Splinter', 'GenericParticle', Reference.B_PARTICLE_GTYPE_BLEND, 16)
- for i in range(16):
- r = 190
- g = 150
- b = 50
- a = 255 * (1.0 - aux)
- size = 10.0 * (1.0 - aux)
- Bladex.SetParticleGVal('Splinter', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Smoke', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 64)
- for i in range(64):
- aux = (64.0 - i) / 64.0
- r = 255
- g = 255
- b = 255
- a = 255.0 * math.sqrt(1.0 - aux)
- size = 50.0 + aux * 300.0
- Bladex.SetParticleGVal('Smoke', i, r, g, b, a, size)
-
- duration = 96
- Bladex.AddParticleGType('DarkSmoke', 'SmokeParticle2', Reference.B_PARTICLE_GTYPE_BLEND, duration)
- for i in range(duration):
- r = 5
- g = 3
- b = 4
- a = 255.0 * math.sqrt(1.0 - aux)
- size = 300.0 - aux ** 2.0 * 240.0
- Bladex.SetParticleGVal('DarkSmoke', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Flame', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 21)
- for i in range(21):
- if i >= 14:
- aux = 1.0 / 3.0 + 2 * (21.0 - i) / 21.0
- caux = (21.0 - i) / 21.0
- saux = 3.0 * (21.0 - i) / 21.0
- elif i > 7 and i < 14:
- aux = 1.0
- caux = 1.0 / 3.0
- saux = 1.0
- else:
- aux = 1.0 - (7.0 - i) / 7.0
- caux = 1.0 / 3.0
- saux = 1.0 - 2 * ((7.0 - i) / 7.0)
- r = 155.0 * 3.0 * caux
- g = 155.0 * 3.0 * caux
- b = min(255 * (1.0 - 2.0 * caux), 255.0)
- a = 100.0 * aux
- size = 300.0 + 200.0 * saux
- Bladex.SetParticleGVal('Flame', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('LargeFlame', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 21)
- for i in range(21):
- if i >= 14:
- aux = 1.0 / 3.0 + 2 * (21.0 - i) / 21.0
- caux = (21.0 - i) / 21.0
- saux = 3.0 * (21.0 - i) / 21.0
- elif i > 7 and i < 14:
- aux = 1.0
- caux = 1.0 / 3.0
- saux = 1.0
- else:
- aux = 1.0 - (7.0 - i) / 7.0
- caux = 1.0 / 3.0
- saux = 1.0 - 2 * ((7.0 - i) / 7.0)
- r = 155.0 * 3.0 * caux
- g = 155.0 * 3.0 * caux
- b = min(255 * (1.0 - 2.0 * caux), 255.0)
- a = 100.0 * aux
- size = 900.0 + 600.0 * saux
- Bladex.SetParticleGVal('LargeFlame', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DemonShield', 'MagicFlare128', Reference.B_PARTICLE_GTYPE_BLEND, 128)
- for i in range(128):
- r = max(0.0, min(255 * (1.0 - 2.0 * caux), 255.0))
- g = max(0.0, min(255 * (1.0 - 2.0 * caux), 255.0))
- b = max(0.0, min(155.0 * 3.0 * caux, 255.0))
- Bladex.SetParticleGVal('DemonShield', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Sand', 'GenericParticle', Reference.B_PARTICLE_GTYPE_BLEND, 32)
- for i in range(32):
- traux = (32.0 - i) / 32.0
- r = 90
- g = 70
- b = 60
- a = 255 * (1.0 - traux)
- size = 10.0 * (1.0 - aux)
- Bladex.SetParticleGVal('Sand', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Dust', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 64)
- for i in range(64):
- aux = (64.0 - i) / 64.0
- r = 255
- g = 230
- b = 210
- a = 100.0 * (1.0 - traux) ** 0.5
- size = 1.0 + aux * 350.0
- Bladex.SetParticleGVal('Dust', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('LargeDust', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 128)
- for i in range(128):
- aux = (128.0 - i) / 128.0
- r = 255
- g = 230
- b = 210
- a = 150.0 * (1.0 - traux) ** 0.5
- size = 10.0 + aux * 1200.0
- Bladex.SetParticleGVal('LargeDust', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('MediumDust', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 128)
- for i in range(128):
- aux = (128.0 - i) / 128.0
- r = 255
- g = 230
- b = 210
- a = 150.0 * (1.0 - traux) ** 0.5
- size = 4.0 + aux * 400.0
- Bladex.SetParticleGVal('MediumDust', i, r, g, b, a, size)
-
- duration = 32
- max_opacity = 180.0
- Bladex.AddParticleGType('Venom', 'GenericParticle', Reference.B_PARTICLE_GTYPE_BLEND, duration)
- for i in range(duration):
- r = 0
- g = 5
- b = 0
- a = max_opacity - max(0, i - duration / 2.0) * max_opacity
- size = 30.0 * (1.0 - aux) + 2.0
- Bladex.SetParticleGVal('Venom', i, r, g, b, a, size)
-
- duration = 32
- max_opacity = 180.0
- Bladex.AddParticleGType('Vomit', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, duration)
- for i in range(duration):
- r = 180
- g = 255
- b = 180
- a = max_opacity - max(0, i - duration / 2.0) * max_opacity
- size = 30.0 * (1.0 - aux) + 2.0
- Bladex.SetParticleGVal('Vomit', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Energia3', 'GenericParticle', Reference.B_PARTICLE_GTYPE_ADD, 80)
- for i in range(80):
- if i > 60:
- traux = 1 - (i - 60.0) / 20.0
- elif i < 20:
- traux = i / 20.0
- else:
- traux = 1.0
- r = 255
- g = 80
- b = 100
- a = 255.0 * traux
- size = 20.0
- Bladex.SetParticleGVal('Energia3', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('FuegoInvocacion', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 120)
- for i in range(120):
- r = 150
- g = 100
- b = 255
- a = 255.0 * traux
- size = 400.0
- Bladex.SetParticleGVal('FuegoInvocacion', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('EnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 60)
- for i in range(60):
- r = 100
- g = 130
- b = 255
- a = 255.0 * traux
- size = 20.0 + 250.0 * (1 - i / 60.0) ** 2.0
- Bladex.SetParticleGVal('EnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('EnergyDissip', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 60)
- for i in range(60):
- r = 100
- g = 130
- b = 255
- a = 255.0 * traux
- size = 20.0 + 250.0 * (1 - (1 - i / 60.0) ** 0.5)
- Bladex.SetParticleGVal('EnergyDissip', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('LittleEnergyDissip', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 100
- g = 130
- b = 255
- a = 255.0 * traux
- size = 250.0 * (1 - (1 - i / 30.0) ** 0.5)
- Bladex.SetParticleGVal('LittleEnergyDissip', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('BlueMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 100
- g = 130
- b = 255
- a = 255.0 * traux
- size = 340.0 * (1 - (1 - i / 30.0) ** 0.5)
- Bladex.SetParticleGVal('BlueMagicMissile', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('FastEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 100
- g = 130
- b = 255
- a = 255.0 * traux
- size = 10.0 + 150.0 * (1 - i / 30.0) ** 2.0
- Bladex.SetParticleGVal('FastEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('RedMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 130
- b = 100
- a = 255.0 * traux
- size = 340.0 * (1 - (1 - i / 30.0) ** 0.5)
- Bladex.SetParticleGVal('RedMagicMissile', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('FastRedEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 130
- b = 100
- a = 255.0 * traux
- size = 10.0 + 150.0 * (1 - i / 30.0) ** 2.0
- Bladex.SetParticleGVal('FastRedEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DeepRedEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 60)
- for i in range(60):
- r = 255
- g = 50
- b = 40
- a = 255.0 * traux
- size = 320.0 * (1 - i / 60.0) ** 2.0
- Bladex.SetParticleGVal('DeepRedEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DeepRedMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 50
- b = 40
- a = 255.0 * traux
- size = 400.0 * aux
- Bladex.SetParticleGVal('DeepRedMagicMissile', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('SnowDust', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 64)
- r = 255.0
- g = 255.0
- b = 255.0
- for i in range(68):
- a = 255 * i / 64.0
- size = 256 * (64 - i) / 64.0 + 256
- Bladex.SetParticleGVal('SnowDust', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('LittleBlueEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 100
- g = 130
- b = 255
- a = 255.0
- size = 60.0 * (1 - i / 30.0) ** 2.0
- Bladex.SetParticleGVal('LittleBlueEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('BlueSpark', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 6)
- for i in range(6):
- r = 100
- g = 130
- b = 255
- a = 255.0
- size = 20.0 + 10.0 * (i / 6.0) ** 2.0
- Bladex.SetParticleGVal('BlueSpark', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('LittleBlueSpark', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 6)
- for i in range(6):
- r = 100
- g = 130
- b = 255
- a = 255.0
- size = 10.0 + 5.0 * (i / 6.0) ** 2.0
- Bladex.SetParticleGVal('LittleBlueSpark', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DeepGreenEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 20)
- for i in range(20):
- r = 40
- g = 255
- b = 60
- a = 255.0 * traux
- size = 100.0 * saux
- Bladex.SetParticleGVal('DeepGreenEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DeepGreenMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 40
- g = 255
- b = 60
- a = 255.0 * traux
- size = 400.0 * aux
- Bladex.SetParticleGVal('DeepGreenMagicMissile', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('MulticolourEnergyDissip', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 40
- g = 255
- b = 60
- a = 255.0 * traux
- size = 300.0 * aux
- Bladex.SetParticleGVal('MulticolourEnergyDissip', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DeepOrangeEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 100.0 * (1.0 - i / 30.0)
- b = 20 + 80 * (i / 30.0)
- a = 200.0 * traux
- size = 300.0 * saux
- Bladex.SetParticleGVal('DeepOrangeEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DeepOrangeMagicMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 100.0 * (i / 30.0)
- b = 20 + 80 * (1.0 - i / 30.0)
- a = 200.0 * traux
- size = 400.0 * aux
- Bladex.SetParticleGVal('DeepOrangeMagicMissile', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('LevelUpParticle', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 255
- b = 255
- a = 255.0 * traux
- size = 200.0 * aux
- Bladex.SetParticleGVal('LevelUpParticle', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DGLevelUpParticle', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 255
- b = 255
- a = 255.0 * traux
- size = 200.0 * aux
- Bladex.SetParticleGVal('DGLevelUpParticle', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DGLifeUpEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 50)
- for i in range(50):
- r = 255
- g = 80
- b = 20
- a = 200.0 * traux
- size = 200.0 * saux
- Bladex.SetParticleGVal('DGLifeUpEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DLLevelUpParticle', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 255
- b = 255
- a = 255.0 * traux
- size = 300.0 * aux
- Bladex.SetParticleGVal('DLLevelUpParticle', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('DLLifeUpEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 50)
- for i in range(50):
- r = 255
- g = 40
- b = 10
- a = 200.0 * traux
- size = 300.0 * saux
- Bladex.SetParticleGVal('DLLifeUpEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('GDLevelUpParticle', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 255
- g = 255
- b = 255
- a = 255.0 * traux
- size = 400.0 * aux
- Bladex.SetParticleGVal('GDLevelUpParticle', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('GDLifeUpEnergyConc', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 50)
- for i in range(50):
- r = 255
- g = 140
- b = 40
- a = 200.0 * traux
- size = 400.0 * saux
- Bladex.SetParticleGVal('GDLifeUpEnergyConc', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Vaho', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 60)
- for i in range(60):
- r = 255
- g = 255
- b = 255
- a = 140.0 * aux
- size = 50.0 + 200.0 * aux
- Bladex.SetParticleGVal('Vaho', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('GasVenenoso', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 60)
- for i in range(60):
- r = 85
- g = 90
- b = 0
- a = 200.0 * aux
- size = 50.0 + 200.0 * aux
- Bladex.SetParticleGVal('GasVenenoso', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('GasVenenoso2', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 60)
- for i in range(60):
- r = 10
- g = 180
- b = 160
- a = 255.0 * aux
- size = 400.0 + 800.0 * aux
- Bladex.SetParticleGVal('GasVenenoso2', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('GotasSangre', 'BloodDropParticle', Reference.B_PARTICLE_GTYPE_BLEND, 24)
- for i in range(24):
- if i > 20:
- aux = ((24.0 - i) / 4.0) ** 0.5
- elif i < 8:
- aux = (i / 8.0) ** 0.5
- else:
- aux = 1.0
- r = 60
- g = 0
- b = 0
- a = 220.0 * aux + 35.0
- size = 16.0 * aux + 4.0
- Bladex.SetParticleGVal('GotasSangre', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Llamita', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 21)
- for i in range(21):
- if i >= 14:
- aux = 1.0 / 3.0 + 2 * (21.0 - i) / 21.0
- caux = (21.0 - i) / 21.0
- saux = 3.0 * (21.0 - i) / 21.0
- elif i > 7 and i < 14:
- aux = 1.0
- caux = 1.0 / 3.0
- saux = 1.0
- else:
- aux = 1.0 - (7.0 - i) / 7.0
- caux = 1.0 / 3.0
- saux = 1.0 - 2 * ((7.0 - i) / 7.0)
- r = 155.0 * 3.0 * caux
- g = 155.0 * 3.0 * caux
- b = min(255 * (1.0 - 2.0 * caux), 255.0)
- a = 200.0 * aux
- size = 4.0 + 6.0 * saux
- Bladex.SetParticleGVal('Llamita', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('BrillosBladeSword', 'StarParticle', Reference.B_PARTICLE_GTYPE_ADD, 8)
- for i in range(8):
- r = 235.0
- g = 245.0
- b = 255.0
- a = 255.0
- size = 100.0 * aux
- Bladex.SetParticleGVal('BrillosBladeSword', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('Llamita2', 'FireParticle', Reference.B_PARTICLE_GTYPE_ADD, 21)
- for i in range(21):
- if i >= 14:
- aux = 1.0 / 3.0 + 2 * (21.0 - i) / 21.0
- caux = (21.0 - i) / 21.0
- saux = 3.0 * (21.0 - i) / 21.0
- elif i > 7 and i < 14:
- aux = 1.0
- caux = 1.0 / 3.0
- saux = 1.0
- else:
- aux = 1.0 - (7.0 - i) / 7.0
- caux = 1.0 / 3.0
- saux = 1.0 - 2 * ((7.0 - i) / 7.0)
- r = 155.0 * 3.0 * caux
- g = 155.0 * 3.0 * caux
- b = min(255 * (1.0 - 2.0 * caux), 255.0)
- a = 160.0 * aux
- size = 80.0 * saux
- Bladex.SetParticleGVal('Llamita2', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('BladeSwordMissile', 'GenericParticle2', Reference.B_PARTICLE_GTYPE_ADD, 30)
- for i in range(30):
- r = 100
- g = 130
- b = 255
- a = 255.0 * traux
- size = 20.0 + 250.0 * (1 - (1 - i / 30.0) ** 0.5)
- Bladex.SetParticleGVal('BladeSwordMissile', i, r, g, b, a, size)
-
- Bladex.AddParticleGType('ShitSmoke', 'SmokeParticle', Reference.B_PARTICLE_GTYPE_BLEND, 64)
- for i in range(64):
- aux = (64.0 - i) / 64.0
- r = 128
- g = 80
- b = 32
- a = 255.0 * math.sqrt(1.0 - aux)
- size = 40.0 + aux * 200.0
- Bladex.SetParticleGVal('ShitSmoke', i, r, g, b, a, size)
-
-
-