示例#1
0
    def Prepare(self):
        ShipRenderEffect.Prepare(self)
        self.gfx.name = self.__gfxName__
        shipBall = self.GetEffectShipBall()
        for binding in self.gfx.curveSet.bindings:
            if binding.name.startswith('new'):
                binding.destinationObject = self.sourceObject
            if binding.name.startswith('old'):
                binding.destinationObject = shipBall.cachedShip

        self.sourceObject.clipSphereCenter = (0.0, 0.0, 0.0)
        shipBall.cachedShip.clipSphereCenter = (0.0, 0.0, 0.0)
示例#2
0
    def Prepare(self):
        sourceObject = self.GetEffectShipBall().model
        for effect in sourceObject.overlayEffects:
            if effect.name == self.__gfxName__:
                sourceObject.overlayEffects.remove(effect)

        ShipRenderEffect.Prepare(self)
        self.gfx.name = self.__gfxName__
        for binding in self.gfx.curveSet.bindings:
            if binding.name.startswith('self'):
                binding.destinationObject = self.sourceObject

        shipBall = self.GetEffectShipBall()
        if shipBall is not None:
            if shipBall.id != session.shipid:
                del self.gfx.additiveEffects[:]
                del self.gfx.distortionEffects[:]
        self.sourceObject.clipSphereCenter = random.choice(
            self.sourceObject.damageLocators)[0]
示例#3
0
 def Stop(self, reason=STOP_REASON_DEFAULT):
     self.sourceObject.clipSphereFactor = 0.0
     self.sourceObject.activationStrength = 1.0
     ShipRenderEffect.Stop(self, reason)
示例#4
0
 def Stop(self, reason=STOP_REASON_DEFAULT):
     if reason == STOP_REASON_BALL_REMOVED:
         ShipRenderEffect.Stop(self, reason)
示例#5
0
 def Start(self, duration):
     ShipRenderEffect.Start(self, duration)
     self.SendAudioEvent(eventName='ship_cloak_play')
示例#6
0
 def Start(self, duration):
     ShipRenderEffect.Start(self, duration)
     if duration < 9000:
         self.SendAudioEvent('ship_skin_change_play')
     else:
         self.SendAudioEvent('ship_skin_change_titan_play')
示例#7
0
 def Stop(self, reason=STOP_REASON_DEFAULT):
     ShipRenderEffect.Stop(self, reason)
     shipID = self.ballIDs[0]
     shipBall = self.fxSequencer.GetBall(shipID)
     shipBall.TriggerAnimation('normal')
示例#8
0
 def Repeat(self, duration):
     ShipRenderEffect.Repeat(self, duration)
示例#9
0
 def Start(self, duration):
     ShipRenderEffect.Start(self, duration)
     shipID = self.ballIDs[0]
     shipBall = self.fxSequencer.GetBall(shipID)
     shipBall.TriggerAnimation('siege')