home *** CD-ROM | disk | FTP | other *** search
- ###############################################
- #### MAGIC ####
- ###############################################
- import Bladex
- import netgame
-
-
- Bladex.ReadAlphaBitMap("..\\..\\Data\\Estrellita.bmp","Estrellita")
-
- # LucesCools y duendes
- Bladex.AddParticleGType("LucesCools","Estrellita",1,16)
- for i in range(16):
- Tetha = 8-abs(i-8)
- r=255.0
- g=255.0
- b=255.0
- a = (Tetha*255)/9
- size= Tetha*20
- Bladex.SetParticleGVal("LucesCools",i,r,g,b,a,size)
-
- def DeTwinkle(ObjName):
- if netgame.GetNetState() == 0:
- import GameText
- import Select
-
- wps=Bladex.GetEntity(ObjName+" TwinkleStar")
- if wps:
- import ScorerWidgets
- wps.DeathTime=Bladex.GetTime()
- GameText.WriteTextAux(Select.GetSelectionData(ObjName)[2],5,255,255,255,[])
- ScorerWidgets.ObjSlTimer = Bladex.GetTime()
- Bladex.GetEntity(ObjName).SelfIlum = 0
-
-
- def Twinkle(ObjName):
- if netgame.GetNetState() == 0:
- wps=Bladex.CreateEntity(ObjName+" TwinkleStar", "Entity Particle System Dobj", 0.0, 0.0, 0.0)
- wps.ObjectName=ObjName
- wps.ParticleType="LucesCools"
- wps.Time2Live=16
- wps.RandomVelocity=0
- wps.Velocity=0,0,0
- wps.NormalVelocity=2
- wps.YGravity=0
- wps.PPS=5
- Bladex.GetEntity(ObjName).SelfIlum = -1
- return wps
-
- # Stars.Twinkle(char.InvLeft)
- # Stars.Twinkle(char.InvRight)
-
- AutoTake = 1